已关闭
[Bug-Report|缺陷反馈]: Ascend 950增加支持asc_get_sub_block_num/asc_get_sub_block_id 函数以及关键字 sub_block_num、sub_block_idx #1109
ascendhjh创建于 6月30日关闭于 7月10日
6月30日 将 pangfd 设为负责人
7月7日 关联了pull request:在a5上补齐block、subblock相关api
ChenCangtao
7月10日 评论:
7月10日 评论:
感谢您的反馈,相关API现已支持。


7月10日 issue状态由 待办的 改变为 已完成
7月10日 关闭了 issue
7月10日 添加了label:Accepted
7月10日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
示例代码编译失败,报asc_get_sub_block_num()、sub_block_num 未支持。
Environment / 环境信息 (Mandatory / 必填)
Ascend 950, CANN-Toolkit 9.1版本。
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
编译运行示例代码,打印正确值:
if ASCEND_IS_AIV {
printf("block_num=%d, block_idx=%d, sub_block_num=%d, sub_block_idx=%d\n",
(int)block_num, (int)block_idx, (int)asc_get_sub_block_num(), (int)asc_get_sub_block_id());
printf("block_num=%d, block_idx=%d, sub_block_num=%d, sub_block_idx=%d\n",
(int)block_num, (int)block_idx, (int)sub_block_num, (int)sub_block_idx);
} else if ASCEND_IS_AIC {
printf("block_num=%d, block_idx=%d\n", (int)block_num, (int)block_idx);
}
Describe the expected behavior / 预期结果 (Mandatory / 必填)
正常编译,并且打印值也正确。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
error: use of undeclared identifier 'sub_block_num'
Special notes for this issue/备注 (Optional / 选填)