Finalize change from GMX_CPU_ACCELERATION to GMX_SIMD
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 27 May 2014 07:58:26 +0000 (09:58 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 30 May 2014 18:54:55 +0000 (20:54 +0200)
Change-Id: I6c947d80f36c2fd8e1608520cb505d0586719644

CMakeLists.txt

index 4f1f62b6dd27e5f3becd3a12f3f3bbf730691fc0..c06b6248310c1ef632d554f6685ec2c0aa93d2f2 100644 (file)
@@ -216,6 +216,8 @@ gmx_detect_target_architecture()
 if(GMX_CPU_ACCELERATION)
     # Stay compatible with old Jenkins command line options for specific SIMD acceleration
     set(GMX_SIMD "${GMX_CPU_ACCELERATION}" CACHE STRING "SIMD instruction set level and compiler optimization" FORCE)
+    message("You set GMX_CPU_ACCELERATION, which is deprecated, and will be removed in a later version of GROMACS. It is replaced by GMX_SIMD. For now, copying the value from GMX_CPU_ACCELERATION to GMX_SIMD.")
+    # TODO remove all references to GMX_CPU_ACCELERATION in master branch
 endif()
 
 if(NOT GMX_TARGET_MIC)
@@ -590,7 +592,7 @@ gmx_set_build_information()
 # Note: it's better to not use the later set value of GMX_SIMD because
 # it reflects the system's capability of both compiling and running AVX code.
 # TODO: After merge with 5.0 one could implement a cache variable dependency
-# such that GMX_USE_RDTSCP can change if GMX_CPU_ACCELERATION is changed to AVX
+# such that GMX_USE_RDTSCP can change if GMX_SIMD is changed to AVX
 # after the first cmake pass.
 if (BUILD_CPU_FEATURES MATCHES "rdtscp" OR GMX_SIMD MATCHES "AVX")
     set(GMX_USE_RDTSCP_DEFAULT_VALUE ON)