Skip to content

Commit 45c9ed8

Browse files
peterjc123facebook-github-bot
authored andcommitted
Formatting cmake (to lowercase without space for if/elseif/else/endif) (pytorch#35521)
Summary: Running commands: ```bash shopt -s globstar sed -e 's/IF (/if(/g' -e 's/IF(/if(/g' -e 's/if (/if(/g' -e 's/ELSE (/else(/g' -e 's/ELSE(/else(/g' -e 's/else (/else(/g' -e 's/ENDif(/endif(/g' -e 's/ELSEif(/elseif(/g' -i CMakeLists.txt sed -e 's/IF (/if(/g' -e 's/IF(/if(/g' -e 's/if (/if(/g' -e 's/ELSE (/else(/g' -e 's/ELSE(/else(/g' -e 's/else (/else(/g' -e 's/ENDif(/endif(/g' -e 's/ELSEif(/elseif(/g' -i caffe2/**/CMakeLists.txt sed -e 's/IF (/if(/g' -e 's/IF(/if(/g' -e 's/if (/if(/g' -e 's/ELSE (/else(/g' -e 's/ELSE(/else(/g' -e 's/else (/else(/g' -e 's/ENDif(/endif(/g' -e 's/ELSEif(/elseif(/g' -i torch/**/CMakeLists.txt sed -e 's/IF (/if(/g' -e 's/IF(/if(/g' -e 's/if (/if(/g' -e 's/ELSE (/else(/g' -e 's/ELSE(/else(/g' -e 's/else (/else(/g' -e 's/ENDif(/endif(/g' -e 's/ELSEif(/elseif(/g' -i c10/**/CMakeLists.txt sed -e 's/IF (/if(/g' -e 's/IF(/if(/g' -e 's/if (/if(/g' -e 's/ELSE (/else(/g' -e 's/ELSE(/else(/g' -e 's/else (/else(/g' -e 's/ENDif(/endif(/g' -e 's/ELSEif(/elseif(/g' -i cmake/**/*.cmake sed -e 's/IF (/if(/g' -e 's/IF(/if(/g' -e 's/if (/if(/g' -e 's/ELSE (/else(/g' -e 's/ELSE(/else(/g' -e 's/else (/else(/g' -e 's/ENDif(/endif(/g' -e 's/ELSEif(/elseif(/g' -i cmake/**/*.cmake.in ``` We may further convert all the commands into lowercase according to the following issue: https://gitlab.kitware.com/cmake/cmake/commit/77543bde41b0e52c3959016698b529835945d62d. Pull Request resolved: pytorch#35521 Differential Revision: D20704382 Pulled By: malfet fbshipit-source-id: 42186b9b1660c34428ab7ceb8d3f7a0ced5d2e80
1 parent 04a3345 commit 45c9ed8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+470
-470
lines changed

c10/CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ add_library(c10 ${C10_SRCS} ${C10_HEADERS})
4040
# If building shared library, set dllimport/dllexport proper.
4141
target_compile_options(c10 PRIVATE "-DC10_BUILD_MAIN_LIB")
4242
# Enable hidden visibility if compiler supports it.
43-
if (${COMPILER_SUPPORTS_HIDDEN_VISIBILITY})
43+
if(${COMPILER_SUPPORTS_HIDDEN_VISIBILITY})
4444
target_compile_options(c10 PRIVATE "-fvisibility=hidden")
4545
endif()
4646

4747
# ---[ Dependency of c10
48-
if (${USE_GFLAGS})
48+
if(${USE_GFLAGS})
4949
target_link_libraries(c10 PUBLIC gflags)
5050
endif()
5151

52-
if (${USE_GLOG})
52+
if(${USE_GLOG})
5353
target_link_libraries(c10 PUBLIC glog::glog)
5454
endif()
5555

56-
if (USE_NUMA)
56+
if(USE_NUMA)
5757
message(STATUS "NUMA paths:")
5858
message(STATUS ${Numa_INCLUDE_DIR})
5959
message(STATUS ${Numa_LIBRARIES})
@@ -63,7 +63,7 @@ else()
6363
message(STATUS "don't use NUMA")
6464
endif()
6565

66-
if (ANDROID)
66+
if(ANDROID)
6767
target_link_libraries(c10 PRIVATE log)
6868
endif()
6969

@@ -97,6 +97,6 @@ install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
9797
install(FILES ${CMAKE_BINARY_DIR}/c10/macros/cmake_macros.h
9898
DESTINATION include/c10/macros)
9999

100-
if (MSVC AND C10_BUILD_SHARED_LIBS)
100+
if(MSVC AND C10_BUILD_SHARED_LIBS)
101101
install(FILES $<TARGET_PDB_FILE:c10> DESTINATION lib OPTIONAL)
102102
endif()

c10/benchmark/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ---[ Benchmark binaries.
22

33
file(GLOB_RECURSE C10_ALL_BENCH_FILES *.cpp)
4-
if (BUILD_TEST)
4+
if(BUILD_TEST)
55
foreach(bench_src ${C10_ALL_BENCH_FILES})
66
get_filename_component(bench_file_name ${bench_src} NAME_WE)
77
set(bench_name "c10_${bench_file_name}")
88
add_executable(${bench_name} "${bench_src}")
99
target_link_libraries(${bench_name} c10 benchmark)
10-
if (INSTALL_TEST)
10+
if(INSTALL_TEST)
1111
install(TARGETS ${bench_name} DESTINATION test)
1212
endif()
1313
endforeach()

c10/cuda/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set(CUDA_LINK_LIBRARIES_KEYWORD)
4040
# If building shared library, set dllimport/dllexport proper.
4141
target_compile_options(c10_cuda PRIVATE "-DC10_CUDA_BUILD_MAIN_LIB")
4242
# Enable hidden visibility if compiler supports it.
43-
if (${COMPILER_SUPPORTS_HIDDEN_VISIBILITY})
43+
if(${COMPILER_SUPPORTS_HIDDEN_VISIBILITY})
4444
target_compile_options(c10_cuda PRIVATE "-fvisibility=hidden")
4545
endif()
4646

@@ -69,6 +69,6 @@ endforeach()
6969
install(FILES ${CMAKE_BINARY_DIR}/c10/cuda/impl/cuda_cmake_macros.h
7070
DESTINATION include/c10/cuda/impl)
7171

72-
if (MSVC AND C10_CUDA_BUILD_SHARED_LIBS)
72+
if(MSVC AND C10_CUDA_BUILD_SHARED_LIBS)
7373
install(FILES $<TARGET_PDB_FILE:c10_cuda> DESTINATION lib OPTIONAL)
7474
endif()

c10/cuda/test/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
set(C10_CUDA_ALL_TEST_FILES
44
impl/CUDATest.cpp
55
)
6-
if (BUILD_TEST)
6+
if(BUILD_TEST)
77
foreach(test_src ${C10_CUDA_ALL_TEST_FILES})
88
get_filename_component(test_file_name ${test_src} NAME_WE)
99
set(test_name "c10_cuda_${test_file_name}")
1010
add_executable(${test_name} "${test_src}")
1111
target_link_libraries(${test_name} c10_cuda gtest_main)
1212
add_test(NAME ${test_name} COMMAND $<TARGET_FILE:${test_name}>)
13-
if (INSTALL_TEST)
13+
if(INSTALL_TEST)
1414
install(TARGETS ${test_name} DESTINATION test)
1515
endif()
1616
endforeach()

c10/hip/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ target_compile_options(c10_hip PRIVATE ${HIP_CXX_FLAGS})
3737
# If building shared library, set dllimport/dllexport proper.
3838
target_compile_options(c10_hip PRIVATE "-DC10_HIP_BUILD_MAIN_LIB")
3939
# Enable hidden visibility if compiler supports it.
40-
if (${COMPILER_SUPPORTS_HIDDEN_VISIBILITY})
40+
if(${COMPILER_SUPPORTS_HIDDEN_VISIBILITY})
4141
target_compile_options(c10_hip PRIVATE "-fvisibility=hidden")
4242
endif()
4343

c10/test/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# ---[ Test binaries.
22

33
file(GLOB_RECURSE C10_ALL_TEST_FILES *.cpp)
4-
if (BUILD_TEST)
4+
if(BUILD_TEST)
55
foreach(test_src ${C10_ALL_TEST_FILES})
66
get_filename_component(test_file_name ${test_src} NAME_WE)
77
set(test_name "c10_${test_file_name}")
88
add_executable(${test_name} "${test_src}")
99
target_link_libraries(${test_name} c10 gmock gtest gtest_main)
1010
add_test(NAME ${test_name} COMMAND $<TARGET_FILE:${test_name}>)
11-
if (INSTALL_TEST)
11+
if(INSTALL_TEST)
1212
install(TARGETS ${test_name} DESTINATION test)
1313
endif()
1414
endforeach()

caffe2/contrib/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_subdirectory(nccl)
33
add_subdirectory(opencl)
44
add_subdirectory(prof)
55
add_subdirectory(shm_mutex)
6-
if (USE_TENSORRT)
6+
if(USE_TENSORRT)
77
add_subdirectory(tensorrt)
88
endif()
99

caffe2/contrib/nccl/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if(USE_NCCL)
2-
if (USE_CUDA)
2+
if(USE_CUDA)
33
message(STATUS "Include NCCL operators")
44
set(Caffe2_CONTRIB_NCCL_GPU_SRC
55
"${CMAKE_CURRENT_SOURCE_DIR}/cuda_nccl_gpu.cc"

caffe2/contrib/prof/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (USE_PROF)
1+
if(USE_PROF)
22
set(Caffe2_CONTRIB_PROF_CPU_SRCS
33
"${CMAKE_CURRENT_SOURCE_DIR}/prof_dag_stats_op.cc"
44
)

caffe2/core/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
1+
if(INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
22
list(APPEND Caffe2_CPU_SRCS
33
"${CMAKE_CURRENT_SOURCE_DIR}/common.cc"
44
)
@@ -8,7 +8,7 @@ endif()
88

99
# ---[ GPU files
1010
# ------[ cuDNN
11-
if (USE_CUDNN)
11+
if(USE_CUDNN)
1212
file(GLOB tmp *_cudnn.cc)
1313
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp})
1414
endif()

caffe2/db/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ list(APPEND Caffe2_GPU_SRCS ${Caffe2_DB_COMMON_GPU_SRC})
1515
list(APPEND Caffe2_HIP_SRCS ${Caffe2_DB_COMMON_HIP_SRC})
1616

1717
# DB specific files
18-
if (USE_LMDB)
18+
if(USE_LMDB)
1919
list(APPEND Caffe2_CPU_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/lmdb.cc")
2020
endif()
2121

22-
if (USE_LEVELDB)
22+
if(USE_LEVELDB)
2323
list(APPEND Caffe2_CPU_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/leveldb.cc")
2424
endif()
2525

26-
if (USE_ZMQ)
26+
if(USE_ZMQ)
2727
list(APPEND Caffe2_CPU_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/zmqdb.cc")
2828
endif()
2929

caffe2/distributed/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set(Caffe2_STORE_REDIS_GPU_SRC
2222
list(APPEND Caffe2_CPU_SRCS ${Caffe2_STORE_COMMON_SRC})
2323
list(APPEND Caffe2_GPU_SRCS ${Caffe2_STORE_COMMON_GPU_SRC})
2424

25-
if (USE_REDIS)
25+
if(USE_REDIS)
2626
list(APPEND Caffe2_CPU_SRCS ${Caffe2_STORE_REDIS_SRC})
2727
list(APPEND Caffe2_GPU_SRCS ${Caffe2_STORE_REDIS_GPU_SRC})
2828
endif()

caffe2/mobile/contrib/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
add_subdirectory(ios)
22

3-
if (USE_NNAPI)
3+
if(USE_NNAPI)
44
add_subdirectory(nnapi)
55
endif()
66

caffe2/mobile/contrib/ios/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if(IOS)
88
)
99
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${Caffe2_CONTRIB_IOS_SRC})
1010

11-
if (USE_METAL)
11+
if(USE_METAL)
1212
# metal/mpscnn files
1313
add_subdirectory(mpscnn)
1414
endif()

caffe2/mobile/contrib/nnapi/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (USE_NNAPI AND ANDROID)
1+
if(USE_NNAPI AND ANDROID)
22
set(Caffe2_CONTRIB_NNAPI_CPU_SRC
33
"${CMAKE_CURRENT_SOURCE_DIR}/dlnnapi.c"
44
"${CMAKE_CURRENT_SOURCE_DIR}/nnapi.cc"

caffe2/operators/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# ---[ GPU files
22
# ------[ cuDNN
3-
if (USE_CUDNN)
3+
if(USE_CUDNN)
44
file(GLOB tmp *_cudnn.cc *_cudnn.cu)
55
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp})
66
endif()
77
# ------[ general GPU
88
file(GLOB tmp *_gpu.cc)
99
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp})
1010
# ------[ TensorRT
11-
if (USE_TENSORRT)
11+
if(USE_TENSORRT)
1212
file(GLOB tmp *_trt.cc)
1313
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp})
1414
endif()
@@ -42,7 +42,7 @@ exclude(tmp "${tmp}" ${tmp_cudnn})
4242
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${tmp})
4343

4444
# Add all files in experimental
45-
if (NOT INTERN_BUILD_MOBILE)
45+
if(NOT INTERN_BUILD_MOBILE)
4646
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${CMAKE_CURRENT_LIST_DIR}/experimental/c10/cpu/flatten_cpu.cc)
4747
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${CMAKE_CURRENT_LIST_DIR}/experimental/c10/cpu/averaged_loss_cpu.cc)
4848
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${CMAKE_CURRENT_LIST_DIR}/experimental/c10/cpu/mul_cpu.cc)
@@ -70,7 +70,7 @@ exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${Caffe2_GPU_SRCS} ${Caffe2_HIP_SRC
7070

7171
# ---[ GPU test files
7272
# ------[ cuDNN
73-
if (USE_CUDNN)
73+
if(USE_CUDNN)
7474
file(GLOB tmp *_cudnn_test.cc)
7575
set(Caffe2_GPU_TEST_SRCS ${Caffe2_GPU_TEST_SRCS} ${tmp})
7676
endif()

caffe2/operators/rnn/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ---[ GPU files
22
# ------[ cuDNN
3-
if (USE_CUDNN)
3+
if(USE_CUDNN)
44
file(GLOB tmp *_cudnn.cc)
55
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp})
66
endif()
@@ -38,7 +38,7 @@ exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${Caffe2_GPU_SRCS} ${Caffe2_HIP_SRC
3838

3939
# ---[ GPU test files
4040
# ------[ cuDNN
41-
if (USE_CUDNN)
41+
if(USE_CUDNN)
4242
file(GLOB tmp *_cudnn_test.cc)
4343
set(Caffe2_GPU_TEST_SRCS ${Caffe2_GPU_TEST_SRCS} ${tmp})
4444
endif()

caffe2/perfkernels/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
1+
if(INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
22
list(APPEND Caffe2_CPU_SRCS
33
"${CMAKE_CURRENT_SOURCE_DIR}/embedding_lookup_idx.cc"
44
)
@@ -21,14 +21,14 @@ set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${common_srcs})
2121

2222
# We will only build the perf kernel files if the compiler supports avx2
2323
# extensions.
24-
if (CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS)
24+
if(CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS)
2525
add_library(Caffe2_perfkernels_avx STATIC ${avx_srcs})
2626
add_library(Caffe2_perfkernels_avx2 STATIC ${avx2_srcs})
2727
add_dependencies(Caffe2_perfkernels_avx Caffe2_PROTO)
2828
add_dependencies(Caffe2_perfkernels_avx2 Caffe2_PROTO)
2929
target_link_libraries(Caffe2_perfkernels_avx PRIVATE c10)
3030
target_link_libraries(Caffe2_perfkernels_avx2 PRIVATE c10)
31-
if (MSVC)
31+
if(MSVC)
3232
target_compile_options(Caffe2_perfkernels_avx
3333
PRIVATE "/arch:AVX"
3434
PRIVATE "/D__F16C__")
@@ -57,11 +57,11 @@ if (CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS)
5757
Caffe2_DEPENDENCY_WHOLE_LINK_LIBS
5858
"Caffe2_perfkernels_avx2_interface")
5959

60-
if (CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS)
60+
if(CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS)
6161
add_library(Caffe2_perfkernels_avx512 STATIC ${avx512_srcs})
6262
add_dependencies(Caffe2_perfkernels_avx512 Caffe2_PROTO)
6363
target_link_libraries(Caffe2_perfkernels_avx512 PRIVATE c10)
64-
if (MSVC)
64+
if(MSVC)
6565
target_compile_options(Caffe2_perfkernels_avx512
6666
PRIVATE "/D__AVX512F__"
6767
PRIVATE "/D__AVX512DQ__"

caffe2/proto/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ caffe2_protobuf_generate_cpp_py(Caffe2_PROTO_SRCS Caffe2_PROTO_HEADERS Caffe2_PR
44

55
add_library(Caffe2_PROTO OBJECT ${Caffe2_PROTO_HEADERS} ${Caffe2_PROTO_SRCS})
66

7-
if (MSVC)
7+
if(MSVC)
88
if(BUILD_SHARED_LIBS)
99
set(Caffe2_API_DEFINE "-DCAFFE2_API=__declspec(dllexport)")
1010
else()

caffe2/quantization/server/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ list(APPEND Caffe2_CPU_SRCS
6060
#"${CMAKE_CURRENT_SOURCE_DIR}/sigmoid_test.cc")
6161
#"${CMAKE_CURRENT_SOURCE_DIR}/tanh_test.cc")
6262

63-
if (CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS)
63+
if(CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS)
6464
add_library(caffe2_dnnlowp_avx2_ops OBJECT ${caffe2_dnnlowp_avx2_ops_SRCS})
6565
add_dependencies(caffe2_dnnlowp_avx2_ops fbgemm Caffe2_PROTO c10)
6666
target_include_directories(caffe2_dnnlowp_avx2_ops BEFORE
6767
PRIVATE $<BUILD_INTERFACE:${FBGEMM_SOURCE_DIR}/include>)
6868

69-
if (MSVC)
69+
if(MSVC)
7070
set_property(SOURCE ${caffe2_dnnlowp_avx2_ops_SRCS}
7171
APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX2 ")
7272
else()

caffe2/share/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# There is a linking issue that happens in some of the Windows builds.
22
# TODO(Yangqing): after the module redesing, enable this back.
3-
if (NOT MSVC)
3+
if(NOT MSVC)
44
add_subdirectory(contrib)
55
endif()
66

caffe2/share/contrib/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
if (USE_NNPACK AND BUILD_CAFFE2_OPS)
1+
if(USE_NNPACK AND BUILD_CAFFE2_OPS)
22
add_subdirectory(nnpack)
33
endif()
4-
if (USE_ZSTD)
4+
if(USE_ZSTD)
55
add_subdirectory(zstd)
66
endif()
7-
if (NOT MSVC)
7+
if(NOT MSVC)
88
add_subdirectory(depthwise)
99
endif()
1010

caffe2/utils/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TODO: Add ThreadPoolXNNPACK.cc when XNNPACK integration is updated
22
# to pass the actual threadpool ptr instead of nullptr.
3-
if (INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
3+
if(INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
44
add_definitions(-DUSE_INTERNAL_THREADPOOL_IMPL)
55
list(APPEND Caffe2_CPU_SRCS
66
utils/string_utils.cc
@@ -36,7 +36,7 @@ list(APPEND Caffe2_CPU_SRCS
3636
# ---[ threadpool/pthreadpool* is a local modification of the NNPACK
3737
# pthreadpool with a very similar interface. Neither NNPACK, nor this
3838
# thread pool supports Windows.
39-
if (NOT MSVC)
39+
if(NOT MSVC)
4040
add_definitions(-DUSE_INTERNAL_THREADPOOL_IMPL)
4141
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS}
4242
utils/threadpool/pthreadpool.cc

0 commit comments

Comments
 (0)