/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp: In member function ‘void KernelWhere<srcType>::Compute()’:
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:105:9: error: there are no arguments to ‘asc_time_stamp’ that depend on a template parameter, so a declaration of ‘asc_time_stamp’ must be available [-fpermissive]
105 | asc_time_stamp(11);
| ^~~~~~~~~~~~~~
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:105:9: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp: In instantiation of ‘void KernelWhere<srcType>::Compute() [with srcType = unsignedchar]’:
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:42:9: required from ‘void KernelWhere<srcType>::Process() [with srcType = unsignedchar]’
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:143:5: required from ‘voidkernel_where_operator(uint8_t*, uint8_t*, uint8_t*, uint8_t*, uint32_t, uint32_t, uint32_t) [with srcType = unsignedchar; uint8_t = unsignedchar; uint32_t = unsignedint]’
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:161:1: required from here
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:105:23: error: ‘asc_time_stamp’ was not declared in this scope; did you mean ‘__asc_aicore::asc_time_stamp’?
105 | asc_time_stamp(11);
| ~~~~~~~~~~~~~~^~~~
| __asc_aicore::asc_time_stamp
In file included from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/utils/debug/asc_time.h:34,
from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/basic_api/kernel_prof_trace_intf.h:29,
from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/basic_api/kernel_operator_intf.h:28,
from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/kernel_operator.h:25,
from /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:7:
/usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/impl/utils/debug/asc_aicore_time_impl.h:92:24: note: ‘__asc_aicore::asc_time_stamp’ declared here
92 | __aicore__ inlinevoidasc_time_stamp(uint32_t desc_id){
| ^~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/where.dir/build.make:76: CMakeFiles/where.dir/where_operator.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/where.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
cpu debug模式下使用独立维测接口time和dump编译报错
Environment / 环境信息 (Mandatory / 必填)
Ascend950
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
ascend_smoke框架下,在随机一个用例里调用用独立维测接口dump或者timestamp并且使用cpu debug模式运行用例会出现该编译报错。
Describe the expected behavior / 预期结果 (Mandatory / 必填)
编译正常且出现cpu校验报错
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
/home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp: In member function ‘void KernelWhere<srcType>::Compute()’: /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:105:9: error: there are no arguments to ‘asc_time_stamp’ that depend on a template parameter, so a declaration of ‘asc_time_stamp’ must be available [-fpermissive] 105 | asc_time_stamp(11); | ^~~~~~~~~~~~~~ /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:105:9: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp: In instantiation of ‘void KernelWhere<srcType>::Compute() [with srcType = unsigned char]’: /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:42:9: required from ‘void KernelWhere<srcType>::Process() [with srcType = unsigned char]’ /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:143:5: required from ‘void kernel_where_operator(uint8_t*, uint8_t*, uint8_t*, uint8_t*, uint32_t, uint32_t, uint32_t) [with srcType = unsigned char; uint8_t = unsigned char; uint32_t = unsigned int]’ /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:161:1: required from here /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:105:23: error: ‘asc_time_stamp’ was not declared in this scope; did you mean ‘__asc_aicore::asc_time_stamp’? 105 | asc_time_stamp(11); | ~~~~~~~~~~~~~~^~~~ | __asc_aicore::asc_time_stamp In file included from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/utils/debug/asc_time.h:34, from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/basic_api/kernel_prof_trace_intf.h:29, from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/basic_api/kernel_operator_intf.h:28, from /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/include/kernel_operator.h:25, from /home/h00874680--privileged/tikcpp_smoke/output/where/kernel_where_operator_uint8_t_192_192_2_0_92790/where_operator.cpp:7: /usr/local/Ascend/cann-9.0.0/x86_64-linux/asc/impl/utils/debug/asc_aicore_time_impl.h:92:24: note: ‘__asc_aicore::asc_time_stamp’ declared here 92 | __aicore__ inline void asc_time_stamp(uint32_t desc_id) { | ^~~~~~~~~~~~~~ gmake[2]: *** [CMakeFiles/where.dir/build.make:76: CMakeFiles/where.dir/where_operator.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/where.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2Special notes for this issue/备注 (Optional / 选填)