Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / settle.cpp
index 3a08231685b5c66b282910157a62076bd5a95793..41552e2f5844a967610362616c2e619592bea3b0 100644 (file)
@@ -187,12 +187,9 @@ public:
         // 2. There is a CUDA-capable GPU in a system
         // 3. This GPU is detectable
         // 4. GPU detection was not disabled by GMX_DISABLE_GPU_DETECTION environment variable
-        if (s_hasCompatibleGpus)
+        if (GMX_GPU_CUDA && s_hasCompatibleGpus)
         {
-            if (GMX_GPU == GMX_GPU_CUDA && s_hasCompatibleGpus)
-            {
-                runners_["SETTLE_GPU"] = applySettleGpu;
-            }
+            runners_["SETTLE_GPU"] = applySettleGpu;
         }
     }