We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c096ffe commit 68acb46Copy full SHA for 68acb46
libdevice/cmath_wrapper_fp64.cpp
@@ -190,6 +190,16 @@ DEVICE_EXTERN_C_INLINE
190
double rint(double x) { return __nv_rint(x); }
191
#endif // __NVPTX__
192
193
+#ifdef __AMDGCN__
194
+extern "C" SYCL_EXTERNAL double __ocml_nearbyint_f64(double);
195
+DEVICE_EXTERN_C_INLINE
196
+double nearbyintf(double x) { return __ocml_nearbyint_f64(x); }
197
+
198
+extern "C" SYCL_EXTERNAL double __ocml_rint_f64(double);
199
200
+double rintf(double x) { return __ocml_rint_f64(x); }
201
+#endif // __AMDGCN__
202
203
#if defined(_MSC_VER)
204
#include <math.h>
205
// FLOAT PROPERTIES
0 commit comments