Pull Request已成功合入, 合并人@CANN-robot
(感谢 louyuxuan 的贡献)变更摘要
该 PR 修复 SIMT 协作组接口的返回类型错误,将 cooperative_groups 相关接口(num_threads()、size()、thread_rank()、meta_group_size()、meta_group_rank())的返回类型由 unsigned long long 统一调整为 unsigned int,并同步更新测试断言及 coalesced_group、thread_block_tile 相关文档中的示例变量类型。
主要改动
-
接口声明与实现返回类型调整:在
include/simt_api/cooperative_groups.h与impl/simt_api/cooperative_groups_impl.h中,将tiled_group、coalesced_group、single_warp_thread_block_tile_base、multi_warp_thread_block_tile_base的num_threads()、size()、thread_rank()(及coalesced_group的meta_group_size()、meta_group_rank())返回类型由unsigned long long改为unsigned int,并移除实现中的static_cast<unsigned long long>转换,直接返回底层_tiled_info字段。 -
测试断言同步更新:在
tests/api/simt_api/ascendc_case_ascend950pr_9599_simt/test_operator_simt_c_cooperative_groups.cpp中,将size()、num_threads()、thread_rank()的期望值由4ull/8ull/0ull调整为4u/8u/0u,与新的返回类型保持一致。 -
文档更新:更新
coalesced_group与thread_block_tile的接口文档(coalesced_group_intro.md、num_threads.md、size.md、thread_rank.md、thread_block_tile_intro.md),将接口原型及示例变量类型由unsigned long long调整为unsigned int。


Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| docs | ✅ ai_xin, wulinyu, zhanghao_0689 (3/2) | ✅ ai_xin (1/1) |
| impl/simt_api | ✅ wulinyu, zhanghao_0689 (2/2) | ✅ wulinyu (1/1) |
| include/simt_api | ✅ zhanghao_0689, wulinyu (2/2) | ✅ zhanghao_0689 (1/1) |
| repo-cann/asc-devkit | ✅ zhanghao_0689, wulinyu (2/2) | ✅ wulinyu, zhanghao_0689 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
louyuxuan, thanks for your pull request. All authors of the commits have signed the CLA. 👍


流水线任务触发成功
任务链接 [5b4cfc278ec84a51bf4dbe7cf092f75b][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| pre_comment | ✅ SUCCESS | >>>>> | |
| codecheck_codestyle | ❌ FAILED | Backend unavailable | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_md | ✅ SUCCESS |


流水线任务触发成功
任务链接 [a6cd0a5ad2c641aeb9c500bd4db5fbc7][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-08-25 16:46:22] CI执行结束


流水线任务触发成功
任务链接 [d026089f55474e39be8231b914c78f00][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_adv_test_one | ✅ SUCCESS | ||
| UT_Test_adv_test_two | ✅ SUCCESS | ||
| UT_Test_basic_test_one | ✅ SUCCESS | ||
| UT_Test_basic_test_two | ✅ SUCCESS | ||
| UT_Test_basic_test_three | ✅ SUCCESS | ||
| UT_Test_basic_test_four | ✅ SUCCESS | ||
| UT_Test_basic_test_five | ✅ SUCCESS | ||
| UT_Test_arm | ✅ SUCCESS | ||
| API_Check | ⚠️ WARNING | >>>>> | |
| UT_Test_report | ✅ SUCCESS | >>>>> |
[2026-08-25 16:35:27] CI执行结束


louyuxuan,感谢您的提交,建议在完成PR充分自验证后,再触发线上构建任务。
若您的PR已具备检视条件,可根据下表的责任田,@对应的committer进行代码检视,我们会在第一时间对您的提交进行处理。
代码责任田:
| module | committer |
|---|---|
| adv_api | chenyiyuan, wuyang_hw |
| basic_api | chenyiyuan, wuyang_hw |
| c_api | pangfd, haipingmao |
| cmake | xun_zhuge, DragonBornHD84 |
| docs | munanhw, ai_xin |
| examples | changxianyu, bianque |
| simt_api | wulinyu, zhanghao_0689 |
| scripts | xun_zhuge, kevin365 |
| tools | YANXI_ZHAO, XuebinYang, sjtulxh |
💡 如您不确定可以@谁,可以直接@我或者ascend-c sig的maintainer,xun_zhuge和ascendhjh,我们会为您分配合适的committer进行代码检视。
再次感谢您参与CANN的社区贡献。


/lgtm
/approve


描述
修复SIMT协作组接口返回类型错误,将相关接口原型及示例变量类型由 unsigned long long 调整为 unsigned int。
关联的Issue
#1582
测试
SIMT 二级冒烟测试
文档更新
coalesced_group:
thread_block_tile:
类型标签