Report MIC SIMD correctly
[alexxy/gromacs.git] / CMakeLists.txt
index eb41e7a4d6a778c5c0566b6809907acb5bf9a03f..6a47b6d846d7017e3eb8a2fd6a2148c9d8b2af2e 100644 (file)
@@ -198,8 +198,12 @@ if(GMX_CPU_ACCELERATION)
     set(GMX_SIMD "${GMX_CPU_ACCELERATION}" CACHE STRING "SIMD instruction set level and compiler optimization" FORCE)
 endif(GMX_CPU_ACCELERATION)
 
-include(gmxDetectSimd)
-gmx_detect_simd(GMX_SUGGESTED_SIMD)
+if(NOT GMX_TARGET_MIC)
+    include(gmxDetectSimd)
+    gmx_detect_simd(GMX_SUGGESTED_SIMD)
+else()
+    set(GMX_SUGGESTED_SIMD "None")
+endif()
 
 gmx_option_multichoice(
     GMX_SIMD