-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL][E2E] Fix lit for arch selection and l0v2 adapter #20728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: sycl
Are you sure you want to change the base?
Conversation
| 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" |
There was a problem hiding this comment.
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"), |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
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-e2eNecessary to run tests on integrated GPU on system with another GPU
Includes fixed setting of ZE_AFFINITY_MASK in multi-gpu systems