Add *_rn functions back into HIP intrinsics

Add back the round-to-nearest-even intrinsics back to HIP math
intrinsics as it caused regression.
This commit is contained in:
Aaron Enye Shi
2018-12-18 19:31:54 +00:00
parent 6596a1825a
commit 58dfeff27a
4 changed files with 75 additions and 13 deletions
+3 -1
View File
@@ -38,10 +38,12 @@ __global__ void floatMath(float* In, float* Out) {
Out[tid] = __cosf(In[tid]);
Out[tid] = __exp10f(Out[tid]);
Out[tid] = __expf(Out[tid]);
#if defined OCML_BASIC_ROUNDED_OPERATIONS
Out[tid] = __frsqrt_rn(Out[tid]);
#if defined OCML_BASIC_ROUNDED_OPERATIONS
Out[tid] = __fsqrt_rd(Out[tid]);
#endif
Out[tid] = __fsqrt_rn(Out[tid]);
#if defined OCML_BASIC_ROUNDED_OPERATIONS
Out[tid] = __fsqrt_ru(Out[tid]);
Out[tid] = __fsqrt_rz(Out[tid]);
#endif