Skip to content

Commit 08db888

Browse files
committed
apply comments
1 parent b262dc6 commit 08db888

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sycl/test-e2e/format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ def get_extra_env(sycl_devices):
337337
backend, device = parsed_dev_name.split(":", 1)
338338
device_selector = parsed_dev_name
339339
if backend == "level_zero" and device.isdigit():
340+
# level_zero:0 maps to a selector for the first GPU, so pin
341+
# execution to the requested device via ZE_AFFINITY_MASK.
340342
extra_env.append(f"ZE_AFFINITY_MASK={device}")
341343
device_selector = f"{backend}:0"
342344

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def remove_level_zero_suffix(devices):
706706
available_devices = {
707707
"opencl": ("cpu", "gpu", "fpga"),
708708
"cuda": "gpu",
709-
"level_zero": ("gpu", "0", "1"),
709+
"level_zero": "gpu",
710710
"hip": "gpu",
711711
"native_cpu": "cpu",
712712
"offload": "gpu",

0 commit comments

Comments
 (0)