Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / constrtestrunners.cpp
index 7959cdd9287c4281e25213fba863eb4f3254c310..5fca4c06b31b94774d0d6b560b35d1467a1f7bc6 100644 (file)
@@ -149,7 +149,7 @@ void applyLincs(ConstraintsTestData* testData, t_pbc pbc)
     done_lincs(lincsd);
 }
 
-#if GMX_GPU != GMX_GPU_CUDA
+#if !GMX_GPU_CUDA
 /*! \brief
  * Stub for GPU version of LINCS constraints to satisfy compiler.
  *
@@ -160,7 +160,7 @@ void applyLincsGpu(ConstraintsTestData gmx_unused* testData, t_pbc gmx_unused pb
 {
     FAIL() << "Dummy LINCS CUDA function was called instead of the real one.";
 }
-#endif
+#endif // !GMX_GPU_CUDA
 
 } // namespace test
 } // namespace gmx