1414#include "hip/hip_version.h"
1515#endif // __has_include("hip/hip_version.h")
1616
17+ #define __PRIVATE_AS __attribute__((opencl_private))
18+
1719#ifdef __cplusplus
1820extern "C" {
1921#endif
@@ -55,8 +57,7 @@ __device__ __attribute__((const)) float __ocml_fmax_f32(float, float);
5557__device__ __attribute__((const )) float __ocml_fmin_f32 (float , float );
5658__device__ __attribute__((const )) __device__ float __ocml_fmod_f32 (float ,
5759 float );
58- __device__ float __ocml_frexp_f32 (float ,
59- __attribute__((address_space (5 ))) int * );
60+ __device__ float __ocml_frexp_f32 (float , __PRIVATE_AS int * );
6061__device__ __attribute__((const )) float __ocml_hypot_f32 (float , float );
6162__device__ __attribute__((const )) int __ocml_ilogb_f32 (float );
6263__device__ __attribute__((const )) int __ocml_isfinite_f32 (float );
@@ -74,8 +75,7 @@ __device__ __attribute__((pure)) float __ocml_native_log2_f32(float);
7475__device__ __attribute__((const )) float __ocml_logb_f32 (float );
7576__device__ __attribute__((pure )) float __ocml_log_f32 (float );
7677__device__ __attribute__((pure )) float __ocml_native_log_f32 (float );
77- __device__ float __ocml_modf_f32 (float ,
78- __attribute__((address_space (5 ))) float * );
78+ __device__ float __ocml_modf_f32 (float , __PRIVATE_AS 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,8 +87,7 @@ __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 ,
91- __attribute__((address_space (5 ))) int * );
90+ __device__ float __ocml_remquo_f32 (float , float , __PRIVATE_AS int * );
9291__device__ __attribute__((const )) float __ocml_rhypot_f32 (float , float );
9392__device__ __attribute__((const )) float __ocml_rint_f32 (float );
9493__device__ __attribute__((const )) float __ocml_rlen3_f32 (float , float , float );
@@ -99,10 +98,8 @@ __device__ __attribute__((pure)) float __ocml_rsqrt_f32(float);
9998__device__ __attribute__((const )) float __ocml_scalb_f32 (float , float );
10099__device__ __attribute__((const )) float __ocml_scalbn_f32 (float , int );
101100__device__ __attribute__((const )) int __ocml_signbit_f32 (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 * );
101+ __device__ float __ocml_sincos_f32 (float , __PRIVATE_AS float * );
102+ __device__ float __ocml_sincospi_f32 (float , __PRIVATE_AS float * );
106103__device__ float __ocml_sin_f32 (float );
107104__device__ float __ocml_native_sin_f32 (float );
108105__device__ __attribute__((pure )) float __ocml_sinh_f32 (float );
@@ -176,8 +173,7 @@ __device__ __attribute__((const)) double __ocml_fma_f64(double, double, double);
176173__device__ __attribute__((const )) double __ocml_fmax_f64 (double , double );
177174__device__ __attribute__((const )) double __ocml_fmin_f64 (double , double );
178175__device__ __attribute__((const )) double __ocml_fmod_f64 (double , double );
179- __device__ double __ocml_frexp_f64 (double ,
180- __attribute__((address_space (5 ))) int * );
176+ __device__ double __ocml_frexp_f64 (double , __PRIVATE_AS int * );
181177__device__ __attribute__((const )) double __ocml_hypot_f64 (double , double );
182178__device__ __attribute__((const )) int __ocml_ilogb_f64 (double );
183179__device__ __attribute__((const )) int __ocml_isfinite_f64 (double );
@@ -192,8 +188,7 @@ __device__ __attribute__((pure)) double __ocml_log1p_f64(double);
192188__device__ __attribute__((pure )) double __ocml_log2_f64 (double );
193189__device__ __attribute__((const )) double __ocml_logb_f64 (double );
194190__device__ __attribute__((pure )) double __ocml_log_f64 (double );
195- __device__ double __ocml_modf_f64 (double ,
196- __attribute__((address_space (5 ))) double * );
191+ __device__ double __ocml_modf_f64 (double , __PRIVATE_AS double * );
197192__device__ __attribute__((const )) double __ocml_nearbyint_f64 (double );
198193__device__ __attribute__((const )) double __ocml_nextafter_f64 (double , double );
199194__device__ __attribute__((const )) double __ocml_len3_f64 (double , double ,
@@ -206,8 +201,7 @@ __device__ __attribute__((pure)) double __ocml_pow_f64(double, double);
206201__device__ __attribute__((pure )) double __ocml_pown_f64 (double , int );
207202__device__ __attribute__((pure )) double __ocml_rcbrt_f64 (double );
208203__device__ __attribute__((const )) double __ocml_remainder_f64 (double , double );
209- __device__ double __ocml_remquo_f64 (double , double ,
210- __attribute__((address_space (5 ))) int * );
204+ __device__ double __ocml_remquo_f64 (double , double , __PRIVATE_AS int * );
211205__device__ __attribute__((const )) double __ocml_rhypot_f64 (double , double );
212206__device__ __attribute__((const )) double __ocml_rint_f64 (double );
213207__device__ __attribute__((const )) double __ocml_rlen3_f64 (double , double ,
@@ -219,10 +213,8 @@ __device__ __attribute__((pure)) double __ocml_rsqrt_f64(double);
219213__device__ __attribute__((const )) double __ocml_scalb_f64 (double , double );
220214__device__ __attribute__((const )) double __ocml_scalbn_f64 (double , int );
221215__device__ __attribute__((const )) int __ocml_signbit_f64 (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 * );
216+ __device__ double __ocml_sincos_f64 (double , __PRIVATE_AS double * );
217+ __device__ double __ocml_sincospi_f64 (double , __PRIVATE_AS double * );
226218__device__ double __ocml_sin_f64 (double );
227219__device__ __attribute__((pure )) double __ocml_sinh_f64 (double );
228220__device__ double __ocml_sinpi_f64 (double );
0 commit comments