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