已关闭
[Bug-Report|缺陷反馈]: 在 AIC(Cube 核)上调用 C API `asc_get_sub_block_num` 时返回值不正确。 #1798
Cruiter创建于  9月28日关闭于  29 天前
Cruiter
Cruiter成员
9月28日 创建

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 当前实现直接返回 get_subblockdim()。但在 AIC 核上不存在 sub block 切分,sub block 数应恒为 1,而 get_subblockdim() 在 AIC 场景下不会返回 1,导致上层拿到错误的 sub block 数量,可能引起后续按 sub block 划分任务/数据时的逻辑异常(如分块数量偏大、地址计算越界或结果错误)。

Environment / 环境信息 (Mandatory / 必填)

  • CANN版本:9.2.0
  • 昇腾硬件型号: Ascend 950PR / 950DT 系列产品

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. 在 AIC 核代码路径中调用 asc_get_sub_block_num();
  2. 观察返回值,与预期值 1 不一致(实际返回 get_subblockdim() 的结果)。

Describe the expected behavior / 预期结果 (Mandatory / 必填)

  • 当前核为 AIC 时,asc_get_sub_block_num() 应返回 1;
  • 当前核为 AIV 时,保持原行为,返回 get_subblockdim()。

image.png

Special notes for this issue/备注 (Optional / 选填)

likedislike
CruiterCruiter成员
9月28日 添加了label:bug-report
CruiterCruiter成员
9月28日 将 printfscanfmain 设为负责人
Cruiter
Cruiter成员
29 天前 评论:

相关修改已合入,本issue将关闭

likedislike
CruiterCruiter成员
29 天前 issue状态由 待办的 改变为 已完成
CruiterCruiter成员
29 天前 关闭了 issue