Skip to content

[SYCL] Construct context from first device in unit tests #4142

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
Jul 30, 2021

Conversation

npmiller
Copy link
Contributor

This is because multiple devices in a context is not supported with AOT
compiling, which is always used for the CUDA and ROCm pluginis, and
constructing the context from the platform may result in multiple
devices in the context if there are multiple devices available on the
system.

These tests are run with a device filter so this will only happen
when there is multiple devices of the same type. Which also means that
it should always be fine to take the first device from the platform as
it should still be of the expected device type.

This is because multiple devices in a context is not supported with AOT
compiling, which is always used for the CUDA and ROCm pluginis, and
constructing the context from the platform may result in multiple
devices in the context if there are multiple devices available on the
system.

These tests are run with a device filter so this will only happen
when there is multiple devices of the same type. Which also means that
it should always be fine to take the first device from the platform as
it should still be of the expected device type.
@npmiller npmiller requested a review from a team as a code owner July 19, 2021 15:57
@npmiller npmiller requested a review from dm-vodopyanov July 19, 2021 15:57
@bader
Copy link
Contributor

bader commented Jul 22, 2021

@dm-vodopyanov, @intel/llvm-reviewers-runtime, ping.

@bader bader merged commit 67d0e98 into intel:sycl Jul 30, 2021
zahiraam pushed a commit to zahiraam/llvm-1 that referenced this pull request Aug 2, 2021
This is because multiple devices in a context is not supported with AOT
compiling, which is always used for the CUDA and ROCm pluginis, and
constructing the context from the platform may result in multiple
devices in the context if there are multiple devices available on the
system.

These tests are run with a device filter so this will only happen
when there is multiple devices of the same type. Which also means that
it should always be fine to take the first device from the platform as
it should still be of the expected device type.
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