File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ cmake_dependent_option(
369
369
USE_C10D_MPI "USE C10D MPI" ON "USE_DISTRIBUTED;USE_MPI" OFF )
370
370
cmake_dependent_option (
371
371
USE_TENSORPIPE "Use TensorPipe. Only available if USE_DISTRIBUTED is on." ON
372
- "USE_DISTRIBUTED" OFF )
372
+ "USE_DISTRIBUTED AND NOT WIN32 " OFF )
373
373
option (ONNX_ML "Enable traditional ONNX ML API." ON )
374
374
option (HAVE_SOVERSION "Whether to add SOVERSION to the shared objects" OFF )
375
375
option (BUILD_LIBTORCH_CPU_WITH_DEBUG
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ endif()
110
110
# ---[ Create CAFFE2_BUILD_SHARED_LIBS for macros.h.in usage.
111
111
set (CAFFE2_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS} )
112
112
113
- if (USE_NATIVE_ARCH )
113
+ if (USE_NATIVE_ARCH AND NOT MSVC )
114
114
check_cxx_compiler_flag ("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE )
115
115
if (COMPILER_SUPPORTS_MARCH_NATIVE )
116
116
add_definitions ("-march=native" )
You can’t perform that action at this time.
0 commit comments