-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][libdevice] Move common group utils from sanitizer specific header #18502
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors group utility functions in the libdevice library by moving common group utilities from the sanitizer-specific header into a dedicated header file.
- Removed definitions of WorkGroupLinearId, SubGroupLinearId, and SubGroupBarrier from sanitizer_defs.hpp
- Added a new header group_utils.hpp that contains the common group utility function definitions
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
libdevice/include/sanitizer_defs.hpp | Removed group utility function definitions and added an include for group_utils.hpp |
libdevice/include/group_utils.hpp | New header containing group utility functions previously defined in sanitizer_defs.hpp |
Files not reviewed (1)
- libdevice/cmake/modules/SYCLLibdevice.cmake: Language not supported
libdevice/include/group_utils.hpp
Outdated
|
||
#if defined(__SPIR__) || defined(__SPIRV__) | ||
|
||
size_t WorkGroupLinearId() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider marking these utility functions as 'inline' to avoid potential multiple definition issues if this header is included in multiple translation units.
size_t WorkGroupLinearId() { | |
inline size_t WorkGroupLinearId() { |
Copilot uses AI. Check for mistakes.
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Hi, @intel/llvm-gatekeepers |
Hi, @intel/llvm-gatekeepers |
We defined some group/subgroup util functions in device sanitizer specific headers, these functions will be used by other libdevice functions, so move them to a separate header.