Split canDetectGpus()
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / leapfrog.cpp
index 16f0ad970c2978b03b590915489cd98b9fb354d6..319bb41efd9f5743f751a062526e1b0f01e05ef3 100644 (file)
@@ -168,10 +168,10 @@ class IntegratorTest : public ::testing::TestWithParam<IntegratorTestParameters>
 
 };
 
-TEST_P(IntegratorTest, SimpleIntegration){
-    // Do nothing if it is a CUDA build but there are no CUDA-capable GPUs
-    std::string errorMessage;
-    if (!canDetectGpus(&errorMessage))
+TEST_P(IntegratorTest, SimpleIntegration)
+{
+    // TODO: Here we should check that at least 1 suitable GPU is available
+    if (!canPerformGpuDetection())
     {
         return;
     }