Skip to content

fix: fix kTaskLoopPolicy type in grouped gemm host code - #85

Open
icyhearts wants to merge 1 commit into
Tencent:mainfrom
icyhearts:fix_kTaskLoopPolicy_type
Open

fix: fix kTaskLoopPolicy type in grouped gemm host code#85
icyhearts wants to merge 1 commit into
Tencent:mainfrom
icyhearts:fix_kTaskLoopPolicy_type

Conversation

@icyhearts

Copy link
Copy Markdown

group_gemm_blockwise_fp8_kernel and group_gemm_fp8_kernel expect an int kTaskLoopPolicy template parameter, but their host-side callers pass a bool kTaskLoopPolicy.

The kernel expects kTaskLoopPolicy to take the value 0, 1, or 2, while a bool can only represent true or false. Therefore, using bool here is incorrect and may silently convert to 0 or 1, making the 2 policy unreachable.

This PR fixes the type mismatch by using int for kTaskLoopPolicy in the host-side caller code.

@icyhearts

Copy link
Copy Markdown
Author

@reed-lau hello, would you please take some time to review this PR? The modifications are simple.

@reed-lau

Copy link
Copy Markdown
Collaborator

@weishengying could you please help review it?

@icyhearts
icyhearts force-pushed the fix_kTaskLoopPolicy_type branch from 425332b to 4951620 Compare August 28, 2026 14:56
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