add intrinsics mbcnt_lo, mbcnt_hi, lane_id

[ROCm/clr commit: 4f12ddea8f]
Этот коммит содержится в:
Siu Chi Chan
2018-05-08 13:42:00 -04:00
родитель 1b5cbfb3e6
Коммит 16d8a56909
2 изменённых файлов: 133 добавлений и 0 удалений
+5
Просмотреть файл
@@ -345,6 +345,11 @@ __device__ static inline unsigned int __usad(unsigned int x, unsigned int y, uns
return __hip_hc_ir_usad_int(x, y, z);
}
extern __device__ __attribute__((const)) unsigned int __mbcnt_lo(unsigned int x, unsigned int y) __asm("llvm.amdgcn.mbcnt.lo");
extern __device__ __attribute__((const)) unsigned int __mbcnt_hi(unsigned int x, unsigned int y) __asm("llvm.amdgcn.mbcnt.hi");
__device__ static inline unsigned int __lane_id() { return __mbcnt_hi(-1, __mbcnt_lo(-1, 0)); }
/*
Rounding modes are not yet supported in HIP
*/