Skip to content

Commit 46f5e2d

Browse files
committed
sycl-ls change to use device_id
1 parent 0714d8c commit 46f5e2d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,9 +718,9 @@ def open_check_file(file_name):
718718
# str.removeprefix isn't universally available...
719719
sg_sizes_str = line.strip().replace("info::device::sub_group_sizes: ", "")
720720
dev_sg_sizes.append(sg_sizes_str.strip().split(" "))
721-
if re.match(r" *UUID*", line):
721+
if re.match(r" *DeviceID*", line):
722722
_, uuid = line.strip().split(":", 1)
723-
if uuid.strip() == "1341282181147000410000000":
723+
if uuid.strip() == "3034":
724724
config.available_features.add("gpu-intel-pvc-1T")
725725
if re.match(r" *Architecture:", line):
726726
_, architecture = line.strip().split(":", 1)

sycl/tools/sycl-ls/sycl-ls.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ static void printDeviceInfo(const device &Device, bool Verbose,
148148
std::cout << std::endl;
149149
}
150150

151+
// Get and print device ID, if it is available.
152+
if (Device.has(aspect::ext_intel_device_id)) {
153+
auto DeviceID = Device.get_info<sycl::ext::intel::info::device::device_id>();
154+
std::cout << Prepend << "DeviceID : " << DeviceID
155+
<< std::endl;
156+
}else{
157+
std::cout << Prepend << "DeviceID : " << "UNKNOWN"
158+
<< std::endl;
159+
}
160+
151161
// Print sub and sub-sub devices.
152162
{
153163
auto DevCount = GetNumberOfSubAndSubSubDevices(Device);

0 commit comments

Comments
 (0)