Skip to content

[SYCL] SYCL 2020 standalone device selectors ( gpu_selector_v and friends) #6549

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

Conversation

cperkinsintel
Copy link
Contributor

@cperkinsintel cperkinsintel commented Aug 10, 2022

implementation of standalone selectors (e.g. gpu_selector_v, etc)

new tests for llvm-test-suite are here: intel/llvm-test-suite#1141

@cperkinsintel
Copy link
Contributor Author

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

@cperkinsintel
Copy link
Contributor Author

For some reason, when resolving the merge conflicts, there were only conflict in the linux abi .dump file, not the Windows one. Odd. I merged, rebuilt on both platforms, and reran the ABI symbols generation on both. The merge conflict is resolved, but on Windows my .dump has picked up the symbols from the recently merged #6474 for some reason. Maybe reordering? Maybe the symbols from 6474, while correct, weren't generated by the python script?

@cperkinsintel
Copy link
Contributor Author

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

@cperkinsintel
Copy link
Contributor Author

ping to reviewers.

Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

Just one minor nit, the rest LGTM.

Comment on lines +94 to +101
// -------------- SYCL 2020

// SYCL 2020 standalone selectors
__SYCL_EXPORT int default_selector_v(const device &dev);
__SYCL_EXPORT int gpu_selector_v(const device &dev);
__SYCL_EXPORT int cpu_selector_v(const device &dev);
__SYCL_EXPORT int accelerator_selector_v(const device &dev);

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should move it to the top of the file (as that's the most recent/modern interface and we want reader to get familiar with state of the art, not deprecated ways). After that, the section with old-style selectors above should be prefixed with a comment saying that they're remnants of SYCL 1.2.

@cperkinsintel cperkinsintel temporarily deployed to aws August 12, 2022 18:18 Inactive
@cperkinsintel cperkinsintel temporarily deployed to aws August 12, 2022 18:48 Inactive
@cperkinsintel cperkinsintel temporarily deployed to aws August 12, 2022 18:52 Inactive
@cperkinsintel cperkinsintel temporarily deployed to aws August 12, 2022 19:56 Inactive
@cperkinsintel cperkinsintel temporarily deployed to aws August 12, 2022 20:15 Inactive
@cperkinsintel
Copy link
Contributor Author

ping to reviewers and mergers. I have had to update this twice already because of linux symbol merge conflicts. My worry is that if it takes too long it'll get conflicted again.

@againull againull merged commit bfc7e98 into intel:sycl Aug 12, 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.

3 participants