Closed
[Documentation|文档反馈]:SIMT 下 01_assert 与 09_log 两个样例的中英文 README 中与真实输出有差异 #1669
ruoshuisixueAdd on Sep 15Closed at Sep 16
Sep 15 Added label: bug-report
Rruoshuisixue
Sep 15 Change title to "[Bug-Report|缺陷反馈]:SIMT examples/03_simt_api/01_utilities 下 01_assert 与 09_log 两个样例的中英文 README 中", originally titled "[Bug-Report|缺陷反馈]: ".
Sep 15 Change title to "[Bug-Report|缺陷反馈]:SIMT examples/03_simt_api/01_utilities 下 01_assert 与 09_log 两个样例的中英文 README 中", originally titled "[Bug-Report|缺陷反馈]: ".
ruoshuisixue
Sep 15 Comments:
Sep 15 Comments:
文档描述和真实输出有差异,修复中


Rruoshuisixue
Sep 15 Change title to "[Bug-Report|缺陷反馈]:SIMT 下 01_assert 与 09_log 两个样例的中英文 README 中与真实输出有差异", originally titled "[Bug-Report|缺陷反馈]:SIMT examples/03_simt_api/01_utilities 下 01_assert 与 09_log 两个样例的中英文 README 中".
Sep 15 Change title to "[Bug-Report|缺陷反馈]:SIMT 下 01_assert 与 09_log 两个样例的中英文 README 中与真实输出有差异", originally titled "[Bug-Report|缺陷反馈]:SIMT examples/03_simt_api/01_utilities 下 01_assert 与 09_log 两个样例的中英文 README 中".
Sep 15 Associated pull request
ruoshuisixue
Sep 16 Comments:
Sep 16 Comments:
已合入


Sep 16 changed custom state from 待办的 to 已完成
Sep 16 Close issue
Sep 16 Added label: resolved
Sep 21 Change title to "[Documentation|文档反馈]:SIMT 下 01_assert 与 09_log 两个样例的中英文 README 中与真实输出有差异", originally titled "[Bug-Report|缺陷反馈]:SIMT 下 01_assert 与 09_log 两个样例的中英文 README 中与真实输出有差异".
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
examples/03_simt_api/01_utilities 下 01_assert 与 09_log 两个样例的中英文 README 中,“运行结果”章节展示的输出与样例实际运行输出不一致,具体有三处:
用户按 README 输出中的行号去定位断言失败位置时会找错行,造成排查困扰。
Environment / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
cd examples/03_simt_api/01_utilities/01_assert
mkdir -p build && cd build
cmake .. -DASCEND_CANN_PACKAGE_PATH=<CANN安装路径>
make
./demo # 按 README 中“编译运行”章节执行
cd ../../09_log
mkdir -p build && cd build
cmake .. -DASCEND_CANN_PACKAGE_PATH=<CANN安装路径>
make
./demo
3. 对比程序实际输出与 README“运行结果”章节:
Describe the expected behavior / 预期结果 (Mandatory / 必填)
README“运行结果”章节展示的输出应与样例在当前源码、当前 CANN 版本下的实际运行输出完全一致,即:
样例文档中的行号应随源码变更同步维护,避免用户按文档定位到错误的代码行。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
01_assert 实际运行输出(节选):
[SIMT] trap check start 1!
[SIMT] trap check start 2!
[SIMT] trap check start 3!
[SIMT] trap check start 3!
[ASSERT] xxx/assert.asc:31: void simt_assert(float *, uint32_t): Assertion
in_shape < 1' failed. [ASSERT] xxx/assert.asc:31: void simt_assert(float *, uint32_t): Assertionin_shape < 1' failed.09_log 实际运行输出(节选):/09_log/log.asc:86 code=507035 EZ9999: Internal error!/09_log/log.asc:44: void add_custom(float *, float *, float *, uint64_t): Assertion `total_length < 100 && "Total length exceeds expected limit!"' failed.
[INFO] Input shape: 12288
[INFO] Launching kernel with assert(total_length < 100)...
Ascend Error:
...
rtDeviceSynchronize execution failed, reason=vector core exception
...
[ASSERT]
[INFO] Execution completed. Check for error messages above.
Special notes for this issue/备注 (Optional / 选填)