Skip to content

Commit 698003b

Browse files
committed
[SYCL][HIP] fix: nearbyint and rint function signature of fp64
1 parent 68acb46 commit 698003b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libdevice/cmath_wrapper_fp64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ double rint(double x) { return __nv_rint(x); }
193193
#ifdef __AMDGCN__
194194
extern "C" SYCL_EXTERNAL double __ocml_nearbyint_f64(double);
195195
DEVICE_EXTERN_C_INLINE
196-
double nearbyintf(double x) { return __ocml_nearbyint_f64(x); }
196+
double nearbyint(double x) { return __ocml_nearbyint_f64(x); }
197197

198198
extern "C" SYCL_EXTERNAL double __ocml_rint_f64(double);
199199
DEVICE_EXTERN_C_INLINE
200-
double rintf(double x) { return __ocml_rint_f64(x); }
200+
double rint(double x) { return __ocml_rint_f64(x); }
201201
#endif // __AMDGCN__
202202

203203
#if defined(_MSC_VER)

0 commit comments

Comments
 (0)