Skip to content

Conversation

@mateuszpn
Copy link
Contributor

@mateuszpn mateuszpn commented Nov 21, 2025

Fix llvm-lit to enable the simultaneous use of _v1 and _v2 to select the l0 adapter and the use of arch to select the GPU, eg.:
llvm-lit --param "sycl_devices=level_zero_v2:arch-intel_gpu_mtl_u" sycl/test-e2e
Necessary to run tests on integrated GPU on system with another GPU
Includes fixed setting of ZE_AFFINITY_MASK in multi-gpu systems

@mateuszpn mateuszpn requested a review from a team as a code owner November 21, 2025 15:33
@aelovikov-intel aelovikov-intel changed the title [SYCL][e2e-tests] fix lit for arch selection and l0v2 adapter [SYCL][E2E] Fix lit for arch selection and l0v2 adapter Nov 21, 2025
Comment on lines +337 to +341
backend, device = parsed_dev_name.split(":", 1)
device_selector = parsed_dev_name
if backend == "level_zero" and device.isdigit():
extra_env.append(f"ZE_AFFINITY_MASK={device}")
device_selector = f"{backend}:0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a comment.

"opencl": ("cpu", "gpu", "fpga"),
"cuda": "gpu",
"level_zero": "gpu",
"level_zero": ("gpu", "0", "1"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you trying to allow llvm-lit --param sycl_devices=level_zero:0? We intentionally decided to disallow that in review of #18197

expanded = "env"

extra_env = get_extra_env([parsed_dev_name])
backend, device = parsed_dev_name.split(":", 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example of the intended lit string after the change in the PR description is

llvm-lit --param "sycl_devices=level_zero_v2:arch-intel_gpu_mtl_u" sycl/test-e2e

but I was expecting something like

llvm-lit --param "sycl_devices='level_zero_v1:gpu;level_zero_v2:gpu" sycl/test-e2e

Can you clarify on the intended use case? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants