SWDEV-366153 - Fix __ocml_isnan_f16 to pass _Float16

Change-Id: I7628f21d000cec490f5fb2c91f1b99ca61fb46cf


[ROCm/clr commit: c974cbcb3d]
Esse commit está contido em:
Anusha GodavarthySurya authored and Maneesh Gupta committed 2022-11-06 21:57:23 -05:00
1 pai d9eb49726f
commit 3a482da878
1 file changed
+4 -4
@@ -1259,9 +1259,9 @@ THE SOFTWARE.
inline
__device__
__half __hmax_nan(const __half x, const __half y) {
if(__ocml_isnan_f16(x)) {
if(__ocml_isnan_f16(static_cast<__half_raw>(x).data)) {
return x;
} else if (__ocml_isnan_f16(y)) {
} else if (__ocml_isnan_f16(static_cast<__half_raw>(y).data)) {
return y;
}
return __hmax(x, y);
@@ -1275,9 +1275,9 @@ THE SOFTWARE.
inline
__device__
__half __hmin_nan(const __half x, const __half y) {
if(__ocml_isnan_f16(x)) {
if(__ocml_isnan_f16(static_cast<__half_raw>(x).data)) {
return x;
} else if (__ocml_isnan_f16(y)) {
} else if (__ocml_isnan_f16(static_cast<__half_raw>(y).data)) {
return y;
}
return __hmin(x, y);