Use device information object instead of id when performing device checks
[alexxy/gromacs.git] / src / gromacs / hardware / device_management_ocl.cpp
index 4404efed3c55b7c45a5fc4a2091d0244abf2db07..c46a04ee01816ebf76e5fdc807a0d2310e778282 100644 (file)
@@ -119,9 +119,9 @@ static bool runningOnCompatibleOSForAmd()
  *  of these returned.
  *
  * \param[in]  deviceInfo  The device info pointer.
- * \returns                The result of the compatibility checks.
+ * \returns                The status enumeration value for the checked device:
  */
-static DeviceStatus isDeviceSupported(const DeviceInformation& deviceInfo)
+static DeviceStatus isDeviceFunctional(const DeviceInformation& deviceInfo)
 {
     if (getenv("GMX_OCL_DISABLE_COMPATIBILITY_CHECK") != nullptr)
     {
@@ -272,7 +272,7 @@ static bool isDeviceFunctional(const DeviceInformation& deviceInfo, std::string*
 static DeviceStatus checkGpu(size_t deviceId, const DeviceInformation& deviceInfo)
 {
 
-    DeviceStatus supportStatus = isDeviceSupported(deviceInfo);
+    DeviceStatus supportStatus = isDeviceFunctional(deviceInfo);
     if (supportStatus != DeviceStatus::Compatible)
     {
         return supportStatus;