Skip to content

[SYCL] Relax work-group metadata generation and processing in sycl-post-link #7471

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

steffenlarsen
Copy link
Contributor

When generating program metadata for reqd_work_group_size information sycl-post-link currently expects the existence of all three dimensions in the metadata. As a result the compile-time kernel property work_group_size needs to pad itself to adhere to this requirement. This commit relaxes the requirement by instead allowing fewer than three metadata operands in both reqd_work_group_size and work_group_size_hint when generating the program metadata. Additionally, padding will no longer be added when converting "sycl-work-group-size" and "sycl-work-group-size-hint" into the corresponding metadata.

…st-link

When generating program metadata for reqd_work_group_size information
sycl-post-link currently expects the existance of all three dimensions
in the metadata. As a result the compile-time kernel property
work_group_size needs to pad itself to adhere to this requirement.
This commit relaxes the requirement by instead allowing fewer than three
metadata operands in both reqd_work_group_size and work_group_size_hint
when generating the program metadata. Additionally, padding will no
longer be added when converting "sycl-work-group-size" and
"sycl-work-group-size-hint" into the corresponding metadata.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team November 21, 2022 15:14
@steffenlarsen
Copy link
Contributor Author

This is in draft as it requires KhronosGroup/SPIRV-LLVM-Translator#1726

@steffenlarsen steffenlarsen marked this pull request as ready for review November 24, 2022 09:38
@steffenlarsen steffenlarsen requested a review from a team as a code owner November 24, 2022 09:38
@steffenlarsen
Copy link
Contributor Author

Dependency has been resolved. This is ready for review.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

Failure in Precommit is due to an infrastructure issue.

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