@@ -16,11 +16,11 @@ set(CMAKE_CXX_EXTENSIONS ON) # GNU extensions used by src/operator/random/shuff
1616# some compilers claim they support c++17 without actually implementing crucial
1717# parts of the standard leading to hard to understand compilation errors.
1818if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
19- if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
19+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
2020 message (FATAL_ERROR "MXNet 2 requires a C++17 compatible compiler. Please update to GCC version 7 or newer." )
2121 endif ()
2222elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
23- if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
23+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
2424 message (FATAL_ERROR "MXNet 2 requires a C++17 compatible compiler. Please update to Clang version 6 or newer." )
2525 endif ()
2626endif ()
@@ -116,7 +116,7 @@ if(USE_CUDA)
116116 cmake_minimum_required (VERSION 3.13.2 ) # CUDA 10 (Turing) detection available starting 3.13.2
117117 include (CheckLanguage )
118118 check_language (CUDA )
119- if (NOT CMAKE_CUDA_COMPILER AND UNIX AND EXISTS "/usr/local/cuda/bin/nvcc" )
119+ if (NOT CMAKE_CUDA_COMPILER AND UNIX AND EXISTS "/usr/local/cuda/bin/nvcc" )
120120 set (ENV{CUDACXX} "/usr/local/cuda/bin/nvcc" )
121121 message (WARNING "CMAKE_CUDA_COMPILER guessed: " $ENV{CUDACXX} "\n "
122122 "Please fix your cuda installation: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#mandatory-post" )
@@ -562,7 +562,7 @@ if(USE_OPERATOR_TUNING AND USE_OPENMP)
562562 add_definitions (-DMXNET_USE_OPERATOR_TUNING=1 )
563563endif ()
564564
565- if (NOT (EXTRA_OPERATORS STREQUAL "" ))
565+ if (NOT (EXTRA_OPERATORS STREQUAL "" ))
566566 mxnet_source_group ("Extra" GLOB_RECURSE "${EXTRA_OPERATORS} /*.cc" )
567567 mxnet_source_group ("Extra\\ Cuda" GLOB_RECURSE "${EXTRA_OPERATORS} /*.cu" )
568568 FILE (GLOB_RECURSE EXTRA_SRC "${EXTRA_OPERATORS} /*.cc" )
@@ -818,7 +818,7 @@ if(USE_CUDA)
818818 target_include_directories (customop_gpu_lib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /include/mxnet ${CMAKE_CURRENT_SOURCE_DIR} /example/extensions/lib_custom_op )
819819endif ()
820820if (UNIX )
821- if (USE_CUDA)
821+ if (USE_CUDA)
822822 target_compile_options (customop_gpu_lib PUBLIC -shared )
823823 endif ()
824824elseif (MSVC )
@@ -948,11 +948,11 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/dmlc-core/include/ DESTIN
948948install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /3rdparty/mshadow/mshadow/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mshadow)
949949install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /include/mxnet/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mxnet)
950950install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /3rdparty/tvm/nnvm/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
951- if (INSTALL_EXAMPLES)
951+ if (INSTALL_EXAMPLES)
952952 install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /example DESTINATION ${CMAKE_INSTALL_DATADIR} /${PROJECT_NAME} )
953953endif ()
954954
955- if (USE_SIGNAL_HANDLER)
955+ if (USE_SIGNAL_HANDLER)
956956 add_definitions (-DMXNET_USE_SIGNAL_HANDLER=1 )
957957endif ()
958958
0 commit comments