Skip to content

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

Open
wenju-he wants to merge 1 commit into
intel:syclfrom
wenju-he:AMDGPUTargetCodeGenInfo-SYCLReqdWorkGroupSize-product-type
Open

[SYCL][AMDGPU] Use uint64_t type for SYCLReqdWorkGroupSize product type#22622
wenju-he wants to merge 1 commit 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?

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