Skip to content

Commit c015f89

Browse files
authored
Merge pull request #1690 from hdelan/add-uuid-to-device-name
[Test] Add UUID to device name
2 parents 7a6622f + 7a6d2bd commit c015f89

File tree

1 file changed

+6
-2
lines changed
  • test/conformance/testing/include/uur

1 file changed

+6
-2
lines changed

test/conformance/testing/include/uur/utils.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,13 @@ inline std::string GetPlatformName(ur_platform_handle_t hPlatform) {
189189
}
190190

191191
inline std::string GetDeviceName(ur_device_handle_t device) {
192-
std::string device_name;
192+
std::string device_name, device_uuid;
193193
GetDeviceInfo<std::string>(device, UR_DEVICE_INFO_NAME, device_name);
194-
return GTestSanitizeString(device_name);
194+
GetDeviceInfo<std::string>(device, UR_DEVICE_INFO_UUID, device_uuid);
195+
if (!device_uuid.empty()) {
196+
device_uuid += "____";
197+
}
198+
return GTestSanitizeString(device_name + device_uuid);
195199
}
196200

197201
inline std::string GetPlatformAndDeviceName(ur_device_handle_t device) {

0 commit comments

Comments
 (0)