SWDEV-384362 - Added explicit cast from __fp16 to _Float16 in rcph

Change-Id: Ibbb11e928a80126ed7a8c7cd8bddebc74c38986d
이 커밋은 다음에 포함됨:
Ioannis Assiouras가 2023-02-21 17:32:59 -05:00를 커밋했습니다
1 부모 cbb3937196
커밋 aaf1c19609
1 파일이 변경됨
+3 -3
+3 -3
파일 보기
@@ -1569,7 +1569,7 @@ THE SOFTWARE.
__half hrcp(__half x)
{
return __half_raw{
__builtin_amdgcn_rcph(static_cast<__half_raw>(x).data)};
static_cast<_Float16>(__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{__builtin_amdgcn_rcph(x.x),
__builtin_amdgcn_rcph(x.y)};
return _Float16_2{static_cast<_Float16>(__builtin_amdgcn_rcph(x.x)),
static_cast<_Float16>(__builtin_amdgcn_rcph(x.y))};
}
inline
__HOST_DEVICE__