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] sub-devices selected by ONEAPI_DEVICE_SELECTOR as root devices #7167

Merged

Conversation

cperkinsintel
Copy link
Contributor

@cperkinsintel cperkinsintel commented Oct 24, 2022

All devices available when using ONEAPI_DEVICE_SELECTOR are root devices, even those which are gotten via the sub-device selection choices ( e.g. ONEAPI_DEVICE_SELECTOR=level_zero:*.* ). In this PR we are ensuring that those devices pretend to be root devices.

Tests for this are here: intel/llvm-test-suite#1346

@cperkinsintel cperkinsintel marked this pull request as ready for review October 25, 2022 22:28
@cperkinsintel cperkinsintel requested a review from a team as a code owner October 25, 2022 22:28
@cperkinsintel
Copy link
Contributor Author

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

Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen merged commit b21e74e into intel:sycl Nov 3, 2022
steffenlarsen pushed a commit to intel/llvm-test-suite that referenced this pull request Nov 3, 2022
These are the tests for intel/llvm#7167

All devices available when using ONEAPI_DEVICE_SELECTOR are root devices, even those which are gotten via the sub-device selection choices ( e.g. ONEAPI_DEVICE_SELECTOR=level_zero:*.* ). In this PR we are ensuring that all devices gotten with that environment variable are root devices that have no parent. And, conversely, that when not using it, any sub-devices do report the correct parent.
@steffenlarsen
Copy link
Contributor

@cperkinsintel - post-link is failing on macOS and Linux after merge. Could you please investigate?

aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…-test-suite#1346)

These are the tests for intel#7167

All devices available when using ONEAPI_DEVICE_SELECTOR are root devices, even those which are gotten via the sub-device selection choices ( e.g. ONEAPI_DEVICE_SELECTOR=level_zero:*.* ). In this PR we are ensuring that all devices gotten with that environment variable are root devices that have no parent. And, conversely, that when not using it, any sub-devices do report the correct parent.
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