Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
当前部分算子的aclnn接口需要使用自动生成的aclnnInner接口,通过extern生成接口函数的方式使用。但是存在问题,当算子参数改变,生成aclnnInner接口出现与extern声明不匹配的情况。这种情况由于编译编译不会报错,只会在运行时报错。所以存在隐患,因此需要改成引用头文件的形式。
David
提高aclnn接口需要使用自动生成的aclnnInner接口场景的稳定性。后续修改代码避免出现aclnnInner接口与extern声明不匹配的情况
将临时头文件的生成目录加入include dictionary,设置cmake编译target的顺序,保证头文件在编译前生成。同时将extern声明修改为引用头文件。
/assign@yang-di52
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
当前部分算子的aclnn接口需要使用自动生成的aclnnInner接口,通过extern生成接口函数的方式使用。但是存在问题,当算子参数改变,生成aclnnInner接口出现与extern声明不匹配的情况。这种情况由于编译编译不会报错,只会在运行时报错。所以存在隐患,因此需要改成引用头文件的形式。
Origin(信息来源)
David
Benefit / Necessity (价值/作用)
提高aclnn接口需要使用自动生成的aclnnInner接口场景的稳定性。后续修改代码避免出现aclnnInner接口与extern声明不匹配的情况
Design(设计方案)
将临时头文件的生成目录加入include dictionary,设置cmake编译target的顺序,保证头文件在编译前生成。同时将extern声明修改为引用头文件。