Skip to content

[SYCL][AMDGPU] Use uint64_t type for SYCLReqdWorkGroupSize product type#22622

Merged
uditagarwal97 merged 2 commits into
intel:syclfrom
wenju-he:AMDGPUTargetCodeGenInfo-SYCLReqdWorkGroupSize-product-type
Jul 20, 2026
Merged

[SYCL][AMDGPU] Use uint64_t type for SYCLReqdWorkGroupSize product type#22622
uditagarwal97 merged 2 commits into
intel:syclfrom
wenju-he:AMDGPUTargetCodeGenInfo-SYCLReqdWorkGroupSize-product-type

Conversation

@wenju-he

@wenju-he wenju-he commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

range::size() is product of its dimensions and its return type is size_t. SYCLReqdWorkGroupSize product probably should fit in size_t type. unsigned type may have overflow issue when size_t type size is 64bit. Use uint64_t to align with downstream code.

range::size() is product of its dimensions and its return type is size_t.
SYCLReqdWorkGroupSize product probably should fit in size_t type.
unsigned type may have overflow issue when size_t type size is 64bit.
Use uint64_t to align with downstream code.
@wenju-he
wenju-he requested a review from a team as a code owner July 14, 2026 01:29

@Fznamznon Fznamznon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there any test that could show a need for the change?

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@wenju-he

Copy link
Copy Markdown
Contributor Author

Is there any test that could show a need for the change?

done, added a test that fails without this PR

@wenju-he
wenju-he requested a review from Fznamznon July 17, 2026 03:17
@wenju-he

Copy link
Copy Markdown
Contributor Author

@intel/llvm-gatekeepers please merge, thanks.
[SYCL Pre Commit on Windows / run_prebuilt_e2e_tests (Intel Arc Graphics with Level Zero, ["Windows","arc"]) fails are unrelated because this PR only impacts AMDGPU target.

@uditagarwal97
uditagarwal97 merged commit 412fc3f into intel:sycl Jul 20, 2026
34 of 37 checks passed
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