Skip to content

[SYCL] Move device_selector to the detail namespace#22363

Closed
KornevNikita wants to merge 5 commits into
intel:syclfrom
KornevNikita:mv-device-selector
Closed

[SYCL] Move device_selector to the detail namespace#22363
KornevNikita wants to merge 5 commits into
intel:syclfrom
KornevNikita:mv-device-selector

Conversation

@KornevNikita

Copy link
Copy Markdown
Contributor

The class has been removed in SYCL 2020. Move it to the detail namespace to keep support for legacy selectors while making it invisible to users.

Prepare all classes/functions that are using this class for this move, i.e. update some to use detail::device_selector and remove the rest that is not part of SYCL 2020.

FYI - KhronosGroup/SYCL-Docs#1018

The class has been removed in SYCL 2020. Move it to the detail namespace
to keep support for legacy selectors while making it invisible to users.

Prepare all classes/functions that are using this class for this move,
i.e. update some to use detail::device_selector and remove the rest that
is not part of SYCL 2020.
inline namespace _V1 {

// Forward declaration
class device_selector;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

note - redundant FD, not used in this file.


// Forward declarations
class device;
class device_selector;

@KornevNikita KornevNikita Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

note - redundant FD. The filter_selector class uses device_selector as a base class and therefore needs #include.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

Closing in favor of #22423

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.

1 participant