Skip to content

Commit 30fa2d8

Browse files
committed
Use single var to enable both adapters
1 parent abb0daf commit 30fa2d8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sycl/test-e2e/format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ def get_extra_env(sycl_devices):
333333
dev_features = test.config.sycl_dev_features[full_dev_name]
334334
if "level_zero_v2_adapter" in dev_features:
335335
expanded += " env UR_LOADER_USE_LEVEL_ZERO_V2=1"
336+
else:
337+
expanded += " env UR_LOADER_USE_LEVEL_ZERO_V2=0"
336338

337339
expanded += " ONEAPI_DEVICE_SELECTOR={} {}".format(
338340
parsed_dev_name, test.config.run_launcher

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,8 @@ def get_sycl_ls_verbose(sycl_device, env):
962962

963963
if "v2" in full_name:
964964
env["UR_LOADER_ENABLE_LEVEL_ZERO_V2"] = "1"
965+
else:
966+
env["UR_LOADER_ENABLE_LEVEL_ZERO_V2"] = "0"
965967

966968
env["ONEAPI_DEVICE_SELECTOR"] = sycl_device
967969
if sycl_device.startswith("cuda:"):

0 commit comments

Comments
 (0)