diff --git a/CMakeLists.txt b/CMakeLists.txt index c2804e234d0d7cab6546dda5b14e5007c084472e..0b42e60e1753eff23713fa566800fce366ecc23d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,6 +133,8 @@ endif() if (WIN32) set(WITH_AVX OFF CACHE STRING "Disable AVX when compiling for Windows" FORCE) + set(WITH_DSO OFF CACHE STRING + "Disable DSO 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 284bf5dc9e2b5507f3a24276cbd6b85fd3219458..73f44f3b67506e4d3bfffc15bca3d82ede9716fe 100644 --- a/paddle/fluid/operators/CMakeLists.txt +++ b/paddle/fluid/operators/CMakeLists.txt @@ -35,7 +35,7 @@ endif() register_operators(EXCLUDES warpctc_op) # warpctc_cudnn need cudnn 7 above -if (WITH_GPU) +if (WITH_GPU AND NOT WIN32) if (${CUDNN_MAJOR_VERSION} VERSION_LESS 7) op_library(warpctc_op DEPS dynload_warpctc sequence_padding sequence_scale SRCS warpctc_op.cc warpctc_op.cu.cc) else()