已关闭
[Bug-Report|缺陷反馈]: 安装 CANN 9.0.1 版本后,引用打印日志头文件后,编译报错,使用社区提供的样例测试时发现也同样报错,请定位分析,多谢 #1242
LetsAiGo创建于 7月12日关闭于 7月20日
7月12日 修改标题为 “[Bug-Report|缺陷反馈]: 安装 CANN 9.0.1 版本后,引用打印日志头文件后,编译报错,使用社区提供的样例测试时发现也同样报错,请定位分析,多谢”,原标题为“[Bug-Report|缺陷反馈]: 安装 CANN 9.0.1版本后,引用打印日志头文件后,编译报错,使用社区提供的样例测试时发现也同样报错,请定位分析,多谢”
LetsAiGo
7月15日 评论:
7月15日 评论:
资料里写的支持的版本是 CANN > 9.0.0 ,与当前的实际不符合,建议修改下吧
https://gitcode.com/cann/asc-devkit/blob/master/examples/03_simt_api/00_introduction/00_quickstart/hello_world_simt/README.md



7月16日 关联了pull request:混合编程interger fast div样例去除c++风格接口 && SIMT编程样例支持版本修改
wulinyu
7月20日 评论:
7月20日 评论:
@LetsAiGo SIMT编程所有样例都已经修改

https://gitcode.com/cann/asc-devkit/pull/4374


7月20日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
安装 2026.07.02 发布的CANN版本后,编译报错,使用社区提供的样例测试时也同样报错,
同样的代码,安装 2026/05/15 发布的cann 9.1.0-beta.1 版本 则可以正常编译,请定位分析,多谢
https://www.hiascend.com/developer/download/community/result?module=cann&cann=9.1.0-beta.1
社区样例链接:
https://gitcode.com/cann/asc-devkit/tree/master/examples/03_simt_api/00_introduction/00_quickstart/hello_world_simt
操作步骤:

按社区提供的指导进行编译,同样报错,如下
使用2026/05/15 发布 cann 9.1.0-beta.1 版本编译,则正常,如下所示:
使用2026/05/15 发布 cann 9.1.0-beta.1 版本编译,则正常,如下所示:
Environment / 环境信息 (Mandatory / 必填)
操作系统:X86 linux
CANN版本:2026.07.02 发布的CANN版本 CANN 9.0.1
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
安装CANN 9.0.1 后,
引用 #include "simt_api/common_functions.h" 打印日志
编译报错
Describe the expected behavior / 预期结果 (Mandatory / 必填)
编译正常
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
编译报错
Special notes for this issue/备注 (Optional / 选填)