Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / gromacs / hardware / device_management_common.cpp
index 1392020ce02b8660a382a2e75ea548aee14f196b..608d9498b1e2d587d7ac2c59551bfaa195bd52ad 100644 (file)
@@ -128,12 +128,14 @@ std::vector<int> getCompatibleDeviceIds(const std::vector<std::unique_ptr<Device
 bool deviceIdIsCompatible(const std::vector<std::unique_ptr<DeviceInformation>>& deviceInfoList,
                           const int                                              deviceId)
 {
-    auto foundIt = std::find_if(deviceInfoList.begin(), deviceInfoList.end(),
+    auto foundIt = std::find_if(deviceInfoList.begin(),
+                                deviceInfoList.end(),
                                 [deviceId](auto& deviceInfo) { return deviceInfo->id == deviceId; });
     if (foundIt == deviceInfoList.end())
     {
         GMX_THROW(gmx::RangeError(gmx::formatString(
-                "Device ID %d did not correspond to any of the %zu detected device(s)", deviceId,
+                "Device ID %d did not correspond to any of the %zu detected device(s)",
+                deviceId,
                 deviceInfoList.size())));
     }
     return (*foundIt)->status == DeviceStatus::Compatible;