已合并
modify simt subfubction with __simt_callee__ #3112
fengjiawei1创建于 3月24日
modify simt subfubction with __simt_callee__ #3112
已合并
fengjiawei1创建于 3月24日
9 个文件变更+16-16
Mpooling/adaptive_max_pool2d/op_kernel/arch35/adaptive_max_pool2d_simt.h+3-3文件内容审核中,请稍后刷新重试
@@ -42,14 +42,14 @@ namespace AdaptivePool3DWithSimt{
42 constexpr static uint32_t IDX7 = 7;42 constexpr static uint32_t IDX7 = 7;
43 43 
44template <typename DIV_T>44template <typename DIV_T>
45-__aicore__ __attribute__((always_inline)) inline static DIV_T CalStartIdx(DIV_T outIdx, DIV_T magicOutLen, DIV_T shiftOutLen, DIV_T inLen)45+__simt_callee__ __aicore__ __attribute__((always_inline)) inline static DIV_T CalStartIdx(DIV_T outIdx, DIV_T magicOutLen, DIV_T shiftOutLen, DIV_T inLen)
46{46{
47 DIV_T pStart = outIdx * inLen;47 DIV_T pStart = outIdx * inLen;
48 return Simt::UintDiv<DIV_T>(pStart, magicOutLen, shiftOutLen);48 return Simt::UintDiv<DIV_T>(pStart, magicOutLen, shiftOutLen);
49}49}
50 50 
51template <typename DIV_T>51template <typename DIV_T>
52-__aicore__ __attribute__((always_inline)) inline static DIV_T CalEndIdx(DIV_T outIdx, DIV_T magicOutLen, DIV_T shiftOutLen, DIV_T inLen, DIV_T outLen)52+__simt_callee__ __aicore__ __attribute__((always_inline)) inline static DIV_T CalEndIdx(DIV_T outIdx, DIV_T magicOutLen, DIV_T shiftOutLen, DIV_T inLen, DIV_T outLen)
53{53{
54 DIV_T pEnd = ((outIdx + 1) * inLen + outLen - 1);54 DIV_T pEnd = ((outIdx + 1) * inLen + outLen - 1);
55 return Simt::UintDiv<DIV_T>(pEnd, magicOutLen, shiftOutLen);55 return Simt::UintDiv<DIV_T>(pEnd, magicOutLen, shiftOutLen);
Mpooling/adaptive_pool3d_common/op_kernel/arch35/adaptive_max_pool3d_simt.h+3-3文件内容审核中,请稍后刷新重试
Mpooling/avg_pool_v2_grad/op_kernel/arch35/avg_pool_v2_grad_simt.h+1-1文件内容审核中,请稍后刷新重试
Mpooling/max_pool_with_argmax/op_kernel/arch35/max_pool_with_argmax_simt.h+1-1文件内容审核中,请稍后刷新重试