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 814290d commit c096ffeCopy full SHA for c096ffe
libdevice/cmath_wrapper.cpp
@@ -200,4 +200,14 @@ DEVICE_EXTERN_C_INLINE
200
float rintf(float x) { return __nv_rintf(x); }
201
#endif // __NVPTX__
202
203
+#ifdef __AMDGCN__
204
+extern "C" SYCL_EXTERNAL float __ocml_nearbyint_f32(float);
205
+DEVICE_EXTERN_C_INLINE
206
+float nearbyintf(float x) { return __ocml_nearbyint_f32(x); }
207
+
208
+extern "C" SYCL_EXTERNAL float __ocml_rint_f32(float);
209
210
+float rintf(float x) { return __ocml_rint_f32(x); }
211
+#endif // __AMDGCN__
212
213
#endif // __SPIR__ || __SPIRV__ || __NVPTX__ || __AMDGCN__
0 commit comments