SWDEV-1 - Use proper __builtin_amdgcn_rcph builtin

Change-Id: Ic0b1b25a5ab7d132cb51425f2a17bc779c762668
이 커밋은 다음에 포함됨:
Matt Arsenault 작성하고 Matthew Arsenault가 2023-02-07 10:58:48 -05:00를 커밋함
1 부모 bebbf3c4ec
커밋 eacf63673b
2 파일이 변경됨
+3 -4

검색과 일치하는 파일 없음

+3 -3
파일 보기
@@ -1569,7 +1569,7 @@ THE SOFTWARE.
__half hrcp(__half x)
{
return __half_raw{
__llvm_amdgcn_rcp_f16(static_cast<__half_raw>(x).data)};
__builtin_amdgcn_rcph(static_cast<__half_raw>(x).data)};
}
inline
__device__
@@ -1673,8 +1673,8 @@ THE SOFTWARE.
inline
__HOST_DEVICE__
__half2 h2rcp(__half2 x) {
return _Float16_2{__llvm_amdgcn_rcp_f16(x.x),
__llvm_amdgcn_rcp_f16(x.y)};
return _Float16_2{__builtin_amdgcn_rcph(x.x),
__builtin_amdgcn_rcph(x.y)};
}
inline
__HOST_DEVICE__
-1
파일 보기
@@ -44,7 +44,6 @@ extern "C"
__device__ __attribute__((pure)) _Float16 __ocml_log10_f16(_Float16);
__device__ __attribute__((pure)) _Float16 __ocml_log2_f16(_Float16);
__device__ __attribute__((pure)) _Float16 __ocml_pown_f16(_Float16, int);
__device__ __attribute__((const)) _Float16 __llvm_amdgcn_rcp_f16(_Float16);
__device__ __attribute__((const)) _Float16 __ocml_rint_f16(_Float16);
__device__ __attribute__((const)) _Float16 __ocml_rsqrt_f16(_Float16);
__device__ _Float16 __ocml_sin_f16(_Float16);