Skip to content
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

[SYCL] Fix deprecation of device selectors #6965

Conversation

steffenlarsen
Copy link
Contributor

Due to SYCL 1.2.1 device selectors being callable, they would fall into the SYCL 2020 interface rather than into the deprecated interfaces. To amend this, the trait for checking for callables has been changed to exclude subclasses of device_selector.

Additionally this commit clarifies the deprecation messages to avoid capitalization of "Callable" and referencing the related SYCL specification versions for old and new interfaces.

Due to SYCL 1.2.1 device selectors being callable, they would fall into
the SYCL 2020 interface rather than into the deprecated interfaces. To
amend this, the trait for checking for callables has been changed to
exclude subclasses of device_selector.

Additionally this commit clarifies the deprecation messages to avoid
capitalization of "Callable" and referencing the related SYCL
specification versions for old and new interfaces.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@mkinsner
Copy link

mkinsner commented Oct 5, 2022

LGTM!

Copy link
Contributor

@cperkinsintel cperkinsintel left a comment

Choose a reason for hiding this comment

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

LGTM

@steffenlarsen
Copy link
Contributor Author

@npmiller | @AidanBeltonS - The HIP failures here seem unrelated to the changes, but I do not see them failing on other PRs. Could you please advise?

@npmiller
Copy link
Contributor

I've had a look into this and it's quite strange, I'm not able to reproduce it with either MI100 or MI50, and I've also tried on tip and on your branch and I get no issues.

However it does look like we've had similar issues with other atomic tests before:

So I think it should be okay to ignore these/mark them unsupported until we can properly debug them on the same architecture as the CI.

@steffenlarsen
Copy link
Contributor Author

Thank you, @npmiller! I will rerun tests after intel/llvm-test-suite#1318 is merged.

@steffenlarsen steffenlarsen merged commit a6222ba into intel:sycl Oct 11, 2022
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.

5 participants