File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -200,4 +200,14 @@ DEVICE_EXTERN_C_INLINE
200
200
float rintf (float x) { return __nv_rintf (x); }
201
201
#endif // __NVPTX__
202
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
+ DEVICE_EXTERN_C_INLINE
210
+ float rintf (float x) { return __ocml_rint_f32 (x); }
211
+ #endif // __AMDGCN__
212
+
203
213
#endif // __SPIR__ || __SPIRV__ || __NVPTX__ || __AMDGCN__
Original file line number Diff line number Diff line change @@ -190,6 +190,16 @@ DEVICE_EXTERN_C_INLINE
190
190
double rint (double x) { return __nv_rint (x); }
191
191
#endif // __NVPTX__
192
192
193
+ #ifdef __AMDGCN__
194
+ extern " C" SYCL_EXTERNAL double __ocml_nearbyint_f64 (double );
195
+ DEVICE_EXTERN_C_INLINE
196
+ double nearbyint (double x) { return __ocml_nearbyint_f64 (x); }
197
+
198
+ extern " C" SYCL_EXTERNAL double __ocml_rint_f64 (double );
199
+ DEVICE_EXTERN_C_INLINE
200
+ double rint (double x) { return __ocml_rint_f64 (x); }
201
+ #endif // __AMDGCN__
202
+
193
203
#if defined(_MSC_VER)
194
204
#include < math.h>
195
205
// FLOAT PROPERTIES
You can’t perform that action at this time.
0 commit comments