Skip to content

[UR] Fixes for using ONEAPI_DEVICE_SELECTOR with linear ids #18029

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

RossBrunton
Copy link
Contributor

Linear IDs (the 0 in opencl:0) did not function as intended when
there was multiple platforms; each platform started counting at zero.
This patch changes it so that they start counting at an appropriate
number that should match urinfo.

urinfo itself has also been updated to not display linear IDs when
the device list is being filtered, as they will not be correct. This
matches the behavior of sycl-ls and is different to the
--no-linear-ids which changes the format of the output.

Linear IDs (the `0` in `opencl:0`) did not function as intended when
there was multiple platforms; each platform started counting at zero.
This patch changes it so that they start counting at an appropriate
number that should match `urinfo`.

`urinfo` itself has also been updated to not display linear IDs when
the device list is being filtered, as they will not be correct. This
matches the behavior of sycl-ls and is different to the
`--no-linear-ids` which changes the format of the output.
@RossBrunton RossBrunton marked this pull request as ready for review April 16, 2025 10:06
@RossBrunton RossBrunton requested a review from a team as a code owner April 16, 2025 10:06
@RossBrunton
Copy link
Contributor Author

@intel/llvm-gatekeepers Please merge.

@kbenzie kbenzie merged commit 1008730 into intel:sycl Apr 16, 2025
33 checks passed
kbenzie added a commit that referenced this pull request Apr 16, 2025
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.

2 participants