From a5da5ff6f47b12c8932373bf9fec9da43ecd6442 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 30 Oct 2019 10:21:12 -0700 Subject: [PATCH] Remove onnxruntime_USE_EIGEN_THREADPOOL cmake option --- cmake/CMakeLists.txt | 1 - cmake/onnxruntime_providers.cmake | 4 ---- cmake/onnxruntime_session.cmake | 6 +----- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 5de48bfcd1..e7b9e2e8b8 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -79,7 +79,6 @@ option(onnxruntime_CROSS_COMPILING "Cross compiling onnx runtime" OFF) option(onnxruntime_BUILD_SERVER "Build ONNX Runtime Server" OFF) option(onnxruntime_USE_FULL_PROTOBUF "Use full protobuf" OFF) option(onnxruntime_DISABLE_CONTRIB_OPS "Disable contrib ops" OFF) -option(onnxruntime_USE_EIGEN_THREADPOOL "Use eigen threadpool. Otherwise OpenMP or a homemade one will be used" OFF) option(tensorflow_C_PACKAGE_PATH "Path to tensorflow C package installation dir") option(onnxruntime_ENABLE_LANGUAGE_INTEROP_OPS "Enable operator implemented in language other than cpp" OFF) option(onnxruntime_DEBUG_NODE_INPUTS_OUTPUTS "Dump node input shapes and output data to standard output when executing the model." OFF) diff --git a/cmake/onnxruntime_providers.cmake b/cmake/onnxruntime_providers.cmake index 89ed53fae8..6b307de4f0 100644 --- a/cmake/onnxruntime_providers.cmake +++ b/cmake/onnxruntime_providers.cmake @@ -450,7 +450,3 @@ endif() if (onnxruntime_ENABLE_MICROSOFT_INTERNAL) include(onnxruntime_providers_internal.cmake) endif() - -if(onnxruntime_USE_EIGEN_THREADPOOL) - target_compile_definitions(onnxruntime_providers PUBLIC USE_EIGEN_THREADPOOL) -endif() diff --git a/cmake/onnxruntime_session.cmake b/cmake/onnxruntime_session.cmake index 02159009c2..a9bb53cc0e 100644 --- a/cmake/onnxruntime_session.cmake +++ b/cmake/onnxruntime_session.cmake @@ -21,8 +21,4 @@ endif() if (onnxruntime_ENABLE_LANGUAGE_INTEROP_OPS AND onnxruntime_ENABLE_PYTHON) target_compile_definitions(onnxruntime_session PUBLIC ENABLE_LANGUAGE_INTEROP_OPS) -endif() - -if(onnxruntime_USE_EIGEN_THREADPOOL) - target_compile_definitions(onnxruntime_session PUBLIC USE_EIGEN_THREADPOOL) -endif() +endif() \ No newline at end of file