Fix Visual Studio build
[alexxy/gromacs.git] / src / gromacs / hardware / device_management_common.cpp
index d505833d76124aa2b67a4dabb154c996d3451d90..3d043234321f3df055a78cd76fb54da9ac709711 100644 (file)
@@ -60,7 +60,14 @@ bool canPerformDeviceDetection(std::string* errorMessage)
 
 bool isDeviceDetectionEnabled()
 {
-    return c_binarySupportsGpus && getenv("GMX_DISABLE_GPU_DETECTION") == nullptr;
+    if (c_binarySupportsGpus)
+    {
+        return getenv("GMX_DISABLE_GPU_DETECTION") == nullptr;
+    }
+    else
+    {
+        return false;
+    }
 }
 
 bool canComputeOnDevice()