SWDEV-1 - Eliminate rcp_2f16 pseudo intrinsic

No such wrapper or intrinsic would ever exist because there is no such
underlying instruction.

Change-Id: I6c3f64cd2df2a58edf32037da8f5712868f296ea


[ROCm/clr commit: bebbf3c4ec]
이 커밋은 다음에 포함됨:
Matt Arsenault
2022-12-23 10:17:02 -05:00
커밋한 사람 Matthew Arsenault
부모 d2904ffe47
커밋 6035907648
2개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
+4 -1
파일 보기
@@ -1672,7 +1672,10 @@ THE SOFTWARE.
__half2 h2log10(__half2 x) { return __ocml_log10_2f16(x); }
inline
__HOST_DEVICE__
__half2 h2rcp(__half2 x) { return __llvm_amdgcn_rcp_2f16(x); }
__half2 h2rcp(__half2 x) {
return _Float16_2{__llvm_amdgcn_rcp_f16(x.x),
__llvm_amdgcn_rcp_f16(x.y)};
}
inline
__HOST_DEVICE__
__half2 h2rsqrt(__half2 x) { return __ocml_rsqrt_2f16(x); }
-5
파일 보기
@@ -73,11 +73,6 @@ extern "C"
__device__ __attribute__((pure)) __2f16 __ocml_log_2f16(__2f16);
__device__ __attribute__((pure)) __2f16 __ocml_log10_2f16(__2f16);
__device__ __attribute__((pure)) __2f16 __ocml_log2_2f16(__2f16);
__device__ inline
__2f16 __llvm_amdgcn_rcp_2f16(__2f16 x) // Not currently exposed by ROCDL.
{
return __2f16{__llvm_amdgcn_rcp_f16(x.x), __llvm_amdgcn_rcp_f16(x.y)};
}
__device__ __attribute__((const)) __2f16 __ocml_rint_2f16(__2f16);
__device__ __attribute__((const)) __2f16 __ocml_rsqrt_2f16(__2f16);
__device__ __2f16 __ocml_sin_2f16(__2f16);