Split canDetectGpus()
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / constr.cpp
index a20e3d74d4d5b10a60d8590ffc7fb871371179e5..2b14d9e73d410a30aff6fe7f3a8e73e8a8cf3d02 100644 (file)
@@ -312,8 +312,8 @@ std::vector<std::string> getAlgorithmsNames()
 {
     algorithmsNames.emplace_back("SHAKE");
     algorithmsNames.emplace_back("LINCS");
-    std::string errorMessage;
-    if (GMX_GPU == GMX_GPU_CUDA && canDetectGpus(&errorMessage))
+    // TODO: Here we should check that at least 1 suitable GPU is available
+    if (GMX_GPU == GMX_GPU_CUDA && canPerformGpuDetection())
     {
         algorithmsNames.emplace_back("LINCS_CUDA");
     }