Skip to content

[SYCL] Throw exception when selected device is not in context #8052

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

Conversation

steffenlarsen
Copy link
Contributor

In accordance with the SYCL 2020 specification a device selector should always pick from all available devices. Likewise, the queue constructor should throw an exception if the selected device is not in the given context. This commit fixes the device selection behavior when a context is specified, throwing the corresponding exception. Note that this only affects SYCL 2020 style device selectors.

In accordance with the SYCL 2020 specification a device selector should
always pick from all available devices. Likewise, the queue constructor
should throw an exception if the selected device is not in the given
context. This commit fixes the device selection behavior when a context
is specified, throwing the corresponding exception. Note that this only
affects SYCL 2020 style device selectors.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1527

@steffenlarsen steffenlarsen temporarily deployed to aws January 19, 2023 13:17 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws January 19, 2023 14:52 — with GitHub Actions Inactive
@steffenlarsen
Copy link
Contributor Author

Failed Test on CUDA:
SYCL :: BFloat16/bfloat16_builtins.cpp
is known: #8040

@steffenlarsen steffenlarsen merged commit 262299d into intel:sycl Jan 24, 2023
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