Skip to content

[SYCL] Refactor sub-group built-ins implementation #1031

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

AlexeySachkov
Copy link
Contributor

Main motivation and idea of this change is to use existing utility
functions for mapping from SYCL types to corresponding SPIR-V types,
which will automatically allows to use wide range of types in sub-group
built-ins (like char or bool)

List of changes:

  • used existing ConvertToOpenCLType_t to map SYCL types to OpenCL
    types
  • added bunch of helper functions to reduce the code
  • refactored bunch of enable_ifs to use the same style (on return
    value)

@AlexeySachkov AlexeySachkov force-pushed the private/asachkov/refactor-sub-group-bis branch from 1e8adb3 to 3898c75 Compare January 22, 2020 16:14
@AlexeySachkov AlexeySachkov force-pushed the private/asachkov/refactor-sub-group-bis branch from 3898c75 to 9af42e4 Compare January 27, 2020 12:05
Main motivation and idea of this change is to use existing utility
functions for mapping from SYCL types to corresponding SPIR-V types,
which will automatically allows to use wide range of types in sub-group
built-ins (like `char` or `bool`)

List of changes:
- used existing `ConvertToOpenCLType_t` to map SYCL types to OpenCL
  types
- added bunch of helper functions to reduce the code
- refactored bunch of `enable_if`s to use the same style (on return
  value)

Signed-off-by: Alexey Sachkov <[email protected]>
@AlexeySachkov AlexeySachkov force-pushed the private/asachkov/refactor-sub-group-bis branch from 9af42e4 to c04ede2 Compare January 29, 2020 13:43
@bader bader merged commit 50e7abd into intel:sycl Jan 30, 2020
@AlexeySachkov AlexeySachkov deleted the private/asachkov/refactor-sub-group-bis branch April 1, 2020 10:23
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.

8 participants