已合并
modify simt subfubction with __simt_callee__ #3112
fengjiawei1创建于 3月24日
modify simt subfubction with __simt_callee__ #3112
已合并
共 9 个文件变更+16-16
| @@ -42,14 +42,14 @@ namespace AdaptivePool3DWithSimt{ | |||
| 42 | constexpr static uint32_t IDX7 = 7; | 42 | constexpr static uint32_t IDX7 = 7; |
| 43 | 43 | ||
| 44 | template <typename DIV_T> | 44 | template <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 | ||
| 51 | template <typename DIV_T> | 51 | template <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); |