Skip to content

[SYCL] Fix sycl-ls device indexing #4704

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
Oct 6, 2021
Merged

Conversation

npmiller
Copy link
Contributor

@npmiller npmiller commented Oct 5, 2021

This fixes two issues, first backend::all is not guaranteed to be the
last entry in the backend types enum and shouldn't be used as such. This
caused issues for newer backends such as HIP (see #4698).

The second issue is that the DeviceNums vector wasn't being reset
between the short output and the verbose output which meant that the
device indices printed in the verbose output were incorrect.

This fixes two issues, first `backend::all` is not guaranteed to be the
last entry in the backend types enum and shouldn't be used as such. This
caused issues for newer backends such as HIP (see intel#4698).

The second issue is that the `DeviceNums` vector wasn't being reset
between the short output and the verbose output which meant that the
device indices printed in the verbose output were incorrect.
@npmiller npmiller requested a review from a team as a code owner October 5, 2021 11:31
@npmiller npmiller requested a review from vladimirlaz October 5, 2021 11:31
@vladimirlaz vladimirlaz requested a review from bso-intel October 5, 2021 11:47
@vladimirlaz
Copy link
Contributor

@bso-intel, could you please review?

@bader bader merged commit 0cee18e into intel:sycl Oct 6, 2021
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