diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b42e60e1753eff23713fa566800fce366ecc23d..d9b797f3d1e7eabcd9e8285f9161f443f9cda753 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,8 @@ if (WIN32) "Disable AVX when compiling for Windows" FORCE) set(WITH_DSO OFF CACHE STRING "Disable DSO when compiling for Windows" FORCE) + set(WITH_MKL OFF CACHE STRING + "Disable MKL when compiling for Windows" FORCE) endif() set(THIRD_PARTY_PATH "${CMAKE_BINARY_DIR}/third_party" CACHE STRING diff --git a/paddle/fluid/operators/CMakeLists.txt b/paddle/fluid/operators/CMakeLists.txt index 60a42cf56817f2519dee2fbcaefec23fd0dd8c4f..412ab6670951acbdbd47a8b926e65347c35ae604 100644 --- a/paddle/fluid/operators/CMakeLists.txt +++ b/paddle/fluid/operators/CMakeLists.txt @@ -32,9 +32,7 @@ if (WITH_GPU AND TENSORRT_FOUND) add_subdirectory(tensorrt) endif() -if (NOT WIN32) - register_operators(EXCLUDES warpctc_op) -endif() +register_operators(EXCLUDES warpctc_op) # warpctc_cudnn need cudnn 7 above if (WITH_GPU AND NOT WIN32)