已合并
移动基础API asc_vf_call接口位置 #1203
移动基础API asc_vf_call接口位置 #1203
已合并
pangfd创建于 3月26日
2 个文件变更+7-6
Mimpl/basic_api/utils/kernel_utils_ceil_oom_que.h+0-6
@@ -389,12 +389,6 @@ template <auto funcPtr, typename... Args> __aicore__ inline void VF_CALL(Args &&
389using complex32 = AscendC::Complex<half>;389using complex32 = AscendC::Complex<half>;
390using complex64 = AscendC::Complex<float>;390using complex64 = AscendC::Complex<float>;
391 391 
392-template <auto funcPtr, typename... Args> __aicore__ inline void asc_vf_call(Args &&... args)
393-{
394-#if (defined(__NPU_ARCH__) && __NPU_ARCH__ == 3510)
395- funcPtr(args...);
396-#endif
397-}
398namespace AscendC {392namespace AscendC {
399template <typename T> class LocalTensor;393template <typename T> class LocalTensor;
400 394 
Minclude/basic_api/kernel_common.h+7-0
@@ -45,6 +45,13 @@ template <typename T>
45class GlobalTensor;45class GlobalTensor;
46} // namespace AscendC46} // namespace AscendC
47 47 
48+template <auto funcPtr, typename... Args> __aicore__ inline void asc_vf_call(Args &&... args)
49+{
50+#if (defined(__NPU_ARCH__) && __NPU_ARCH__ == 3510)
51+ funcPtr(args...);
52+#endif
53+}
54+ 
48#if __NPU_ARCH__ == 2201 || (__NPU_ARCH__ == 3510) || (__NPU_ARCH__ == 5102)55#if __NPU_ARCH__ == 2201 || (__NPU_ARCH__ == 3510) || (__NPU_ARCH__ == 5102)
49#if defined(__ASCENDC_SUPERKERNEL_EARLY_START_V1) || defined(__ASCENDC_SUPERKERNEL_EARLY_START_V2)56#if defined(__ASCENDC_SUPERKERNEL_EARLY_START_V1) || defined(__ASCENDC_SUPERKERNEL_EARLY_START_V2)
50__BLOCK_LOCAL__ __inline__ uint32_t g_super_kernel_early_start_config;57__BLOCK_LOCAL__ __inline__ uint32_t g_super_kernel_early_start_config;