Skip to content

Commit 772a8e8

Browse files
[SYCL][E2E] Use "run_launcher" for internal sycl-ls calls (#11869)
That is intended to allow running the tests on a simulator (internally for now).
1 parent 9489c12 commit 772a8e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,13 @@
273273

274274
if len(config.sycl_devices) == 1 and config.sycl_devices[0] == 'all':
275275
devices = set()
276-
sp = subprocess.check_output(sycl_ls, text=True)
276+
cmd = '{} {}'.format(config.run_launcher, sycl_ls) if config.run_launcher else sycl_ls
277+
sp = subprocess.check_output(cmd, text=True, shell=True)
277278
for line in sp.splitlines():
278279
if "gfx90a" in line:
279280
config.available_features.add("gpu-amd-gfx90a")
281+
if not line.startswith('['):
282+
continue
280283
(backend, device, _) = line[1:].split(':', 2)
281284
devices.add('{}:{}'.format(backend, device))
282285
config.sycl_devices = list(devices)
@@ -423,7 +426,8 @@
423426
# with their test run. It's just us filtering here, so silence them unless
424427
# we get an exit status.
425428
try:
426-
sp = subprocess.run([sycl_ls, '--verbose'], env=env, text=True,
429+
cmd = '{} {} --verbose'.format(config.run_launcher or "", sycl_ls)
430+
sp = subprocess.run(cmd, env=env, text=True, shell=True,
427431
capture_output=True)
428432
sp.check_returncode()
429433
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)