1414#include "hip/hip_version.h"
1515#endif // __has_include("hip/hip_version.h")
1616
17- #define __PRIVATE_AS __attribute__((opencl_private))
18-
1917#ifdef __cplusplus
2018extern "C" {
2119#endif
@@ -57,7 +55,8 @@ __device__ __attribute__((const)) float __ocml_fmax_f32(float, float);
5755__device__ __attribute__((const )) float __ocml_fmin_f32 (float , float );
5856__device__ __attribute__((const )) __device__ float __ocml_fmod_f32 (float ,
5957 float );
60- __device__ float __ocml_frexp_f32 (float , __PRIVATE_AS int * );
58+ __device__ float __ocml_frexp_f32 (float ,
59+ __attribute__((address_space (5 ))) int * );
6160__device__ __attribute__((const )) float __ocml_hypot_f32 (float , float );
6261__device__ __attribute__((const )) int __ocml_ilogb_f32 (float );
6362__device__ __attribute__((const )) int __ocml_isfinite_f32 (float );
@@ -75,7 +74,8 @@ __device__ __attribute__((pure)) float __ocml_native_log2_f32(float);
7574__device__ __attribute__((const )) float __ocml_logb_f32 (float );
7675__device__ __attribute__((pure )) float __ocml_log_f32 (float );
7776__device__ __attribute__((pure )) float __ocml_native_log_f32 (float );
78- __device__ float __ocml_modf_f32 (float , __PRIVATE_AS float * );
77+ __device__ float __ocml_modf_f32 (float ,
78+ __attribute__((address_space (5 ))) float * );
7979__device__ __attribute__((const )) float __ocml_nearbyint_f32 (float );
8080__device__ __attribute__((const )) float __ocml_nextafter_f32 (float , float );
8181__device__ __attribute__((const )) float __ocml_len3_f32 (float , float , float );
@@ -87,7 +87,8 @@ __device__ __attribute__((pure)) float __ocml_pow_f32(float, float);
8787__device__ __attribute__((pure )) float __ocml_pown_f32 (float , int );
8888__device__ __attribute__((pure )) float __ocml_rcbrt_f32 (float );
8989__device__ __attribute__((const )) float __ocml_remainder_f32 (float , float );
90- __device__ float __ocml_remquo_f32 (float , float , __PRIVATE_AS int * );
90+ __device__ float __ocml_remquo_f32 (float , float ,
91+ __attribute__((address_space (5 ))) int * );
9192__device__ __attribute__((const )) float __ocml_rhypot_f32 (float , float );
9293__device__ __attribute__((const )) float __ocml_rint_f32 (float );
9394__device__ __attribute__((const )) float __ocml_rlen3_f32 (float , float , float );
@@ -98,8 +99,10 @@ __device__ __attribute__((pure)) float __ocml_rsqrt_f32(float);
9899__device__ __attribute__((const )) float __ocml_scalb_f32 (float , float );
99100__device__ __attribute__((const )) float __ocml_scalbn_f32 (float , int );
100101__device__ __attribute__((const )) int __ocml_signbit_f32 (float );
101- __device__ float __ocml_sincos_f32 (float , __PRIVATE_AS float * );
102- __device__ float __ocml_sincospi_f32 (float , __PRIVATE_AS float * );
102+ __device__ float __ocml_sincos_f32 (float ,
103+ __attribute__((address_space (5 ))) float * );
104+ __device__ float __ocml_sincospi_f32 (float ,
105+ __attribute__((address_space (5 ))) float * );
103106__device__ float __ocml_sin_f32 (float );
104107__device__ float __ocml_native_sin_f32 (float );
105108__device__ __attribute__((pure )) float __ocml_sinh_f32 (float );
@@ -173,7 +176,8 @@ __device__ __attribute__((const)) double __ocml_fma_f64(double, double, double);
173176__device__ __attribute__((const )) double __ocml_fmax_f64 (double , double );
174177__device__ __attribute__((const )) double __ocml_fmin_f64 (double , double );
175178__device__ __attribute__((const )) double __ocml_fmod_f64 (double , double );
176- __device__ double __ocml_frexp_f64 (double , __PRIVATE_AS int * );
179+ __device__ double __ocml_frexp_f64 (double ,
180+ __attribute__((address_space (5 ))) int * );
177181__device__ __attribute__((const )) double __ocml_hypot_f64 (double , double );
178182__device__ __attribute__((const )) int __ocml_ilogb_f64 (double );
179183__device__ __attribute__((const )) int __ocml_isfinite_f64 (double );
@@ -188,7 +192,8 @@ __device__ __attribute__((pure)) double __ocml_log1p_f64(double);
188192__device__ __attribute__((pure )) double __ocml_log2_f64 (double );
189193__device__ __attribute__((const )) double __ocml_logb_f64 (double );
190194__device__ __attribute__((pure )) double __ocml_log_f64 (double );
191- __device__ double __ocml_modf_f64 (double , __PRIVATE_AS double * );
195+ __device__ double __ocml_modf_f64 (double ,
196+ __attribute__((address_space (5 ))) double * );
192197__device__ __attribute__((const )) double __ocml_nearbyint_f64 (double );
193198__device__ __attribute__((const )) double __ocml_nextafter_f64 (double , double );
194199__device__ __attribute__((const )) double __ocml_len3_f64 (double , double ,
@@ -201,7 +206,8 @@ __device__ __attribute__((pure)) double __ocml_pow_f64(double, double);
201206__device__ __attribute__((pure )) double __ocml_pown_f64 (double , int );
202207__device__ __attribute__((pure )) double __ocml_rcbrt_f64 (double );
203208__device__ __attribute__((const )) double __ocml_remainder_f64 (double , double );
204- __device__ double __ocml_remquo_f64 (double , double , __PRIVATE_AS int * );
209+ __device__ double __ocml_remquo_f64 (double , double ,
210+ __attribute__((address_space (5 ))) int * );
205211__device__ __attribute__((const )) double __ocml_rhypot_f64 (double , double );
206212__device__ __attribute__((const )) double __ocml_rint_f64 (double );
207213__device__ __attribute__((const )) double __ocml_rlen3_f64 (double , double ,
@@ -213,8 +219,10 @@ __device__ __attribute__((pure)) double __ocml_rsqrt_f64(double);
213219__device__ __attribute__((const )) double __ocml_scalb_f64 (double , double );
214220__device__ __attribute__((const )) double __ocml_scalbn_f64 (double , int );
215221__device__ __attribute__((const )) int __ocml_signbit_f64 (double );
216- __device__ double __ocml_sincos_f64 (double , __PRIVATE_AS double * );
217- __device__ double __ocml_sincospi_f64 (double , __PRIVATE_AS double * );
222+ __device__ double __ocml_sincos_f64 (double ,
223+ __attribute__((address_space (5 ))) double * );
224+ __device__ double
225+ __ocml_sincospi_f64 (double , __attribute__((address_space (5 ))) double * );
218226__device__ double __ocml_sin_f64 (double );
219227__device__ __attribute__((pure )) double __ocml_sinh_f64 (double );
220228__device__ double __ocml_sinpi_f64 (double );
0 commit comments