已关闭
[Bug-Report|缺陷反馈]: 修复asc_mark_stamp编译报错 #1587
yhkz9211创建于  16 天前关闭于  16 天前
yhkz9211成员
16 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

kernel侧的aicore函数在设置KERNEL_TYPE_AIV_ONLY类型之后,调用asc_mark_stamp<PIPE_V>(1)时遇到static assert报错

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

A5

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

kernel侧的aicore函数在设置KERNEL_TYPE_AIV_ONLY类型之后,调用asc_mark_stamp<PIPE_V>(1)时遇到static assert报错

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

kernel侧的aicore函数在设置KERNEL_TYPE_AIV_ONLY类型之后,调用asc_mark_stamp<PIPE_V>(1)应该功能正常

In file included from <built-in>:1:
In file included from /usr/local/Ascend/cann-9.2.0/tools/bisheng_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:37:
/usr/local/Ascend/cann-9.2.0/tools/bisheng_compiler/lib/clang/15.0.5/include/__clang_cce_aicore_functions.h:6061:5: error: static assertion failed due to requirement '(pipe_t)2U == PIPE_S || (pipe_t)2U == PIPE_MTE2 || (pipe_t)2U == PIPE_V || (pipe_t)2U == PIPE_MTE3'
    static_assert(p == PIPE_S || p == PIPE_MTE2 || p == PIPE_V ||
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Ascend/cann-9.2.0/tools/bisheng_compiler/lib/clang/15.0.5/include/__clang_cce_aicore_functions.h:6070:5: note: in instantiation of function template specialization 'bisheng::cce::mark_stamp_check_pipe<PIPE_M>' requested here
    mark_stamp_check_pipe<p>();
    ^
/usr/local/Ascend/cann-9.2.0/asc/impl/utils/debug/asc_aicore_time_impl.h:102:19: note: in instantiation of function template specialization 'bisheng::cce::mark_stamp<PIPE_M>' requested here
    bisheng::cce::mark_stamp<pipe>(idx);

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

likedislike
Yyhkz9211成员
16 天前 添加了label:bug-report
yhkz9211成员
16 天前 评论:

/assign

likedislike
CANN-robotCANN-robot成员
16 天前 将 yhkz9211 设为负责人
CANN-robotCANN-robot成员
16 天前 关闭了 issue
CANN-robotCANN-robot成员
16 天前 添加了label:resolved
Yyhkz9211成员
16 天前 关联了pull request:update docs