14
14
#include "hip/hip_version.h"
15
15
#endif // __has_include("hip/hip_version.h")
16
16
17
+ #define __PRIVATE_AS __attribute__((opencl_private))
18
+
17
19
#ifdef __cplusplus
18
20
extern "C" {
19
21
#endif
@@ -55,8 +57,7 @@ __device__ __attribute__((const)) float __ocml_fmax_f32(float, float);
55
57
__device__ __attribute__((const )) float __ocml_fmin_f32 (float , float );
56
58
__device__ __attribute__((const )) __device__ float __ocml_fmod_f32 (float ,
57
59
float );
58
- __device__ float __ocml_frexp_f32 (float ,
59
- __attribute__((address_space (5 ))) int * );
60
+ __device__ float __ocml_frexp_f32 (float , __PRIVATE_AS int * );
60
61
__device__ __attribute__((const )) float __ocml_hypot_f32 (float , float );
61
62
__device__ __attribute__((const )) int __ocml_ilogb_f32 (float );
62
63
__device__ __attribute__((const )) int __ocml_isfinite_f32 (float );
@@ -74,8 +75,7 @@ __device__ __attribute__((pure)) float __ocml_native_log2_f32(float);
74
75
__device__ __attribute__((const )) float __ocml_logb_f32 (float );
75
76
__device__ __attribute__((pure )) float __ocml_log_f32 (float );
76
77
__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 * );
79
79
__device__ __attribute__((const )) float __ocml_nearbyint_f32 (float );
80
80
__device__ __attribute__((const )) float __ocml_nextafter_f32 (float , float );
81
81
__device__ __attribute__((const )) float __ocml_len3_f32 (float , float , float );
@@ -87,8 +87,7 @@ __device__ __attribute__((pure)) float __ocml_pow_f32(float, float);
87
87
__device__ __attribute__((pure )) float __ocml_pown_f32 (float , int );
88
88
__device__ __attribute__((pure )) float __ocml_rcbrt_f32 (float );
89
89
__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 * );
92
91
__device__ __attribute__((const )) float __ocml_rhypot_f32 (float , float );
93
92
__device__ __attribute__((const )) float __ocml_rint_f32 (float );
94
93
__device__ __attribute__((const )) float __ocml_rlen3_f32 (float , float , float );
@@ -99,10 +98,8 @@ __device__ __attribute__((pure)) float __ocml_rsqrt_f32(float);
99
98
__device__ __attribute__((const )) float __ocml_scalb_f32 (float , float );
100
99
__device__ __attribute__((const )) float __ocml_scalbn_f32 (float , int );
101
100
__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 * );
106
103
__device__ float __ocml_sin_f32 (float );
107
104
__device__ float __ocml_native_sin_f32 (float );
108
105
__device__ __attribute__((pure )) float __ocml_sinh_f32 (float );
@@ -176,8 +173,7 @@ __device__ __attribute__((const)) double __ocml_fma_f64(double, double, double);
176
173
__device__ __attribute__((const )) double __ocml_fmax_f64 (double , double );
177
174
__device__ __attribute__((const )) double __ocml_fmin_f64 (double , double );
178
175
__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 * );
181
177
__device__ __attribute__((const )) double __ocml_hypot_f64 (double , double );
182
178
__device__ __attribute__((const )) int __ocml_ilogb_f64 (double );
183
179
__device__ __attribute__((const )) int __ocml_isfinite_f64 (double );
@@ -192,8 +188,7 @@ __device__ __attribute__((pure)) double __ocml_log1p_f64(double);
192
188
__device__ __attribute__((pure )) double __ocml_log2_f64 (double );
193
189
__device__ __attribute__((const )) double __ocml_logb_f64 (double );
194
190
__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 * );
197
192
__device__ __attribute__((const )) double __ocml_nearbyint_f64 (double );
198
193
__device__ __attribute__((const )) double __ocml_nextafter_f64 (double , double );
199
194
__device__ __attribute__((const )) double __ocml_len3_f64 (double , double ,
@@ -206,8 +201,7 @@ __device__ __attribute__((pure)) double __ocml_pow_f64(double, double);
206
201
__device__ __attribute__((pure )) double __ocml_pown_f64 (double , int );
207
202
__device__ __attribute__((pure )) double __ocml_rcbrt_f64 (double );
208
203
__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 * );
211
205
__device__ __attribute__((const )) double __ocml_rhypot_f64 (double , double );
212
206
__device__ __attribute__((const )) double __ocml_rint_f64 (double );
213
207
__device__ __attribute__((const )) double __ocml_rlen3_f64 (double , double ,
@@ -219,10 +213,8 @@ __device__ __attribute__((pure)) double __ocml_rsqrt_f64(double);
219
213
__device__ __attribute__((const )) double __ocml_scalb_f64 (double , double );
220
214
__device__ __attribute__((const )) double __ocml_scalbn_f64 (double , int );
221
215
__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 * );
226
218
__device__ double __ocml_sin_f64 (double );
227
219
__device__ __attribute__((pure )) double __ocml_sinh_f64 (double );
228
220
__device__ double __ocml_sinpi_f64 (double );
0 commit comments