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