28 #ifndef HIP_INCLUDE_HIP_HCC_DETAIL_DEVICE_LIBRARY_DECLS_H 29 #define HIP_INCLUDE_HIP_HCC_DETAIL_DEVICE_LIBRARY_DECLS_H 33 typedef unsigned char uchar;
34 typedef unsigned short ushort;
35 typedef unsigned int uint;
36 typedef unsigned long ulong;
38 extern "C" __device__ __attribute__((
const)) bool __ockl_wfany_i32(
int);
39 extern "C" __device__ __attribute__((const))
bool __ockl_wfall_i32(
int);
40 extern "C" __device__ uint __ockl_activelane_u32(
void);
42 extern "C" __device__ __attribute__((const)) uint __ockl_mul24_u32(uint, uint);
43 extern "C" __device__ __attribute__((const))
int __ockl_mul24_i32(
int,
int);
44 extern "C" __device__ __attribute__((const)) uint __ockl_mul_hi_u32(uint, uint);
45 extern "C" __device__ __attribute__((const))
int __ockl_mul_hi_i32(
int,
int);
46 extern "C" __device__ __attribute__((const)) uint __ockl_sad_u32(uint, uint, uint);
48 extern "C" __device__ __attribute__((const)) uchar __ockl_clz_u8(uchar);
49 extern "C" __device__ __attribute__((const)) ushort __ockl_clz_u16(ushort);
50 extern "C" __device__ __attribute__((const)) uint __ockl_clz_u32(uint);
51 extern "C" __device__ __attribute__((const)) ulong __ockl_clz_u64(ulong);
53 extern "C" __device__ __attribute__((const))
float __ocml_floor_f32(
float);
54 extern "C" __device__ __attribute__((const))
float __ocml_rint_f32(
float);
55 extern "C" __device__ __attribute__((const))
float __ocml_ceil_f32(
float);
56 extern "C" __device__ __attribute__((const))
float __ocml_trunc_f32(
float);
58 extern "C" __device__ __attribute__((const))
float __ocml_fmin_f32(
float,
float);
59 extern "C" __device__ __attribute__((const))
float __ocml_fmax_f32(
float,
float);
62 #define __local __attribute__((address_space(3))) 64 #ifdef __HIP_DEVICE_COMPILE__ 65 __device__
inline static __local
void* __to_local(
unsigned x) {
return (__local
void*)x; }
66 #endif //__HIP_DEVICE_COMPILE__ 69 extern "C" __device__
void __llvm_fence_acq_sg(
void);
70 extern "C" __device__
void __llvm_fence_acq_wg(
void);
71 extern "C" __device__
void __llvm_fence_acq_dev(
void);
72 extern "C" __device__
void __llvm_fence_acq_sys(
void);
74 extern "C" __device__
void __llvm_fence_rel_sg(
void);
75 extern "C" __device__
void __llvm_fence_rel_wg(
void);
76 extern "C" __device__
void __llvm_fence_rel_dev(
void);
77 extern "C" __device__
void __llvm_fence_rel_sys(
void);
79 extern "C" __device__
void __llvm_fence_ar_sg(
void);
80 extern "C" __device__
void __llvm_fence_ar_wg(
void);
81 extern "C" __device__
void __llvm_fence_ar_dev(
void);
82 extern "C" __device__
void __llvm_fence_ar_sys(
void);
85 extern "C" __device__
void __llvm_fence_sc_sg(
void);
86 extern "C" __device__
void __llvm_fence_sc_wg(
void);
87 extern "C" __device__
void __llvm_fence_sc_dev(
void);
88 extern "C" __device__
void __llvm_fence_sc_sys(
void);