cubecl_hip_sys/bindings/
bindings_43483.rs

1/* automatically generated by rust-bindgen 0.70.1 */
2
3#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6    storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9    #[inline]
10    pub const fn new(storage: Storage) -> Self {
11        Self { storage }
12    }
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16    Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18    #[inline]
19    pub fn get_bit(&self, index: usize) -> bool {
20        debug_assert!(index / 8 < self.storage.as_ref().len());
21        let byte_index = index / 8;
22        let byte = self.storage.as_ref()[byte_index];
23        let bit_index = if cfg!(target_endian = "big") {
24            7 - (index % 8)
25        } else {
26            index % 8
27        };
28        let mask = 1 << bit_index;
29        byte & mask == mask
30    }
31    #[inline]
32    pub fn set_bit(&mut self, index: usize, val: bool) {
33        debug_assert!(index / 8 < self.storage.as_ref().len());
34        let byte_index = index / 8;
35        let byte = &mut self.storage.as_mut()[byte_index];
36        let bit_index = if cfg!(target_endian = "big") {
37            7 - (index % 8)
38        } else {
39            index % 8
40        };
41        let mask = 1 << bit_index;
42        if val {
43            *byte |= mask;
44        } else {
45            *byte &= !mask;
46        }
47    }
48    #[inline]
49    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
50        debug_assert!(bit_width <= 64);
51        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
52        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
53        let mut val = 0;
54        for i in 0..(bit_width as usize) {
55            if self.get_bit(i + bit_offset) {
56                let index = if cfg!(target_endian = "big") {
57                    bit_width as usize - 1 - i
58                } else {
59                    i
60                };
61                val |= 1 << index;
62            }
63        }
64        val
65    }
66    #[inline]
67    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
68        debug_assert!(bit_width <= 64);
69        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
70        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
71        for i in 0..(bit_width as usize) {
72            let mask = 1 << i;
73            let val_bit_is_set = val & mask == mask;
74            let index = if cfg!(target_endian = "big") {
75                bit_width as usize - 1 - i
76            } else {
77                i
78            };
79            self.set_bit(index + bit_offset, val_bit_is_set);
80        }
81    }
82}
83pub const __HIP_ARCH_HAS_GLOBAL_INT32_ATOMICS__: u32 = 0;
84pub const __HIP_ARCH_HAS_GLOBAL_FLOAT_ATOMIC_EXCH__: u32 = 0;
85pub const __HIP_ARCH_HAS_SHARED_INT32_ATOMICS__: u32 = 0;
86pub const __HIP_ARCH_HAS_SHARED_FLOAT_ATOMIC_EXCH__: u32 = 0;
87pub const __HIP_ARCH_HAS_FLOAT_ATOMIC_ADD__: u32 = 0;
88pub const __HIP_ARCH_HAS_GLOBAL_INT64_ATOMICS__: u32 = 0;
89pub const __HIP_ARCH_HAS_SHARED_INT64_ATOMICS__: u32 = 0;
90pub const __HIP_ARCH_HAS_DOUBLES__: u32 = 0;
91pub const __HIP_ARCH_HAS_WARP_VOTE__: u32 = 0;
92pub const __HIP_ARCH_HAS_WARP_BALLOT__: u32 = 0;
93pub const __HIP_ARCH_HAS_WARP_SHUFFLE__: u32 = 0;
94pub const __HIP_ARCH_HAS_WARP_FUNNEL_SHIFT__: u32 = 0;
95pub const __HIP_ARCH_HAS_THREAD_FENCE_SYSTEM__: u32 = 0;
96pub const __HIP_ARCH_HAS_SYNC_THREAD_EXT__: u32 = 0;
97pub const __HIP_ARCH_HAS_SURFACE_FUNCS__: u32 = 0;
98pub const __HIP_ARCH_HAS_3DGRID__: u32 = 0;
99pub const __HIP_ARCH_HAS_DYNAMIC_PARALLEL__: u32 = 0;
100pub const _FEATURES_H: u32 = 1;
101pub const _DEFAULT_SOURCE: u32 = 1;
102pub const __GLIBC_USE_ISOC2X: u32 = 0;
103pub const __USE_ISOC11: u32 = 1;
104pub const __USE_ISOC99: u32 = 1;
105pub const __USE_ISOC95: u32 = 1;
106pub const __USE_POSIX_IMPLICITLY: u32 = 1;
107pub const _POSIX_SOURCE: u32 = 1;
108pub const _POSIX_C_SOURCE: u32 = 200809;
109pub const __USE_POSIX: u32 = 1;
110pub const __USE_POSIX2: u32 = 1;
111pub const __USE_POSIX199309: u32 = 1;
112pub const __USE_POSIX199506: u32 = 1;
113pub const __USE_XOPEN2K: u32 = 1;
114pub const __USE_XOPEN2K8: u32 = 1;
115pub const _ATFILE_SOURCE: u32 = 1;
116pub const __WORDSIZE: u32 = 64;
117pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
118pub const __SYSCALL_WORDSIZE: u32 = 64;
119pub const __TIMESIZE: u32 = 64;
120pub const __USE_MISC: u32 = 1;
121pub const __USE_ATFILE: u32 = 1;
122pub const __USE_FORTIFY_LEVEL: u32 = 0;
123pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
124pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
125pub const __GLIBC_USE_C2X_STRTOL: u32 = 0;
126pub const _STDC_PREDEF_H: u32 = 1;
127pub const __STDC_IEC_559__: u32 = 1;
128pub const __STDC_IEC_60559_BFP__: u32 = 201404;
129pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
130pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
131pub const __STDC_ISO_10646__: u32 = 201706;
132pub const __GNU_LIBRARY__: u32 = 6;
133pub const __GLIBC__: u32 = 2;
134pub const __GLIBC_MINOR__: u32 = 39;
135pub const _SYS_CDEFS_H: u32 = 1;
136pub const __glibc_c99_flexarr_available: u32 = 1;
137pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
138pub const __HAVE_GENERIC_SELECTION: u32 = 1;
139pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
140pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
141pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
142pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
143pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
144pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
145pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
146pub const _STDLIB_H: u32 = 1;
147pub const WNOHANG: u32 = 1;
148pub const WUNTRACED: u32 = 2;
149pub const WSTOPPED: u32 = 2;
150pub const WEXITED: u32 = 4;
151pub const WCONTINUED: u32 = 8;
152pub const WNOWAIT: u32 = 16777216;
153pub const __WNOTHREAD: u32 = 536870912;
154pub const __WALL: u32 = 1073741824;
155pub const __WCLONE: u32 = 2147483648;
156pub const __W_CONTINUED: u32 = 65535;
157pub const __WCOREFLAG: u32 = 128;
158pub const __HAVE_FLOAT128: u32 = 0;
159pub const __HAVE_DISTINCT_FLOAT128: u32 = 0;
160pub const __HAVE_FLOAT64X: u32 = 1;
161pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1;
162pub const __HAVE_FLOAT16: u32 = 0;
163pub const __HAVE_FLOAT32: u32 = 1;
164pub const __HAVE_FLOAT64: u32 = 1;
165pub const __HAVE_FLOAT32X: u32 = 1;
166pub const __HAVE_FLOAT128X: u32 = 0;
167pub const __HAVE_DISTINCT_FLOAT16: u32 = 0;
168pub const __HAVE_DISTINCT_FLOAT32: u32 = 0;
169pub const __HAVE_DISTINCT_FLOAT64: u32 = 0;
170pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0;
171pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0;
172pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0;
173pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0;
174pub const __ldiv_t_defined: u32 = 1;
175pub const __lldiv_t_defined: u32 = 1;
176pub const RAND_MAX: u32 = 2147483647;
177pub const EXIT_FAILURE: u32 = 1;
178pub const EXIT_SUCCESS: u32 = 0;
179pub const _SYS_TYPES_H: u32 = 1;
180pub const _BITS_TYPES_H: u32 = 1;
181pub const _BITS_TYPESIZES_H: u32 = 1;
182pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
183pub const __INO_T_MATCHES_INO64_T: u32 = 1;
184pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
185pub const __STATFS_MATCHES_STATFS64: u32 = 1;
186pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
187pub const __FD_SETSIZE: u32 = 1024;
188pub const _BITS_TIME64_H: u32 = 1;
189pub const __clock_t_defined: u32 = 1;
190pub const __clockid_t_defined: u32 = 1;
191pub const __time_t_defined: u32 = 1;
192pub const __timer_t_defined: u32 = 1;
193pub const _BITS_STDINT_INTN_H: u32 = 1;
194pub const __BIT_TYPES_DEFINED__: u32 = 1;
195pub const _ENDIAN_H: u32 = 1;
196pub const _BITS_ENDIAN_H: u32 = 1;
197pub const __LITTLE_ENDIAN: u32 = 1234;
198pub const __BIG_ENDIAN: u32 = 4321;
199pub const __PDP_ENDIAN: u32 = 3412;
200pub const _BITS_ENDIANNESS_H: u32 = 1;
201pub const __BYTE_ORDER: u32 = 1234;
202pub const __FLOAT_WORD_ORDER: u32 = 1234;
203pub const LITTLE_ENDIAN: u32 = 1234;
204pub const BIG_ENDIAN: u32 = 4321;
205pub const PDP_ENDIAN: u32 = 3412;
206pub const BYTE_ORDER: u32 = 1234;
207pub const _BITS_BYTESWAP_H: u32 = 1;
208pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
209pub const _SYS_SELECT_H: u32 = 1;
210pub const __sigset_t_defined: u32 = 1;
211pub const __timeval_defined: u32 = 1;
212pub const _STRUCT_TIMESPEC: u32 = 1;
213pub const FD_SETSIZE: u32 = 1024;
214pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
215pub const _THREAD_SHARED_TYPES_H: u32 = 1;
216pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
217pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
218pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
219pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
220pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
221pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
222pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
223pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
224pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
225pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
226pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1;
227pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
228pub const __have_pthread_attr_t: u32 = 1;
229pub const _ALLOCA_H: u32 = 1;
230pub const _STRING_H: u32 = 1;
231pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
232pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
233pub const _STRINGS_H: u32 = 1;
234pub const HIP_VERSION_MAJOR: u32 = 6;
235pub const HIP_VERSION_MINOR: u32 = 4;
236pub const HIP_VERSION_PATCH: u32 = 43483;
237pub const HIP_VERSION_GITHASH: &[u8; 10] = b"a187df25c\0";
238pub const HIP_VERSION_BUILD_ID: u32 = 0;
239pub const HIP_VERSION_BUILD_NAME: &[u8; 1] = b"\0";
240pub const HIP_VERSION: u32 = 60443483;
241pub const __HIP_HAS_GET_PCH: u32 = 1;
242pub const _STDINT_H: u32 = 1;
243pub const _BITS_WCHAR_H: u32 = 1;
244pub const _BITS_STDINT_UINTN_H: u32 = 1;
245pub const _BITS_STDINT_LEAST_H: u32 = 1;
246pub const INT8_MIN: i32 = -128;
247pub const INT16_MIN: i32 = -32768;
248pub const INT32_MIN: i32 = -2147483648;
249pub const INT8_MAX: u32 = 127;
250pub const INT16_MAX: u32 = 32767;
251pub const INT32_MAX: u32 = 2147483647;
252pub const UINT8_MAX: u32 = 255;
253pub const UINT16_MAX: u32 = 65535;
254pub const UINT32_MAX: u32 = 4294967295;
255pub const INT_LEAST8_MIN: i32 = -128;
256pub const INT_LEAST16_MIN: i32 = -32768;
257pub const INT_LEAST32_MIN: i32 = -2147483648;
258pub const INT_LEAST8_MAX: u32 = 127;
259pub const INT_LEAST16_MAX: u32 = 32767;
260pub const INT_LEAST32_MAX: u32 = 2147483647;
261pub const UINT_LEAST8_MAX: u32 = 255;
262pub const UINT_LEAST16_MAX: u32 = 65535;
263pub const UINT_LEAST32_MAX: u32 = 4294967295;
264pub const INT_FAST8_MIN: i32 = -128;
265pub const INT_FAST16_MIN: i64 = -9223372036854775808;
266pub const INT_FAST32_MIN: i64 = -9223372036854775808;
267pub const INT_FAST8_MAX: u32 = 127;
268pub const INT_FAST16_MAX: u64 = 9223372036854775807;
269pub const INT_FAST32_MAX: u64 = 9223372036854775807;
270pub const UINT_FAST8_MAX: u32 = 255;
271pub const UINT_FAST16_MAX: i32 = -1;
272pub const UINT_FAST32_MAX: i32 = -1;
273pub const INTPTR_MIN: i64 = -9223372036854775808;
274pub const INTPTR_MAX: u64 = 9223372036854775807;
275pub const UINTPTR_MAX: i32 = -1;
276pub const PTRDIFF_MIN: i64 = -9223372036854775808;
277pub const PTRDIFF_MAX: u64 = 9223372036854775807;
278pub const SIG_ATOMIC_MIN: i32 = -2147483648;
279pub const SIG_ATOMIC_MAX: u32 = 2147483647;
280pub const SIZE_MAX: i32 = -1;
281pub const WINT_MIN: u32 = 0;
282pub const WINT_MAX: u32 = 4294967295;
283pub const GENERIC_GRID_LAUNCH: u32 = 1;
284pub const __bool_true_false_are_defined: u32 = 1;
285pub const true_: u32 = 1;
286pub const false_: u32 = 0;
287pub const HIP_TRSA_OVERRIDE_FORMAT: u32 = 1;
288pub const HIP_TRSF_READ_AS_INTEGER: u32 = 1;
289pub const HIP_TRSF_NORMALIZED_COORDINATES: u32 = 2;
290pub const HIP_TRSF_SRGB: u32 = 16;
291pub const _LIBC_LIMITS_H_: u32 = 1;
292pub const MB_LEN_MAX: u32 = 16;
293pub const _BITS_POSIX1_LIM_H: u32 = 1;
294pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
295pub const _POSIX_AIO_MAX: u32 = 1;
296pub const _POSIX_ARG_MAX: u32 = 4096;
297pub const _POSIX_CHILD_MAX: u32 = 25;
298pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
299pub const _POSIX_HOST_NAME_MAX: u32 = 255;
300pub const _POSIX_LINK_MAX: u32 = 8;
301pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
302pub const _POSIX_MAX_CANON: u32 = 255;
303pub const _POSIX_MAX_INPUT: u32 = 255;
304pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
305pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
306pub const _POSIX_NAME_MAX: u32 = 14;
307pub const _POSIX_NGROUPS_MAX: u32 = 8;
308pub const _POSIX_OPEN_MAX: u32 = 20;
309pub const _POSIX_PATH_MAX: u32 = 256;
310pub const _POSIX_PIPE_BUF: u32 = 512;
311pub const _POSIX_RE_DUP_MAX: u32 = 255;
312pub const _POSIX_RTSIG_MAX: u32 = 8;
313pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
314pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
315pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
316pub const _POSIX_SSIZE_MAX: u32 = 32767;
317pub const _POSIX_STREAM_MAX: u32 = 8;
318pub const _POSIX_SYMLINK_MAX: u32 = 255;
319pub const _POSIX_SYMLOOP_MAX: u32 = 8;
320pub const _POSIX_TIMER_MAX: u32 = 32;
321pub const _POSIX_TTY_NAME_MAX: u32 = 9;
322pub const _POSIX_TZNAME_MAX: u32 = 6;
323pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
324pub const NR_OPEN: u32 = 1024;
325pub const NGROUPS_MAX: u32 = 65536;
326pub const ARG_MAX: u32 = 131072;
327pub const LINK_MAX: u32 = 127;
328pub const MAX_CANON: u32 = 255;
329pub const MAX_INPUT: u32 = 255;
330pub const NAME_MAX: u32 = 255;
331pub const PATH_MAX: u32 = 4096;
332pub const PIPE_BUF: u32 = 4096;
333pub const XATTR_NAME_MAX: u32 = 255;
334pub const XATTR_SIZE_MAX: u32 = 65536;
335pub const XATTR_LIST_MAX: u32 = 65536;
336pub const RTSIG_MAX: u32 = 32;
337pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
338pub const PTHREAD_KEYS_MAX: u32 = 1024;
339pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
340pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
341pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
342pub const AIO_PRIO_DELTA_MAX: u32 = 20;
343pub const PTHREAD_STACK_MIN: u32 = 16384;
344pub const DELAYTIMER_MAX: u32 = 2147483647;
345pub const TTY_NAME_MAX: u32 = 32;
346pub const LOGIN_NAME_MAX: u32 = 256;
347pub const HOST_NAME_MAX: u32 = 64;
348pub const MQ_PRIO_MAX: u32 = 32768;
349pub const SEM_VALUE_MAX: u32 = 2147483647;
350pub const _BITS_POSIX2_LIM_H: u32 = 1;
351pub const _POSIX2_BC_BASE_MAX: u32 = 99;
352pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
353pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
354pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
355pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
356pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
357pub const _POSIX2_LINE_MAX: u32 = 2048;
358pub const _POSIX2_RE_DUP_MAX: u32 = 255;
359pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
360pub const BC_BASE_MAX: u32 = 99;
361pub const BC_DIM_MAX: u32 = 2048;
362pub const BC_SCALE_MAX: u32 = 99;
363pub const BC_STRING_MAX: u32 = 1000;
364pub const COLL_WEIGHTS_MAX: u32 = 255;
365pub const EXPR_NEST_MAX: u32 = 32;
366pub const LINE_MAX: u32 = 2048;
367pub const CHARCLASS_NAME_MAX: u32 = 2048;
368pub const RE_DUP_MAX: u32 = 32767;
369pub const __HIP_USE_NATIVE_VECTOR__: u32 = 1;
370pub const hipTextureType1D: u32 = 1;
371pub const hipTextureType2D: u32 = 2;
372pub const hipTextureType3D: u32 = 3;
373pub const hipTextureTypeCubemap: u32 = 12;
374pub const hipTextureType1DLayered: u32 = 241;
375pub const hipTextureType2DLayered: u32 = 242;
376pub const hipTextureTypeCubemapLayered: u32 = 252;
377pub const HIP_IMAGE_OBJECT_SIZE_DWORD: u32 = 12;
378pub const HIP_SAMPLER_OBJECT_SIZE_DWORD: u32 = 8;
379pub const HIP_SAMPLER_OBJECT_OFFSET_DWORD: u32 = 12;
380pub const HIP_TEXTURE_OBJECT_SIZE_DWORD: u32 = 20;
381pub const HIP_DEPRECATED_MSG : & [u8 ; 189] = b"This API is marked as deprecated and might not be supported in future releases. For more details please refer https://github.com/ROCm/HIP/blob/develop/docs/reference/deprecated_api_list.md\0" ;
382pub const hipIpcMemLazyEnablePeerAccess: u32 = 1;
383pub const HIP_IPC_HANDLE_SIZE: u32 = 64;
384pub const hipStreamDefault: u32 = 0;
385pub const hipStreamNonBlocking: u32 = 1;
386pub const hipEventDefault: u32 = 0;
387pub const hipEventBlockingSync: u32 = 1;
388pub const hipEventDisableTiming: u32 = 2;
389pub const hipEventInterprocess: u32 = 4;
390pub const hipEventRecordDefault: u32 = 0;
391pub const hipEventRecordExternal: u32 = 1;
392pub const hipEventDisableSystemFence: u32 = 536870912;
393pub const hipEventReleaseToDevice: u32 = 1073741824;
394pub const hipEventReleaseToSystem: u32 = 2147483648;
395pub const hipHostAllocDefault: u32 = 0;
396pub const hipHostMallocDefault: u32 = 0;
397pub const hipHostAllocPortable: u32 = 1;
398pub const hipHostMallocPortable: u32 = 1;
399pub const hipHostAllocMapped: u32 = 2;
400pub const hipHostMallocMapped: u32 = 2;
401pub const hipHostAllocWriteCombined: u32 = 4;
402pub const hipHostMallocWriteCombined: u32 = 4;
403pub const hipHostMallocNumaUser: u32 = 536870912;
404pub const hipHostMallocCoherent: u32 = 1073741824;
405pub const hipHostMallocNonCoherent: u32 = 2147483648;
406pub const hipMemAttachGlobal: u32 = 1;
407pub const hipMemAttachHost: u32 = 2;
408pub const hipMemAttachSingle: u32 = 4;
409pub const hipDeviceMallocDefault: u32 = 0;
410pub const hipDeviceMallocFinegrained: u32 = 1;
411pub const hipMallocSignalMemory: u32 = 2;
412pub const hipDeviceMallocUncached: u32 = 3;
413pub const hipDeviceMallocContiguous: u32 = 4;
414pub const hipHostRegisterDefault: u32 = 0;
415pub const hipHostRegisterPortable: u32 = 1;
416pub const hipHostRegisterMapped: u32 = 2;
417pub const hipHostRegisterIoMemory: u32 = 4;
418pub const hipHostRegisterReadOnly: u32 = 8;
419pub const hipExtHostRegisterCoarseGrained: u32 = 8;
420pub const hipDeviceScheduleAuto: u32 = 0;
421pub const hipDeviceScheduleSpin: u32 = 1;
422pub const hipDeviceScheduleYield: u32 = 2;
423pub const hipDeviceScheduleBlockingSync: u32 = 4;
424pub const hipDeviceScheduleMask: u32 = 7;
425pub const hipDeviceMapHost: u32 = 8;
426pub const hipDeviceLmemResizeToMax: u32 = 16;
427pub const hipArrayDefault: u32 = 0;
428pub const hipArrayLayered: u32 = 1;
429pub const hipArraySurfaceLoadStore: u32 = 2;
430pub const hipArrayCubemap: u32 = 4;
431pub const hipArrayTextureGather: u32 = 8;
432pub const hipOccupancyDefault: u32 = 0;
433pub const hipOccupancyDisableCachingOverride: u32 = 1;
434pub const hipCooperativeLaunchMultiDeviceNoPreSync: u32 = 1;
435pub const hipCooperativeLaunchMultiDeviceNoPostSync: u32 = 2;
436pub const hipExtAnyOrderLaunch: u32 = 1;
437pub const hipStreamWaitValueGte: u32 = 0;
438pub const hipStreamWaitValueEq: u32 = 1;
439pub const hipStreamWaitValueAnd: u32 = 2;
440pub const hipStreamWaitValueNor: u32 = 3;
441pub const hipExternalMemoryDedicated: u32 = 1;
442pub const hipGraphKernelNodePortDefault: u32 = 0;
443pub const hipGraphKernelNodePortLaunchCompletion: u32 = 2;
444pub const hipGraphKernelNodePortProgrammatic: u32 = 1;
445pub const USE_PEER_NON_UNIFIED: u32 = 1;
446#[doc = "< CUDA Only Maximum registers may be used in a thread,\n< passed to compiler"]
447pub const hipJitOption_hipJitOptionMaxRegisters: hipJitOption = 0;
448#[doc = "< CUDA Only Number of thread per block"]
449pub const hipJitOption_hipJitOptionThreadsPerBlock: hipJitOption = 1;
450#[doc = "< CUDA Only Value for total wall clock time"]
451pub const hipJitOption_hipJitOptionWallTime: hipJitOption = 2;
452#[doc = "< CUDA Only Pointer to the buffer with logged information"]
453pub const hipJitOption_hipJitOptionInfoLogBuffer: hipJitOption = 3;
454#[doc = "< CUDA Only Size of the buffer in bytes for logged info"]
455pub const hipJitOption_hipJitOptionInfoLogBufferSizeBytes: hipJitOption = 4;
456#[doc = "< CUDA Only Pointer to the buffer with logged error(s)"]
457pub const hipJitOption_hipJitOptionErrorLogBuffer: hipJitOption = 5;
458#[doc = "< CUDA Only Size of the buffer in bytes for logged error(s)"]
459pub const hipJitOption_hipJitOptionErrorLogBufferSizeBytes: hipJitOption = 6;
460#[doc = "< Value of optimization level for generated codes, acceptable options\n< -O0, -O1, -O2, -O3"]
461pub const hipJitOption_hipJitOptionOptimizationLevel: hipJitOption = 7;
462#[doc = "< CUDA Only The target context, which is the default"]
463pub const hipJitOption_hipJitOptionTargetFromContext: hipJitOption = 8;
464#[doc = "< CUDA Only JIT target"]
465pub const hipJitOption_hipJitOptionTarget: hipJitOption = 9;
466#[doc = "< CUDA Only Fallback strategy"]
467pub const hipJitOption_hipJitOptionFallbackStrategy: hipJitOption = 10;
468#[doc = "< CUDA Only Generate debug information"]
469pub const hipJitOption_hipJitOptionGenerateDebugInfo: hipJitOption = 11;
470#[doc = "< CUDA Only Generate log verbose"]
471pub const hipJitOption_hipJitOptionLogVerbose: hipJitOption = 12;
472#[doc = "< CUDA Only Generate line number information"]
473pub const hipJitOption_hipJitOptionGenerateLineInfo: hipJitOption = 13;
474#[doc = "< CUDA Only Set cache mode"]
475pub const hipJitOption_hipJitOptionCacheMode: hipJitOption = 14;
476#[doc = "< @deprecated CUDA Only New SM3X option."]
477pub const hipJitOption_hipJitOptionSm3xOpt: hipJitOption = 15;
478#[doc = "< CUDA Only Set fast compile"]
479pub const hipJitOption_hipJitOptionFastCompile: hipJitOption = 16;
480#[doc = "< CUDA Only Array of device symbol names to be relocated to the host"]
481pub const hipJitOption_hipJitOptionGlobalSymbolNames: hipJitOption = 17;
482#[doc = "< CUDA Only Array of host addresses to be relocated to the device"]
483pub const hipJitOption_hipJitOptionGlobalSymbolAddresses: hipJitOption = 18;
484#[doc = "< CUDA Only Number of symbol count."]
485pub const hipJitOption_hipJitOptionGlobalSymbolCount: hipJitOption = 19;
486#[doc = "< @deprecated CUDA Only Enable link-time optimization for device code"]
487pub const hipJitOption_hipJitOptionLto: hipJitOption = 20;
488#[doc = "< @deprecated CUDA Only Set single-precision denormals."]
489pub const hipJitOption_hipJitOptionFtz: hipJitOption = 21;
490#[doc = "< @deprecated CUDA Only Set single-precision floating-point division\n< and reciprocals"]
491pub const hipJitOption_hipJitOptionPrecDiv: hipJitOption = 22;
492#[doc = "< @deprecated CUDA Only Set single-precision floating-point square root"]
493pub const hipJitOption_hipJitOptionPrecSqrt: hipJitOption = 23;
494#[doc = "< @deprecated CUDA Only Enable floating-point multiplies and\n< adds/subtracts operations"]
495pub const hipJitOption_hipJitOptionFma: hipJitOption = 24;
496#[doc = "< CUDA Only Generates Position Independent code"]
497pub const hipJitOption_hipJitOptionPositionIndependentCode: hipJitOption = 25;
498#[doc = "< CUDA Only Hints to JIT compiler the minimum number of CTAs frin kernel's\n< grid to be mapped to SM"]
499pub const hipJitOption_hipJitOptionMinCTAPerSM: hipJitOption = 26;
500#[doc = "< CUDA only Maximum number of threads in a thread block"]
501pub const hipJitOption_hipJitOptionMaxThreadsPerBlock: hipJitOption = 27;
502#[doc = "< Cuda only Override Directive values"]
503pub const hipJitOption_hipJitOptionOverrideDirectiveValues: hipJitOption = 28;
504#[doc = "< Number of options"]
505pub const hipJitOption_hipJitOptionNumOptions: hipJitOption = 29;
506#[doc = "< Hip Only Linker options to be passed on to compiler"]
507pub const hipJitOption_hipJitOptionIRtoISAOptExt: hipJitOption = 10000;
508#[doc = "< Hip Only Count of linker options to be passed on to compiler"]
509pub const hipJitOption_hipJitOptionIRtoISAOptCountExt: hipJitOption = 10001;
510#[doc = " hipJitOption"]
511pub type hipJitOption = ::std::os::raw::c_uint;
512#[doc = "< Cuda only Input cubin"]
513pub const hipJitInputType_hipJitInputCubin: hipJitInputType = 0;
514#[doc = "< Cuda only Input PTX"]
515pub const hipJitInputType_hipJitInputPtx: hipJitInputType = 1;
516#[doc = "< Cuda Only Input FAT Binary"]
517pub const hipJitInputType_hipJitInputFatBinary: hipJitInputType = 2;
518#[doc = "< Cuda Only Host Object with embedded device code"]
519pub const hipJitInputType_hipJitInputObject: hipJitInputType = 3;
520#[doc = "< Cuda Only Archive of Host Objects with embedded\n< device code"]
521pub const hipJitInputType_hipJitInputLibrary: hipJitInputType = 4;
522#[doc = "< @deprecated Cuda only High Level intermediate\n< code for LTO"]
523pub const hipJitInputType_hipJitInputNvvm: hipJitInputType = 5;
524#[doc = "< Count of Legacy Input Types"]
525pub const hipJitInputType_hipJitNumLegacyInputTypes: hipJitInputType = 6;
526#[doc = "< HIP Only LLVM Bitcode or IR assembly"]
527pub const hipJitInputType_hipJitInputLLVMBitcode: hipJitInputType = 100;
528#[doc = "< HIP Only LLVM Clang Bundled Code"]
529pub const hipJitInputType_hipJitInputLLVMBundledBitcode: hipJitInputType = 101;
530#[doc = "< HIP Only LLVM Archive of Bundled Bitcode"]
531pub const hipJitInputType_hipJitInputLLVMArchivesOfBundledBitcode: hipJitInputType = 102;
532#[doc = "< HIP Only SPIRV Code Object"]
533pub const hipJitInputType_hipJitInputSpirv: hipJitInputType = 103;
534#[doc = "< Count of Input Types"]
535pub const hipJitInputType_hipJitNumInputTypes: hipJitInputType = 10;
536#[doc = " hipJitInputType"]
537pub type hipJitInputType = ::std::os::raw::c_uint;
538pub const hipJitCacheMode_hipJitCacheOptionNone: hipJitCacheMode = 0;
539pub const hipJitCacheMode_hipJitCacheOptionCG: hipJitCacheMode = 1;
540pub const hipJitCacheMode_hipJitCacheOptionCA: hipJitCacheMode = 2;
541#[doc = " hipJitCacheMode"]
542pub type hipJitCacheMode = ::std::os::raw::c_uint;
543pub const hipJitFallback_hipJitPreferPTX: hipJitFallback = 0;
544pub const hipJitFallback_hipJitPreferBinary: hipJitFallback = 1;
545#[doc = " hipJitFallback"]
546pub type hipJitFallback = ::std::os::raw::c_uint;
547pub type wchar_t = ::std::os::raw::c_int;
548pub type _Float32 = f32;
549pub type _Float64 = f64;
550pub type _Float32x = f64;
551pub type _Float64x = u128;
552#[repr(C)]
553#[derive(Debug, Copy, Clone)]
554pub struct div_t {
555    pub quot: ::std::os::raw::c_int,
556    pub rem: ::std::os::raw::c_int,
557}
558#[repr(C)]
559#[derive(Debug, Copy, Clone)]
560pub struct ldiv_t {
561    pub quot: ::std::os::raw::c_long,
562    pub rem: ::std::os::raw::c_long,
563}
564#[repr(C)]
565#[derive(Debug, Copy, Clone)]
566pub struct lldiv_t {
567    pub quot: ::std::os::raw::c_longlong,
568    pub rem: ::std::os::raw::c_longlong,
569}
570extern "C" {
571    pub fn __ctype_get_mb_cur_max() -> usize;
572}
573extern "C" {
574    pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
575}
576extern "C" {
577    pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
578}
579extern "C" {
580    pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
581}
582extern "C" {
583    pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
584}
585extern "C" {
586    pub fn strtod(
587        __nptr: *const ::std::os::raw::c_char,
588        __endptr: *mut *mut ::std::os::raw::c_char,
589    ) -> f64;
590}
591extern "C" {
592    pub fn strtof(
593        __nptr: *const ::std::os::raw::c_char,
594        __endptr: *mut *mut ::std::os::raw::c_char,
595    ) -> f32;
596}
597extern "C" {
598    pub fn strtold(
599        __nptr: *const ::std::os::raw::c_char,
600        __endptr: *mut *mut ::std::os::raw::c_char,
601    ) -> u128;
602}
603extern "C" {
604    pub fn strtol(
605        __nptr: *const ::std::os::raw::c_char,
606        __endptr: *mut *mut ::std::os::raw::c_char,
607        __base: ::std::os::raw::c_int,
608    ) -> ::std::os::raw::c_long;
609}
610extern "C" {
611    pub fn strtoul(
612        __nptr: *const ::std::os::raw::c_char,
613        __endptr: *mut *mut ::std::os::raw::c_char,
614        __base: ::std::os::raw::c_int,
615    ) -> ::std::os::raw::c_ulong;
616}
617extern "C" {
618    pub fn strtoq(
619        __nptr: *const ::std::os::raw::c_char,
620        __endptr: *mut *mut ::std::os::raw::c_char,
621        __base: ::std::os::raw::c_int,
622    ) -> ::std::os::raw::c_longlong;
623}
624extern "C" {
625    pub fn strtouq(
626        __nptr: *const ::std::os::raw::c_char,
627        __endptr: *mut *mut ::std::os::raw::c_char,
628        __base: ::std::os::raw::c_int,
629    ) -> ::std::os::raw::c_ulonglong;
630}
631extern "C" {
632    pub fn strtoll(
633        __nptr: *const ::std::os::raw::c_char,
634        __endptr: *mut *mut ::std::os::raw::c_char,
635        __base: ::std::os::raw::c_int,
636    ) -> ::std::os::raw::c_longlong;
637}
638extern "C" {
639    pub fn strtoull(
640        __nptr: *const ::std::os::raw::c_char,
641        __endptr: *mut *mut ::std::os::raw::c_char,
642        __base: ::std::os::raw::c_int,
643    ) -> ::std::os::raw::c_ulonglong;
644}
645extern "C" {
646    pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
647}
648extern "C" {
649    pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
650}
651pub type __u_char = ::std::os::raw::c_uchar;
652pub type __u_short = ::std::os::raw::c_ushort;
653pub type __u_int = ::std::os::raw::c_uint;
654pub type __u_long = ::std::os::raw::c_ulong;
655pub type __int8_t = ::std::os::raw::c_schar;
656pub type __uint8_t = ::std::os::raw::c_uchar;
657pub type __int16_t = ::std::os::raw::c_short;
658pub type __uint16_t = ::std::os::raw::c_ushort;
659pub type __int32_t = ::std::os::raw::c_int;
660pub type __uint32_t = ::std::os::raw::c_uint;
661pub type __int64_t = ::std::os::raw::c_long;
662pub type __uint64_t = ::std::os::raw::c_ulong;
663pub type __int_least8_t = __int8_t;
664pub type __uint_least8_t = __uint8_t;
665pub type __int_least16_t = __int16_t;
666pub type __uint_least16_t = __uint16_t;
667pub type __int_least32_t = __int32_t;
668pub type __uint_least32_t = __uint32_t;
669pub type __int_least64_t = __int64_t;
670pub type __uint_least64_t = __uint64_t;
671pub type __quad_t = ::std::os::raw::c_long;
672pub type __u_quad_t = ::std::os::raw::c_ulong;
673pub type __intmax_t = ::std::os::raw::c_long;
674pub type __uintmax_t = ::std::os::raw::c_ulong;
675pub type __dev_t = ::std::os::raw::c_ulong;
676pub type __uid_t = ::std::os::raw::c_uint;
677pub type __gid_t = ::std::os::raw::c_uint;
678pub type __ino_t = ::std::os::raw::c_ulong;
679pub type __ino64_t = ::std::os::raw::c_ulong;
680pub type __mode_t = ::std::os::raw::c_uint;
681pub type __nlink_t = ::std::os::raw::c_ulong;
682pub type __off_t = ::std::os::raw::c_long;
683pub type __off64_t = ::std::os::raw::c_long;
684pub type __pid_t = ::std::os::raw::c_int;
685#[repr(C)]
686#[derive(Debug, Copy, Clone)]
687pub struct __fsid_t {
688    pub __val: [::std::os::raw::c_int; 2usize],
689}
690pub type __clock_t = ::std::os::raw::c_long;
691pub type __rlim_t = ::std::os::raw::c_ulong;
692pub type __rlim64_t = ::std::os::raw::c_ulong;
693pub type __id_t = ::std::os::raw::c_uint;
694pub type __time_t = ::std::os::raw::c_long;
695pub type __useconds_t = ::std::os::raw::c_uint;
696pub type __suseconds_t = ::std::os::raw::c_long;
697pub type __suseconds64_t = ::std::os::raw::c_long;
698pub type __daddr_t = ::std::os::raw::c_int;
699pub type __key_t = ::std::os::raw::c_int;
700pub type __clockid_t = ::std::os::raw::c_int;
701pub type __timer_t = *mut ::std::os::raw::c_void;
702pub type __blksize_t = ::std::os::raw::c_long;
703pub type __blkcnt_t = ::std::os::raw::c_long;
704pub type __blkcnt64_t = ::std::os::raw::c_long;
705pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
706pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
707pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
708pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
709pub type __fsword_t = ::std::os::raw::c_long;
710pub type __ssize_t = ::std::os::raw::c_long;
711pub type __syscall_slong_t = ::std::os::raw::c_long;
712pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
713pub type __loff_t = __off64_t;
714pub type __caddr_t = *mut ::std::os::raw::c_char;
715pub type __intptr_t = ::std::os::raw::c_long;
716pub type __socklen_t = ::std::os::raw::c_uint;
717pub type __sig_atomic_t = ::std::os::raw::c_int;
718pub type u_char = __u_char;
719pub type u_short = __u_short;
720pub type u_int = __u_int;
721pub type u_long = __u_long;
722pub type quad_t = __quad_t;
723pub type u_quad_t = __u_quad_t;
724pub type fsid_t = __fsid_t;
725pub type loff_t = __loff_t;
726pub type ino_t = __ino_t;
727pub type dev_t = __dev_t;
728pub type gid_t = __gid_t;
729pub type mode_t = __mode_t;
730pub type nlink_t = __nlink_t;
731pub type uid_t = __uid_t;
732pub type off_t = __off_t;
733pub type pid_t = __pid_t;
734pub type id_t = __id_t;
735pub type daddr_t = __daddr_t;
736pub type caddr_t = __caddr_t;
737pub type key_t = __key_t;
738pub type clock_t = __clock_t;
739pub type clockid_t = __clockid_t;
740pub type time_t = __time_t;
741pub type timer_t = __timer_t;
742pub type ulong = ::std::os::raw::c_ulong;
743pub type ushort = ::std::os::raw::c_ushort;
744pub type uint = ::std::os::raw::c_uint;
745pub type u_int8_t = __uint8_t;
746pub type u_int16_t = __uint16_t;
747pub type u_int32_t = __uint32_t;
748pub type u_int64_t = __uint64_t;
749pub type register_t = ::std::os::raw::c_long;
750#[repr(C)]
751#[derive(Debug, Copy, Clone)]
752pub struct __sigset_t {
753    pub __val: [::std::os::raw::c_ulong; 16usize],
754}
755pub type sigset_t = __sigset_t;
756#[repr(C)]
757#[derive(Debug, Copy, Clone)]
758pub struct timeval {
759    pub tv_sec: __time_t,
760    pub tv_usec: __suseconds_t,
761}
762#[repr(C)]
763#[derive(Debug, Copy, Clone)]
764pub struct timespec {
765    pub tv_sec: __time_t,
766    pub tv_nsec: __syscall_slong_t,
767}
768pub type suseconds_t = __suseconds_t;
769pub type __fd_mask = ::std::os::raw::c_long;
770#[repr(C)]
771#[derive(Debug, Copy, Clone)]
772pub struct fd_set {
773    pub __fds_bits: [__fd_mask; 16usize],
774}
775pub type fd_mask = __fd_mask;
776extern "C" {
777    pub fn select(
778        __nfds: ::std::os::raw::c_int,
779        __readfds: *mut fd_set,
780        __writefds: *mut fd_set,
781        __exceptfds: *mut fd_set,
782        __timeout: *mut timeval,
783    ) -> ::std::os::raw::c_int;
784}
785extern "C" {
786    pub fn pselect(
787        __nfds: ::std::os::raw::c_int,
788        __readfds: *mut fd_set,
789        __writefds: *mut fd_set,
790        __exceptfds: *mut fd_set,
791        __timeout: *const timespec,
792        __sigmask: *const __sigset_t,
793    ) -> ::std::os::raw::c_int;
794}
795pub type blksize_t = __blksize_t;
796pub type blkcnt_t = __blkcnt_t;
797pub type fsblkcnt_t = __fsblkcnt_t;
798pub type fsfilcnt_t = __fsfilcnt_t;
799#[repr(C)]
800#[derive(Copy, Clone)]
801pub union __atomic_wide_counter {
802    pub __value64: ::std::os::raw::c_ulonglong,
803    pub __value32: __atomic_wide_counter__bindgen_ty_1,
804}
805#[repr(C)]
806#[derive(Debug, Copy, Clone)]
807pub struct __atomic_wide_counter__bindgen_ty_1 {
808    pub __low: ::std::os::raw::c_uint,
809    pub __high: ::std::os::raw::c_uint,
810}
811#[repr(C)]
812#[derive(Debug, Copy, Clone)]
813pub struct __pthread_internal_list {
814    pub __prev: *mut __pthread_internal_list,
815    pub __next: *mut __pthread_internal_list,
816}
817pub type __pthread_list_t = __pthread_internal_list;
818#[repr(C)]
819#[derive(Debug, Copy, Clone)]
820pub struct __pthread_internal_slist {
821    pub __next: *mut __pthread_internal_slist,
822}
823pub type __pthread_slist_t = __pthread_internal_slist;
824#[repr(C)]
825#[derive(Debug, Copy, Clone)]
826pub struct __pthread_mutex_s {
827    pub __lock: ::std::os::raw::c_int,
828    pub __count: ::std::os::raw::c_uint,
829    pub __owner: ::std::os::raw::c_int,
830    pub __nusers: ::std::os::raw::c_uint,
831    pub __kind: ::std::os::raw::c_int,
832    pub __spins: ::std::os::raw::c_short,
833    pub __elision: ::std::os::raw::c_short,
834    pub __list: __pthread_list_t,
835}
836#[repr(C)]
837#[derive(Debug, Copy, Clone)]
838pub struct __pthread_rwlock_arch_t {
839    pub __readers: ::std::os::raw::c_uint,
840    pub __writers: ::std::os::raw::c_uint,
841    pub __wrphase_futex: ::std::os::raw::c_uint,
842    pub __writers_futex: ::std::os::raw::c_uint,
843    pub __pad3: ::std::os::raw::c_uint,
844    pub __pad4: ::std::os::raw::c_uint,
845    pub __cur_writer: ::std::os::raw::c_int,
846    pub __shared: ::std::os::raw::c_int,
847    pub __rwelision: ::std::os::raw::c_schar,
848    pub __pad1: [::std::os::raw::c_uchar; 7usize],
849    pub __pad2: ::std::os::raw::c_ulong,
850    pub __flags: ::std::os::raw::c_uint,
851}
852#[repr(C)]
853#[derive(Copy, Clone)]
854pub struct __pthread_cond_s {
855    pub __wseq: __atomic_wide_counter,
856    pub __g1_start: __atomic_wide_counter,
857    pub __g_refs: [::std::os::raw::c_uint; 2usize],
858    pub __g_size: [::std::os::raw::c_uint; 2usize],
859    pub __g1_orig_size: ::std::os::raw::c_uint,
860    pub __wrefs: ::std::os::raw::c_uint,
861    pub __g_signals: [::std::os::raw::c_uint; 2usize],
862}
863pub type __tss_t = ::std::os::raw::c_uint;
864pub type __thrd_t = ::std::os::raw::c_ulong;
865#[repr(C)]
866#[derive(Debug, Copy, Clone)]
867pub struct __once_flag {
868    pub __data: ::std::os::raw::c_int,
869}
870pub type pthread_t = ::std::os::raw::c_ulong;
871#[repr(C)]
872#[derive(Copy, Clone)]
873pub union pthread_mutexattr_t {
874    pub __size: [::std::os::raw::c_char; 4usize],
875    pub __align: ::std::os::raw::c_int,
876}
877#[repr(C)]
878#[derive(Copy, Clone)]
879pub union pthread_condattr_t {
880    pub __size: [::std::os::raw::c_char; 4usize],
881    pub __align: ::std::os::raw::c_int,
882}
883pub type pthread_key_t = ::std::os::raw::c_uint;
884pub type pthread_once_t = ::std::os::raw::c_int;
885#[repr(C)]
886#[derive(Copy, Clone)]
887pub union pthread_attr_t {
888    pub __size: [::std::os::raw::c_char; 56usize],
889    pub __align: ::std::os::raw::c_long,
890}
891#[repr(C)]
892#[derive(Copy, Clone)]
893pub union pthread_mutex_t {
894    pub __data: __pthread_mutex_s,
895    pub __size: [::std::os::raw::c_char; 40usize],
896    pub __align: ::std::os::raw::c_long,
897}
898#[repr(C)]
899#[derive(Copy, Clone)]
900pub union pthread_cond_t {
901    pub __data: __pthread_cond_s,
902    pub __size: [::std::os::raw::c_char; 48usize],
903    pub __align: ::std::os::raw::c_longlong,
904}
905#[repr(C)]
906#[derive(Copy, Clone)]
907pub union pthread_rwlock_t {
908    pub __data: __pthread_rwlock_arch_t,
909    pub __size: [::std::os::raw::c_char; 56usize],
910    pub __align: ::std::os::raw::c_long,
911}
912#[repr(C)]
913#[derive(Copy, Clone)]
914pub union pthread_rwlockattr_t {
915    pub __size: [::std::os::raw::c_char; 8usize],
916    pub __align: ::std::os::raw::c_long,
917}
918pub type pthread_spinlock_t = ::std::os::raw::c_int;
919#[repr(C)]
920#[derive(Copy, Clone)]
921pub union pthread_barrier_t {
922    pub __size: [::std::os::raw::c_char; 32usize],
923    pub __align: ::std::os::raw::c_long,
924}
925#[repr(C)]
926#[derive(Copy, Clone)]
927pub union pthread_barrierattr_t {
928    pub __size: [::std::os::raw::c_char; 4usize],
929    pub __align: ::std::os::raw::c_int,
930}
931extern "C" {
932    pub fn random() -> ::std::os::raw::c_long;
933}
934extern "C" {
935    pub fn srandom(__seed: ::std::os::raw::c_uint);
936}
937extern "C" {
938    pub fn initstate(
939        __seed: ::std::os::raw::c_uint,
940        __statebuf: *mut ::std::os::raw::c_char,
941        __statelen: usize,
942    ) -> *mut ::std::os::raw::c_char;
943}
944extern "C" {
945    pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
946}
947#[repr(C)]
948#[derive(Debug, Copy, Clone)]
949pub struct random_data {
950    pub fptr: *mut i32,
951    pub rptr: *mut i32,
952    pub state: *mut i32,
953    pub rand_type: ::std::os::raw::c_int,
954    pub rand_deg: ::std::os::raw::c_int,
955    pub rand_sep: ::std::os::raw::c_int,
956    pub end_ptr: *mut i32,
957}
958extern "C" {
959    pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
960}
961extern "C" {
962    pub fn srandom_r(
963        __seed: ::std::os::raw::c_uint,
964        __buf: *mut random_data,
965    ) -> ::std::os::raw::c_int;
966}
967extern "C" {
968    pub fn initstate_r(
969        __seed: ::std::os::raw::c_uint,
970        __statebuf: *mut ::std::os::raw::c_char,
971        __statelen: usize,
972        __buf: *mut random_data,
973    ) -> ::std::os::raw::c_int;
974}
975extern "C" {
976    pub fn setstate_r(
977        __statebuf: *mut ::std::os::raw::c_char,
978        __buf: *mut random_data,
979    ) -> ::std::os::raw::c_int;
980}
981extern "C" {
982    pub fn rand() -> ::std::os::raw::c_int;
983}
984extern "C" {
985    pub fn srand(__seed: ::std::os::raw::c_uint);
986}
987extern "C" {
988    pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
989}
990extern "C" {
991    pub fn drand48() -> f64;
992}
993extern "C" {
994    pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
995}
996extern "C" {
997    pub fn lrand48() -> ::std::os::raw::c_long;
998}
999extern "C" {
1000    pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
1001}
1002extern "C" {
1003    pub fn mrand48() -> ::std::os::raw::c_long;
1004}
1005extern "C" {
1006    pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
1007}
1008extern "C" {
1009    pub fn srand48(__seedval: ::std::os::raw::c_long);
1010}
1011extern "C" {
1012    pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
1013}
1014extern "C" {
1015    pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
1016}
1017#[repr(C)]
1018#[derive(Debug, Copy, Clone)]
1019pub struct drand48_data {
1020    pub __x: [::std::os::raw::c_ushort; 3usize],
1021    pub __old_x: [::std::os::raw::c_ushort; 3usize],
1022    pub __c: ::std::os::raw::c_ushort,
1023    pub __init: ::std::os::raw::c_ushort,
1024    pub __a: ::std::os::raw::c_ulonglong,
1025}
1026extern "C" {
1027    pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
1028}
1029extern "C" {
1030    pub fn erand48_r(
1031        __xsubi: *mut ::std::os::raw::c_ushort,
1032        __buffer: *mut drand48_data,
1033        __result: *mut f64,
1034    ) -> ::std::os::raw::c_int;
1035}
1036extern "C" {
1037    pub fn lrand48_r(
1038        __buffer: *mut drand48_data,
1039        __result: *mut ::std::os::raw::c_long,
1040    ) -> ::std::os::raw::c_int;
1041}
1042extern "C" {
1043    pub fn nrand48_r(
1044        __xsubi: *mut ::std::os::raw::c_ushort,
1045        __buffer: *mut drand48_data,
1046        __result: *mut ::std::os::raw::c_long,
1047    ) -> ::std::os::raw::c_int;
1048}
1049extern "C" {
1050    pub fn mrand48_r(
1051        __buffer: *mut drand48_data,
1052        __result: *mut ::std::os::raw::c_long,
1053    ) -> ::std::os::raw::c_int;
1054}
1055extern "C" {
1056    pub fn jrand48_r(
1057        __xsubi: *mut ::std::os::raw::c_ushort,
1058        __buffer: *mut drand48_data,
1059        __result: *mut ::std::os::raw::c_long,
1060    ) -> ::std::os::raw::c_int;
1061}
1062extern "C" {
1063    pub fn srand48_r(
1064        __seedval: ::std::os::raw::c_long,
1065        __buffer: *mut drand48_data,
1066    ) -> ::std::os::raw::c_int;
1067}
1068extern "C" {
1069    pub fn seed48_r(
1070        __seed16v: *mut ::std::os::raw::c_ushort,
1071        __buffer: *mut drand48_data,
1072    ) -> ::std::os::raw::c_int;
1073}
1074extern "C" {
1075    pub fn lcong48_r(
1076        __param: *mut ::std::os::raw::c_ushort,
1077        __buffer: *mut drand48_data,
1078    ) -> ::std::os::raw::c_int;
1079}
1080extern "C" {
1081    pub fn arc4random() -> __uint32_t;
1082}
1083extern "C" {
1084    pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __size: usize);
1085}
1086extern "C" {
1087    pub fn arc4random_uniform(__upper_bound: __uint32_t) -> __uint32_t;
1088}
1089extern "C" {
1090    pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
1091}
1092extern "C" {
1093    pub fn calloc(
1094        __nmemb: ::std::os::raw::c_ulong,
1095        __size: ::std::os::raw::c_ulong,
1096    ) -> *mut ::std::os::raw::c_void;
1097}
1098extern "C" {
1099    pub fn realloc(
1100        __ptr: *mut ::std::os::raw::c_void,
1101        __size: ::std::os::raw::c_ulong,
1102    ) -> *mut ::std::os::raw::c_void;
1103}
1104extern "C" {
1105    pub fn free(__ptr: *mut ::std::os::raw::c_void);
1106}
1107extern "C" {
1108    pub fn reallocarray(
1109        __ptr: *mut ::std::os::raw::c_void,
1110        __nmemb: usize,
1111        __size: usize,
1112    ) -> *mut ::std::os::raw::c_void;
1113}
1114extern "C" {
1115    pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
1116}
1117extern "C" {
1118    pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
1119}
1120extern "C" {
1121    pub fn posix_memalign(
1122        __memptr: *mut *mut ::std::os::raw::c_void,
1123        __alignment: usize,
1124        __size: usize,
1125    ) -> ::std::os::raw::c_int;
1126}
1127extern "C" {
1128    pub fn aligned_alloc(
1129        __alignment: ::std::os::raw::c_ulong,
1130        __size: ::std::os::raw::c_ulong,
1131    ) -> *mut ::std::os::raw::c_void;
1132}
1133extern "C" {
1134    pub fn abort() -> !;
1135}
1136extern "C" {
1137    pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
1138}
1139extern "C" {
1140    pub fn at_quick_exit(
1141        __func: ::std::option::Option<unsafe extern "C" fn()>,
1142    ) -> ::std::os::raw::c_int;
1143}
1144extern "C" {
1145    pub fn on_exit(
1146        __func: ::std::option::Option<
1147            unsafe extern "C" fn(
1148                __status: ::std::os::raw::c_int,
1149                __arg: *mut ::std::os::raw::c_void,
1150            ),
1151        >,
1152        __arg: *mut ::std::os::raw::c_void,
1153    ) -> ::std::os::raw::c_int;
1154}
1155extern "C" {
1156    pub fn exit(__status: ::std::os::raw::c_int) -> !;
1157}
1158extern "C" {
1159    pub fn quick_exit(__status: ::std::os::raw::c_int) -> !;
1160}
1161extern "C" {
1162    pub fn _Exit(__status: ::std::os::raw::c_int) -> !;
1163}
1164extern "C" {
1165    pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1166}
1167extern "C" {
1168    pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1169}
1170extern "C" {
1171    pub fn setenv(
1172        __name: *const ::std::os::raw::c_char,
1173        __value: *const ::std::os::raw::c_char,
1174        __replace: ::std::os::raw::c_int,
1175    ) -> ::std::os::raw::c_int;
1176}
1177extern "C" {
1178    pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1179}
1180extern "C" {
1181    pub fn clearenv() -> ::std::os::raw::c_int;
1182}
1183extern "C" {
1184    pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1185}
1186extern "C" {
1187    pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1188}
1189extern "C" {
1190    pub fn mkstemps(
1191        __template: *mut ::std::os::raw::c_char,
1192        __suffixlen: ::std::os::raw::c_int,
1193    ) -> ::std::os::raw::c_int;
1194}
1195extern "C" {
1196    pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1197}
1198extern "C" {
1199    pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1200}
1201extern "C" {
1202    pub fn realpath(
1203        __name: *const ::std::os::raw::c_char,
1204        __resolved: *mut ::std::os::raw::c_char,
1205    ) -> *mut ::std::os::raw::c_char;
1206}
1207pub type __compar_fn_t = ::std::option::Option<
1208    unsafe extern "C" fn(
1209        arg1: *const ::std::os::raw::c_void,
1210        arg2: *const ::std::os::raw::c_void,
1211    ) -> ::std::os::raw::c_int,
1212>;
1213extern "C" {
1214    pub fn bsearch(
1215        __key: *const ::std::os::raw::c_void,
1216        __base: *const ::std::os::raw::c_void,
1217        __nmemb: usize,
1218        __size: usize,
1219        __compar: __compar_fn_t,
1220    ) -> *mut ::std::os::raw::c_void;
1221}
1222extern "C" {
1223    pub fn qsort(
1224        __base: *mut ::std::os::raw::c_void,
1225        __nmemb: usize,
1226        __size: usize,
1227        __compar: __compar_fn_t,
1228    );
1229}
1230extern "C" {
1231    pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1232}
1233extern "C" {
1234    pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
1235}
1236extern "C" {
1237    pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
1238}
1239extern "C" {
1240    pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
1241}
1242extern "C" {
1243    pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
1244}
1245extern "C" {
1246    pub fn lldiv(
1247        __numer: ::std::os::raw::c_longlong,
1248        __denom: ::std::os::raw::c_longlong,
1249    ) -> lldiv_t;
1250}
1251extern "C" {
1252    pub fn ecvt(
1253        __value: f64,
1254        __ndigit: ::std::os::raw::c_int,
1255        __decpt: *mut ::std::os::raw::c_int,
1256        __sign: *mut ::std::os::raw::c_int,
1257    ) -> *mut ::std::os::raw::c_char;
1258}
1259extern "C" {
1260    pub fn fcvt(
1261        __value: f64,
1262        __ndigit: ::std::os::raw::c_int,
1263        __decpt: *mut ::std::os::raw::c_int,
1264        __sign: *mut ::std::os::raw::c_int,
1265    ) -> *mut ::std::os::raw::c_char;
1266}
1267extern "C" {
1268    pub fn gcvt(
1269        __value: f64,
1270        __ndigit: ::std::os::raw::c_int,
1271        __buf: *mut ::std::os::raw::c_char,
1272    ) -> *mut ::std::os::raw::c_char;
1273}
1274extern "C" {
1275    pub fn qecvt(
1276        __value: u128,
1277        __ndigit: ::std::os::raw::c_int,
1278        __decpt: *mut ::std::os::raw::c_int,
1279        __sign: *mut ::std::os::raw::c_int,
1280    ) -> *mut ::std::os::raw::c_char;
1281}
1282extern "C" {
1283    pub fn qfcvt(
1284        __value: u128,
1285        __ndigit: ::std::os::raw::c_int,
1286        __decpt: *mut ::std::os::raw::c_int,
1287        __sign: *mut ::std::os::raw::c_int,
1288    ) -> *mut ::std::os::raw::c_char;
1289}
1290extern "C" {
1291    pub fn qgcvt(
1292        __value: u128,
1293        __ndigit: ::std::os::raw::c_int,
1294        __buf: *mut ::std::os::raw::c_char,
1295    ) -> *mut ::std::os::raw::c_char;
1296}
1297extern "C" {
1298    pub fn ecvt_r(
1299        __value: f64,
1300        __ndigit: ::std::os::raw::c_int,
1301        __decpt: *mut ::std::os::raw::c_int,
1302        __sign: *mut ::std::os::raw::c_int,
1303        __buf: *mut ::std::os::raw::c_char,
1304        __len: usize,
1305    ) -> ::std::os::raw::c_int;
1306}
1307extern "C" {
1308    pub fn fcvt_r(
1309        __value: f64,
1310        __ndigit: ::std::os::raw::c_int,
1311        __decpt: *mut ::std::os::raw::c_int,
1312        __sign: *mut ::std::os::raw::c_int,
1313        __buf: *mut ::std::os::raw::c_char,
1314        __len: usize,
1315    ) -> ::std::os::raw::c_int;
1316}
1317extern "C" {
1318    pub fn qecvt_r(
1319        __value: u128,
1320        __ndigit: ::std::os::raw::c_int,
1321        __decpt: *mut ::std::os::raw::c_int,
1322        __sign: *mut ::std::os::raw::c_int,
1323        __buf: *mut ::std::os::raw::c_char,
1324        __len: usize,
1325    ) -> ::std::os::raw::c_int;
1326}
1327extern "C" {
1328    pub fn qfcvt_r(
1329        __value: u128,
1330        __ndigit: ::std::os::raw::c_int,
1331        __decpt: *mut ::std::os::raw::c_int,
1332        __sign: *mut ::std::os::raw::c_int,
1333        __buf: *mut ::std::os::raw::c_char,
1334        __len: usize,
1335    ) -> ::std::os::raw::c_int;
1336}
1337extern "C" {
1338    pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
1339}
1340extern "C" {
1341    pub fn mbtowc(
1342        __pwc: *mut wchar_t,
1343        __s: *const ::std::os::raw::c_char,
1344        __n: usize,
1345    ) -> ::std::os::raw::c_int;
1346}
1347extern "C" {
1348    pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
1349}
1350extern "C" {
1351    pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
1352}
1353extern "C" {
1354    pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
1355}
1356extern "C" {
1357    pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1358}
1359extern "C" {
1360    pub fn getsubopt(
1361        __optionp: *mut *mut ::std::os::raw::c_char,
1362        __tokens: *const *mut ::std::os::raw::c_char,
1363        __valuep: *mut *mut ::std::os::raw::c_char,
1364    ) -> ::std::os::raw::c_int;
1365}
1366extern "C" {
1367    pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
1368        -> ::std::os::raw::c_int;
1369}
1370#[doc = "< Success"]
1371pub const hiprtcResult_HIPRTC_SUCCESS: hiprtcResult = 0;
1372#[doc = "< Out of memory"]
1373pub const hiprtcResult_HIPRTC_ERROR_OUT_OF_MEMORY: hiprtcResult = 1;
1374#[doc = "< Failed to create program"]
1375pub const hiprtcResult_HIPRTC_ERROR_PROGRAM_CREATION_FAILURE: hiprtcResult = 2;
1376#[doc = "< Invalid input"]
1377pub const hiprtcResult_HIPRTC_ERROR_INVALID_INPUT: hiprtcResult = 3;
1378#[doc = "< Invalid program"]
1379pub const hiprtcResult_HIPRTC_ERROR_INVALID_PROGRAM: hiprtcResult = 4;
1380#[doc = "< Invalid option"]
1381pub const hiprtcResult_HIPRTC_ERROR_INVALID_OPTION: hiprtcResult = 5;
1382#[doc = "< Compilation error"]
1383pub const hiprtcResult_HIPRTC_ERROR_COMPILATION: hiprtcResult = 6;
1384#[doc = "< Failed in builtin operation"]
1385pub const hiprtcResult_HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE: hiprtcResult = 7;
1386#[doc = "< No name expression after compilation"]
1387pub const hiprtcResult_HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION: hiprtcResult = 8;
1388#[doc = "< No lowered names before compilation"]
1389pub const hiprtcResult_HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION: hiprtcResult = 9;
1390#[doc = "< Invalid name expression"]
1391pub const hiprtcResult_HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID: hiprtcResult = 10;
1392#[doc = "< Internal error"]
1393pub const hiprtcResult_HIPRTC_ERROR_INTERNAL_ERROR: hiprtcResult = 11;
1394#[doc = "< Error in linking"]
1395pub const hiprtcResult_HIPRTC_ERROR_LINKING: hiprtcResult = 100;
1396#[doc = " @addtogroup GlobalDefs\n @{\n\n/\n/**\n hiprtc error code"]
1397pub type hiprtcResult = ::std::os::raw::c_uint;
1398#[repr(C)]
1399#[derive(Debug, Copy, Clone)]
1400pub struct ihiprtcLinkState {
1401    _unused: [u8; 0],
1402}
1403#[doc = "  hiprtc link state\n"]
1404pub type hiprtcLinkState = *mut ihiprtcLinkState;
1405extern "C" {
1406    #[doc = "  @ingroup Runtime\n\n @brief Returns text string message to explain the error which occurred\n\n @param [in] result  code to convert to string.\n @returns  const char pointer to the NULL-terminated error string\n\n @warning In HIP, this function returns the name of the error,\n if the hiprtc result is defined, it will return \"Invalid HIPRTC error code\"\n\n @see hiprtcResult"]
1407    pub fn hiprtcGetErrorString(result: hiprtcResult) -> *const ::std::os::raw::c_char;
1408}
1409extern "C" {
1410    #[doc = " @ingroup Runtime\n @brief Sets the parameters as major and minor version.\n\n @param [out] major  HIP Runtime Compilation major version.\n @param [out] minor  HIP Runtime Compilation minor version.\n\n @returns #HIPRTC_ERROR_INVALID_INPUT, #HIPRTC_SUCCESS\n"]
1411    pub fn hiprtcVersion(
1412        major: *mut ::std::os::raw::c_int,
1413        minor: *mut ::std::os::raw::c_int,
1414    ) -> hiprtcResult;
1415}
1416#[repr(C)]
1417#[derive(Debug, Copy, Clone)]
1418pub struct _hiprtcProgram {
1419    _unused: [u8; 0],
1420}
1421#[doc = "  hiprtc program\n"]
1422pub type hiprtcProgram = *mut _hiprtcProgram;
1423extern "C" {
1424    #[doc = " @ingroup Runtime\n @brief Adds the given name exprssion to the runtime compilation program.\n\n @param [in] prog  runtime compilation program instance.\n @param [in] name_expression  const char pointer to the name expression.\n @returns  #HIPRTC_SUCCESS\n\n If const char pointer is NULL, it will return #HIPRTC_ERROR_INVALID_INPUT.\n\n @see hiprtcResult"]
1425    pub fn hiprtcAddNameExpression(
1426        prog: hiprtcProgram,
1427        name_expression: *const ::std::os::raw::c_char,
1428    ) -> hiprtcResult;
1429}
1430extern "C" {
1431    #[doc = " @ingroup Runtime\n @brief Compiles the given runtime compilation program.\n\n @param [in] prog  runtime compilation program instance.\n @param [in] numOptions  number of compiler options.\n @param [in] options  compiler options as const array of strins.\n @returns #HIPRTC_SUCCESS\n\n If the compiler failed to build the runtime compilation program,\n it will return #HIPRTC_ERROR_COMPILATION.\n\n @see hiprtcResult"]
1432    pub fn hiprtcCompileProgram(
1433        prog: hiprtcProgram,
1434        numOptions: ::std::os::raw::c_int,
1435        options: *mut *const ::std::os::raw::c_char,
1436    ) -> hiprtcResult;
1437}
1438extern "C" {
1439    #[doc = " @ingroup Runtime\n @brief Creates an instance of hiprtcProgram with the given input parameters,\n and sets the output hiprtcProgram prog with it.\n\n @param [in, out] prog  runtime compilation program instance.\n @param [in] src  const char pointer to the program source.\n @param [in] name  const char pointer to the program name.\n @param [in] numHeaders  number of headers.\n @param [in] headers  array of strings pointing to headers.\n @param [in] includeNames  array of strings pointing to names included in program source.\n @returns #HIPRTC_SUCCESS\n\n Any invalide input parameter, it will return #HIPRTC_ERROR_INVALID_INPUT\n or #HIPRTC_ERROR_INVALID_PROGRAM.\n\n If failed to create the program, it will return #HIPRTC_ERROR_PROGRAM_CREATION_FAILURE.\n\n @see hiprtcResult"]
1440    pub fn hiprtcCreateProgram(
1441        prog: *mut hiprtcProgram,
1442        src: *const ::std::os::raw::c_char,
1443        name: *const ::std::os::raw::c_char,
1444        numHeaders: ::std::os::raw::c_int,
1445        headers: *mut *const ::std::os::raw::c_char,
1446        includeNames: *mut *const ::std::os::raw::c_char,
1447    ) -> hiprtcResult;
1448}
1449extern "C" {
1450    #[doc = " @brief Destroys an instance of given hiprtcProgram.\n @ingroup Runtime\n @param [in] prog  runtime compilation program instance.\n @returns #HIPRTC_SUCCESS\n\n If prog is NULL, it will return #HIPRTC_ERROR_INVALID_INPUT.\n\n @see hiprtcResult"]
1451    pub fn hiprtcDestroyProgram(prog: *mut hiprtcProgram) -> hiprtcResult;
1452}
1453extern "C" {
1454    #[doc = " @brief Gets the lowered (mangled) name from an instance of hiprtcProgram with the given input parameters,\n and sets the output lowered_name with it.\n @ingroup Runtime\n @param [in] prog  runtime compilation program instance.\n @param [in] name_expression  const char pointer to the name expression.\n @param [in, out] lowered_name  const char array to the lowered (mangled) name.\n @returns #HIPRTC_SUCCESS\n\n If any invalide nullptr input parameters, it will return #HIPRTC_ERROR_INVALID_INPUT\n\n If name_expression is not found, it will return #HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID\n\n If failed to get lowered_name from the program, it will return #HIPRTC_ERROR_COMPILATION.\n\n @see hiprtcResult"]
1455    pub fn hiprtcGetLoweredName(
1456        prog: hiprtcProgram,
1457        name_expression: *const ::std::os::raw::c_char,
1458        lowered_name: *mut *const ::std::os::raw::c_char,
1459    ) -> hiprtcResult;
1460}
1461extern "C" {
1462    #[doc = " @brief Gets the log generated by the runtime compilation program instance.\n @ingroup Runtime\n @param [in] prog  runtime compilation program instance.\n @param [out] log  memory pointer to the generated log.\n @returns #HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1463    pub fn hiprtcGetProgramLog(
1464        prog: hiprtcProgram,
1465        log: *mut ::std::os::raw::c_char,
1466    ) -> hiprtcResult;
1467}
1468extern "C" {
1469    #[doc = " @brief Gets the size of log generated by the runtime compilation program instance.\n\n @param [in] prog  runtime compilation program instance.\n @param [out] logSizeRet  size of generated log.\n @returns #HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1470    pub fn hiprtcGetProgramLogSize(prog: hiprtcProgram, logSizeRet: *mut usize) -> hiprtcResult;
1471}
1472extern "C" {
1473    #[doc = " @brief Gets the pointer of compilation binary by the runtime compilation program instance.\n @ingroup Runtime\n @param [in] prog  runtime compilation program instance.\n @param [out] code  char pointer to binary.\n @returns #HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1474    pub fn hiprtcGetCode(prog: hiprtcProgram, code: *mut ::std::os::raw::c_char) -> hiprtcResult;
1475}
1476extern "C" {
1477    #[doc = " @brief Gets the size of compilation binary by the runtime compilation program instance.\n @ingroup Runtime\n @param [in] prog  runtime compilation program instance.\n @param [out] codeSizeRet  the size of binary.\n @returns #HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1478    pub fn hiprtcGetCodeSize(prog: hiprtcProgram, codeSizeRet: *mut usize) -> hiprtcResult;
1479}
1480extern "C" {
1481    #[doc = " @brief Gets the pointer of compiled bitcode by the runtime compilation program instance.\n\n @param [in] prog  runtime compilation program instance.\n @param [out] bitcode  char pointer to bitcode.\n @return HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1482    pub fn hiprtcGetBitcode(
1483        prog: hiprtcProgram,
1484        bitcode: *mut ::std::os::raw::c_char,
1485    ) -> hiprtcResult;
1486}
1487extern "C" {
1488    #[doc = " @brief Gets the size of compiled bitcode by the runtime compilation program instance.\n @ingroup Runtime\n\n @param [in] prog  runtime compilation program instance.\n @param [out] bitcode_size  the size of bitcode.\n @returns #HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1489    pub fn hiprtcGetBitcodeSize(prog: hiprtcProgram, bitcode_size: *mut usize) -> hiprtcResult;
1490}
1491extern "C" {
1492    #[doc = " @brief Creates the link instance via hiprtc APIs.\n @ingroup Runtime\n @param [in] num_options  Number of options\n @param [in] option_ptr  Array of options\n @param [in] option_vals_pptr  Array of option values cast to void*\n @param [out] hip_link_state_ptr  hiprtc link state created upon success\n\n @returns #HIPRTC_SUCCESS, #HIPRTC_ERROR_INVALID_INPUT, #HIPRTC_ERROR_INVALID_OPTION\n\n @see hiprtcResult"]
1493    pub fn hiprtcLinkCreate(
1494        num_options: ::std::os::raw::c_uint,
1495        option_ptr: *mut hipJitOption,
1496        option_vals_pptr: *mut *mut ::std::os::raw::c_void,
1497        hip_link_state_ptr: *mut hiprtcLinkState,
1498    ) -> hiprtcResult;
1499}
1500extern "C" {
1501    #[doc = " @brief Adds a file with bit code to be linked with options\n @ingroup Runtime\n @param [in] hip_link_state  hiprtc link state\n @param [in] input_type  Type of the input data or bitcode\n @param [in] file_path  Path to the input file where bitcode is present\n @param [in] num_options  Size of the options\n @param [in] options_ptr  Array of options applied to this input\n @param [in] option_values  Array of option values cast to void*\n\n @returns #HIPRTC_SUCCESS\n\n If input values are invalid, it will\n @return #HIPRTC_ERROR_INVALID_INPUT\n\n @see hiprtcResult"]
1502    pub fn hiprtcLinkAddFile(
1503        hip_link_state: hiprtcLinkState,
1504        input_type: hipJitInputType,
1505        file_path: *const ::std::os::raw::c_char,
1506        num_options: ::std::os::raw::c_uint,
1507        options_ptr: *mut hipJitOption,
1508        option_values: *mut *mut ::std::os::raw::c_void,
1509    ) -> hiprtcResult;
1510}
1511extern "C" {
1512    #[doc = " @brief Completes the linking of the given program.\n @ingroup Runtime\n @param [in] hip_link_state  hiprtc link state\n @param [in] input_type  Type of the input data or bitcode\n @param [in] image  Input data which is null terminated\n @param [in] image_size  Size of the input data\n @param [in] name  Optional name for this input\n @param [in] num_options  Size of the options\n @param [in] options_ptr  Array of options applied to this input\n @param [in] option_values  Array of option values cast to void*\n\n @returns #HIPRTC_SUCCESS, #HIPRTC_ERROR_INVALID_INPUT\n\n If adding the file fails, it will\n @return #HIPRTC_ERROR_PROGRAM_CREATION_FAILURE\n\n @see hiprtcResult"]
1513    pub fn hiprtcLinkAddData(
1514        hip_link_state: hiprtcLinkState,
1515        input_type: hipJitInputType,
1516        image: *mut ::std::os::raw::c_void,
1517        image_size: usize,
1518        name: *const ::std::os::raw::c_char,
1519        num_options: ::std::os::raw::c_uint,
1520        options_ptr: *mut hipJitOption,
1521        option_values: *mut *mut ::std::os::raw::c_void,
1522    ) -> hiprtcResult;
1523}
1524extern "C" {
1525    #[doc = " @brief Completes the linking of the given program.\n @ingroup Runtime\n @param [in]  hip_link_state  hiprtc link state\n @param [out]  bin_out  Upon success, points to the output binary\n @param [out]  size_out  Size of the binary is stored (optional)\n\n @returns #HIPRTC_SUCCESS\n\n If adding the data fails, it will\n @return #HIPRTC_ERROR_LINKING\n\n @see hiprtcResult"]
1526    pub fn hiprtcLinkComplete(
1527        hip_link_state: hiprtcLinkState,
1528        bin_out: *mut *mut ::std::os::raw::c_void,
1529        size_out: *mut usize,
1530    ) -> hiprtcResult;
1531}
1532extern "C" {
1533    #[doc = " @brief Deletes the link instance via hiprtc APIs.\n @ingroup Runtime\n @param [in] hip_link_state link state instance\n\n @returns #HIPRTC_SUCCESS\n\n @see hiprtcResult"]
1534    pub fn hiprtcLinkDestroy(hip_link_state: hiprtcLinkState) -> hiprtcResult;
1535}
1536extern "C" {
1537    pub fn memcpy(
1538        __dest: *mut ::std::os::raw::c_void,
1539        __src: *const ::std::os::raw::c_void,
1540        __n: ::std::os::raw::c_ulong,
1541    ) -> *mut ::std::os::raw::c_void;
1542}
1543extern "C" {
1544    pub fn memmove(
1545        __dest: *mut ::std::os::raw::c_void,
1546        __src: *const ::std::os::raw::c_void,
1547        __n: ::std::os::raw::c_ulong,
1548    ) -> *mut ::std::os::raw::c_void;
1549}
1550extern "C" {
1551    pub fn memccpy(
1552        __dest: *mut ::std::os::raw::c_void,
1553        __src: *const ::std::os::raw::c_void,
1554        __c: ::std::os::raw::c_int,
1555        __n: ::std::os::raw::c_ulong,
1556    ) -> *mut ::std::os::raw::c_void;
1557}
1558extern "C" {
1559    pub fn memset(
1560        __s: *mut ::std::os::raw::c_void,
1561        __c: ::std::os::raw::c_int,
1562        __n: ::std::os::raw::c_ulong,
1563    ) -> *mut ::std::os::raw::c_void;
1564}
1565extern "C" {
1566    pub fn memcmp(
1567        __s1: *const ::std::os::raw::c_void,
1568        __s2: *const ::std::os::raw::c_void,
1569        __n: ::std::os::raw::c_ulong,
1570    ) -> ::std::os::raw::c_int;
1571}
1572extern "C" {
1573    pub fn __memcmpeq(
1574        __s1: *const ::std::os::raw::c_void,
1575        __s2: *const ::std::os::raw::c_void,
1576        __n: usize,
1577    ) -> ::std::os::raw::c_int;
1578}
1579extern "C" {
1580    pub fn memchr(
1581        __s: *const ::std::os::raw::c_void,
1582        __c: ::std::os::raw::c_int,
1583        __n: ::std::os::raw::c_ulong,
1584    ) -> *mut ::std::os::raw::c_void;
1585}
1586extern "C" {
1587    pub fn strcpy(
1588        __dest: *mut ::std::os::raw::c_char,
1589        __src: *const ::std::os::raw::c_char,
1590    ) -> *mut ::std::os::raw::c_char;
1591}
1592extern "C" {
1593    pub fn strncpy(
1594        __dest: *mut ::std::os::raw::c_char,
1595        __src: *const ::std::os::raw::c_char,
1596        __n: ::std::os::raw::c_ulong,
1597    ) -> *mut ::std::os::raw::c_char;
1598}
1599extern "C" {
1600    pub fn strcat(
1601        __dest: *mut ::std::os::raw::c_char,
1602        __src: *const ::std::os::raw::c_char,
1603    ) -> *mut ::std::os::raw::c_char;
1604}
1605extern "C" {
1606    pub fn strncat(
1607        __dest: *mut ::std::os::raw::c_char,
1608        __src: *const ::std::os::raw::c_char,
1609        __n: ::std::os::raw::c_ulong,
1610    ) -> *mut ::std::os::raw::c_char;
1611}
1612extern "C" {
1613    pub fn strcmp(
1614        __s1: *const ::std::os::raw::c_char,
1615        __s2: *const ::std::os::raw::c_char,
1616    ) -> ::std::os::raw::c_int;
1617}
1618extern "C" {
1619    pub fn strncmp(
1620        __s1: *const ::std::os::raw::c_char,
1621        __s2: *const ::std::os::raw::c_char,
1622        __n: ::std::os::raw::c_ulong,
1623    ) -> ::std::os::raw::c_int;
1624}
1625extern "C" {
1626    pub fn strcoll(
1627        __s1: *const ::std::os::raw::c_char,
1628        __s2: *const ::std::os::raw::c_char,
1629    ) -> ::std::os::raw::c_int;
1630}
1631extern "C" {
1632    pub fn strxfrm(
1633        __dest: *mut ::std::os::raw::c_char,
1634        __src: *const ::std::os::raw::c_char,
1635        __n: ::std::os::raw::c_ulong,
1636    ) -> ::std::os::raw::c_ulong;
1637}
1638#[repr(C)]
1639#[derive(Debug, Copy, Clone)]
1640pub struct __locale_struct {
1641    pub __locales: [*mut __locale_data; 13usize],
1642    pub __ctype_b: *const ::std::os::raw::c_ushort,
1643    pub __ctype_tolower: *const ::std::os::raw::c_int,
1644    pub __ctype_toupper: *const ::std::os::raw::c_int,
1645    pub __names: [*const ::std::os::raw::c_char; 13usize],
1646}
1647pub type __locale_t = *mut __locale_struct;
1648pub type locale_t = __locale_t;
1649extern "C" {
1650    pub fn strcoll_l(
1651        __s1: *const ::std::os::raw::c_char,
1652        __s2: *const ::std::os::raw::c_char,
1653        __l: locale_t,
1654    ) -> ::std::os::raw::c_int;
1655}
1656extern "C" {
1657    pub fn strxfrm_l(
1658        __dest: *mut ::std::os::raw::c_char,
1659        __src: *const ::std::os::raw::c_char,
1660        __n: usize,
1661        __l: locale_t,
1662    ) -> usize;
1663}
1664extern "C" {
1665    pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1666}
1667extern "C" {
1668    pub fn strndup(
1669        __string: *const ::std::os::raw::c_char,
1670        __n: ::std::os::raw::c_ulong,
1671    ) -> *mut ::std::os::raw::c_char;
1672}
1673extern "C" {
1674    pub fn strchr(
1675        __s: *const ::std::os::raw::c_char,
1676        __c: ::std::os::raw::c_int,
1677    ) -> *mut ::std::os::raw::c_char;
1678}
1679extern "C" {
1680    pub fn strrchr(
1681        __s: *const ::std::os::raw::c_char,
1682        __c: ::std::os::raw::c_int,
1683    ) -> *mut ::std::os::raw::c_char;
1684}
1685extern "C" {
1686    pub fn strchrnul(
1687        __s: *const ::std::os::raw::c_char,
1688        __c: ::std::os::raw::c_int,
1689    ) -> *mut ::std::os::raw::c_char;
1690}
1691extern "C" {
1692    pub fn strcspn(
1693        __s: *const ::std::os::raw::c_char,
1694        __reject: *const ::std::os::raw::c_char,
1695    ) -> ::std::os::raw::c_ulong;
1696}
1697extern "C" {
1698    pub fn strspn(
1699        __s: *const ::std::os::raw::c_char,
1700        __accept: *const ::std::os::raw::c_char,
1701    ) -> ::std::os::raw::c_ulong;
1702}
1703extern "C" {
1704    pub fn strpbrk(
1705        __s: *const ::std::os::raw::c_char,
1706        __accept: *const ::std::os::raw::c_char,
1707    ) -> *mut ::std::os::raw::c_char;
1708}
1709extern "C" {
1710    pub fn strstr(
1711        __haystack: *const ::std::os::raw::c_char,
1712        __needle: *const ::std::os::raw::c_char,
1713    ) -> *mut ::std::os::raw::c_char;
1714}
1715extern "C" {
1716    pub fn strtok(
1717        __s: *mut ::std::os::raw::c_char,
1718        __delim: *const ::std::os::raw::c_char,
1719    ) -> *mut ::std::os::raw::c_char;
1720}
1721extern "C" {
1722    pub fn __strtok_r(
1723        __s: *mut ::std::os::raw::c_char,
1724        __delim: *const ::std::os::raw::c_char,
1725        __save_ptr: *mut *mut ::std::os::raw::c_char,
1726    ) -> *mut ::std::os::raw::c_char;
1727}
1728extern "C" {
1729    pub fn strtok_r(
1730        __s: *mut ::std::os::raw::c_char,
1731        __delim: *const ::std::os::raw::c_char,
1732        __save_ptr: *mut *mut ::std::os::raw::c_char,
1733    ) -> *mut ::std::os::raw::c_char;
1734}
1735extern "C" {
1736    pub fn strcasestr(
1737        __haystack: *const ::std::os::raw::c_char,
1738        __needle: *const ::std::os::raw::c_char,
1739    ) -> *mut ::std::os::raw::c_char;
1740}
1741extern "C" {
1742    pub fn memmem(
1743        __haystack: *const ::std::os::raw::c_void,
1744        __haystacklen: usize,
1745        __needle: *const ::std::os::raw::c_void,
1746        __needlelen: usize,
1747    ) -> *mut ::std::os::raw::c_void;
1748}
1749extern "C" {
1750    pub fn __mempcpy(
1751        __dest: *mut ::std::os::raw::c_void,
1752        __src: *const ::std::os::raw::c_void,
1753        __n: usize,
1754    ) -> *mut ::std::os::raw::c_void;
1755}
1756extern "C" {
1757    pub fn mempcpy(
1758        __dest: *mut ::std::os::raw::c_void,
1759        __src: *const ::std::os::raw::c_void,
1760        __n: ::std::os::raw::c_ulong,
1761    ) -> *mut ::std::os::raw::c_void;
1762}
1763extern "C" {
1764    pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
1765}
1766extern "C" {
1767    pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize;
1768}
1769extern "C" {
1770    pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
1771}
1772extern "C" {
1773    #[link_name = "\u{1}__xpg_strerror_r"]
1774    pub fn strerror_r(
1775        __errnum: ::std::os::raw::c_int,
1776        __buf: *mut ::std::os::raw::c_char,
1777        __buflen: usize,
1778    ) -> ::std::os::raw::c_int;
1779}
1780extern "C" {
1781    pub fn strerror_l(
1782        __errnum: ::std::os::raw::c_int,
1783        __l: locale_t,
1784    ) -> *mut ::std::os::raw::c_char;
1785}
1786extern "C" {
1787    pub fn bcmp(
1788        __s1: *const ::std::os::raw::c_void,
1789        __s2: *const ::std::os::raw::c_void,
1790        __n: ::std::os::raw::c_ulong,
1791    ) -> ::std::os::raw::c_int;
1792}
1793extern "C" {
1794    pub fn bcopy(
1795        __src: *const ::std::os::raw::c_void,
1796        __dest: *mut ::std::os::raw::c_void,
1797        __n: ::std::os::raw::c_ulong,
1798    );
1799}
1800extern "C" {
1801    pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong);
1802}
1803extern "C" {
1804    pub fn index(
1805        __s: *const ::std::os::raw::c_char,
1806        __c: ::std::os::raw::c_int,
1807    ) -> *mut ::std::os::raw::c_char;
1808}
1809extern "C" {
1810    pub fn rindex(
1811        __s: *const ::std::os::raw::c_char,
1812        __c: ::std::os::raw::c_int,
1813    ) -> *mut ::std::os::raw::c_char;
1814}
1815extern "C" {
1816    pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1817}
1818extern "C" {
1819    pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
1820}
1821extern "C" {
1822    pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
1823}
1824extern "C" {
1825    pub fn strcasecmp(
1826        __s1: *const ::std::os::raw::c_char,
1827        __s2: *const ::std::os::raw::c_char,
1828    ) -> ::std::os::raw::c_int;
1829}
1830extern "C" {
1831    pub fn strncasecmp(
1832        __s1: *const ::std::os::raw::c_char,
1833        __s2: *const ::std::os::raw::c_char,
1834        __n: ::std::os::raw::c_ulong,
1835    ) -> ::std::os::raw::c_int;
1836}
1837extern "C" {
1838    pub fn strcasecmp_l(
1839        __s1: *const ::std::os::raw::c_char,
1840        __s2: *const ::std::os::raw::c_char,
1841        __loc: locale_t,
1842    ) -> ::std::os::raw::c_int;
1843}
1844extern "C" {
1845    pub fn strncasecmp_l(
1846        __s1: *const ::std::os::raw::c_char,
1847        __s2: *const ::std::os::raw::c_char,
1848        __n: usize,
1849        __loc: locale_t,
1850    ) -> ::std::os::raw::c_int;
1851}
1852extern "C" {
1853    pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize);
1854}
1855extern "C" {
1856    pub fn strsep(
1857        __stringp: *mut *mut ::std::os::raw::c_char,
1858        __delim: *const ::std::os::raw::c_char,
1859    ) -> *mut ::std::os::raw::c_char;
1860}
1861extern "C" {
1862    pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
1863}
1864extern "C" {
1865    pub fn __stpcpy(
1866        __dest: *mut ::std::os::raw::c_char,
1867        __src: *const ::std::os::raw::c_char,
1868    ) -> *mut ::std::os::raw::c_char;
1869}
1870extern "C" {
1871    pub fn stpcpy(
1872        __dest: *mut ::std::os::raw::c_char,
1873        __src: *const ::std::os::raw::c_char,
1874    ) -> *mut ::std::os::raw::c_char;
1875}
1876extern "C" {
1877    pub fn __stpncpy(
1878        __dest: *mut ::std::os::raw::c_char,
1879        __src: *const ::std::os::raw::c_char,
1880        __n: usize,
1881    ) -> *mut ::std::os::raw::c_char;
1882}
1883extern "C" {
1884    pub fn stpncpy(
1885        __dest: *mut ::std::os::raw::c_char,
1886        __src: *const ::std::os::raw::c_char,
1887        __n: ::std::os::raw::c_ulong,
1888    ) -> *mut ::std::os::raw::c_char;
1889}
1890extern "C" {
1891    pub fn strlcpy(
1892        __dest: *mut ::std::os::raw::c_char,
1893        __src: *const ::std::os::raw::c_char,
1894        __n: usize,
1895    ) -> usize;
1896}
1897extern "C" {
1898    pub fn strlcat(
1899        __dest: *mut ::std::os::raw::c_char,
1900        __src: *const ::std::os::raw::c_char,
1901        __n: usize,
1902    ) -> usize;
1903}
1904pub const HIP_SUCCESS: _bindgen_ty_1 = 0;
1905pub const HIP_ERROR_INVALID_VALUE: _bindgen_ty_1 = 1;
1906pub const HIP_ERROR_NOT_INITIALIZED: _bindgen_ty_1 = 2;
1907pub const HIP_ERROR_LAUNCH_OUT_OF_RESOURCES: _bindgen_ty_1 = 3;
1908pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
1909#[doc = " @defgroup GlobalDefs Global enum and defines\n @{\n\n/\n/**\n hipDeviceArch_t\n"]
1910#[repr(C)]
1911#[repr(align(4))]
1912#[derive(Debug, Copy, Clone)]
1913pub struct hipDeviceArch_t {
1914    pub _bitfield_align_1: [u8; 0],
1915    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
1916    pub __bindgen_padding_0: u8,
1917}
1918impl hipDeviceArch_t {
1919    #[inline]
1920    pub fn hasGlobalInt32Atomics(&self) -> ::std::os::raw::c_uint {
1921        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1922    }
1923    #[inline]
1924    pub fn set_hasGlobalInt32Atomics(&mut self, val: ::std::os::raw::c_uint) {
1925        unsafe {
1926            let val: u32 = ::std::mem::transmute(val);
1927            self._bitfield_1.set(0usize, 1u8, val as u64)
1928        }
1929    }
1930    #[inline]
1931    pub fn hasGlobalFloatAtomicExch(&self) -> ::std::os::raw::c_uint {
1932        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1933    }
1934    #[inline]
1935    pub fn set_hasGlobalFloatAtomicExch(&mut self, val: ::std::os::raw::c_uint) {
1936        unsafe {
1937            let val: u32 = ::std::mem::transmute(val);
1938            self._bitfield_1.set(1usize, 1u8, val as u64)
1939        }
1940    }
1941    #[inline]
1942    pub fn hasSharedInt32Atomics(&self) -> ::std::os::raw::c_uint {
1943        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1944    }
1945    #[inline]
1946    pub fn set_hasSharedInt32Atomics(&mut self, val: ::std::os::raw::c_uint) {
1947        unsafe {
1948            let val: u32 = ::std::mem::transmute(val);
1949            self._bitfield_1.set(2usize, 1u8, val as u64)
1950        }
1951    }
1952    #[inline]
1953    pub fn hasSharedFloatAtomicExch(&self) -> ::std::os::raw::c_uint {
1954        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1955    }
1956    #[inline]
1957    pub fn set_hasSharedFloatAtomicExch(&mut self, val: ::std::os::raw::c_uint) {
1958        unsafe {
1959            let val: u32 = ::std::mem::transmute(val);
1960            self._bitfield_1.set(3usize, 1u8, val as u64)
1961        }
1962    }
1963    #[inline]
1964    pub fn hasFloatAtomicAdd(&self) -> ::std::os::raw::c_uint {
1965        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1966    }
1967    #[inline]
1968    pub fn set_hasFloatAtomicAdd(&mut self, val: ::std::os::raw::c_uint) {
1969        unsafe {
1970            let val: u32 = ::std::mem::transmute(val);
1971            self._bitfield_1.set(4usize, 1u8, val as u64)
1972        }
1973    }
1974    #[inline]
1975    pub fn hasGlobalInt64Atomics(&self) -> ::std::os::raw::c_uint {
1976        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1977    }
1978    #[inline]
1979    pub fn set_hasGlobalInt64Atomics(&mut self, val: ::std::os::raw::c_uint) {
1980        unsafe {
1981            let val: u32 = ::std::mem::transmute(val);
1982            self._bitfield_1.set(5usize, 1u8, val as u64)
1983        }
1984    }
1985    #[inline]
1986    pub fn hasSharedInt64Atomics(&self) -> ::std::os::raw::c_uint {
1987        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1988    }
1989    #[inline]
1990    pub fn set_hasSharedInt64Atomics(&mut self, val: ::std::os::raw::c_uint) {
1991        unsafe {
1992            let val: u32 = ::std::mem::transmute(val);
1993            self._bitfield_1.set(6usize, 1u8, val as u64)
1994        }
1995    }
1996    #[inline]
1997    pub fn hasDoubles(&self) -> ::std::os::raw::c_uint {
1998        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1999    }
2000    #[inline]
2001    pub fn set_hasDoubles(&mut self, val: ::std::os::raw::c_uint) {
2002        unsafe {
2003            let val: u32 = ::std::mem::transmute(val);
2004            self._bitfield_1.set(7usize, 1u8, val as u64)
2005        }
2006    }
2007    #[inline]
2008    pub fn hasWarpVote(&self) -> ::std::os::raw::c_uint {
2009        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
2010    }
2011    #[inline]
2012    pub fn set_hasWarpVote(&mut self, val: ::std::os::raw::c_uint) {
2013        unsafe {
2014            let val: u32 = ::std::mem::transmute(val);
2015            self._bitfield_1.set(8usize, 1u8, val as u64)
2016        }
2017    }
2018    #[inline]
2019    pub fn hasWarpBallot(&self) -> ::std::os::raw::c_uint {
2020        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
2021    }
2022    #[inline]
2023    pub fn set_hasWarpBallot(&mut self, val: ::std::os::raw::c_uint) {
2024        unsafe {
2025            let val: u32 = ::std::mem::transmute(val);
2026            self._bitfield_1.set(9usize, 1u8, val as u64)
2027        }
2028    }
2029    #[inline]
2030    pub fn hasWarpShuffle(&self) -> ::std::os::raw::c_uint {
2031        unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
2032    }
2033    #[inline]
2034    pub fn set_hasWarpShuffle(&mut self, val: ::std::os::raw::c_uint) {
2035        unsafe {
2036            let val: u32 = ::std::mem::transmute(val);
2037            self._bitfield_1.set(10usize, 1u8, val as u64)
2038        }
2039    }
2040    #[inline]
2041    pub fn hasFunnelShift(&self) -> ::std::os::raw::c_uint {
2042        unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
2043    }
2044    #[inline]
2045    pub fn set_hasFunnelShift(&mut self, val: ::std::os::raw::c_uint) {
2046        unsafe {
2047            let val: u32 = ::std::mem::transmute(val);
2048            self._bitfield_1.set(11usize, 1u8, val as u64)
2049        }
2050    }
2051    #[inline]
2052    pub fn hasThreadFenceSystem(&self) -> ::std::os::raw::c_uint {
2053        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
2054    }
2055    #[inline]
2056    pub fn set_hasThreadFenceSystem(&mut self, val: ::std::os::raw::c_uint) {
2057        unsafe {
2058            let val: u32 = ::std::mem::transmute(val);
2059            self._bitfield_1.set(12usize, 1u8, val as u64)
2060        }
2061    }
2062    #[inline]
2063    pub fn hasSyncThreadsExt(&self) -> ::std::os::raw::c_uint {
2064        unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
2065    }
2066    #[inline]
2067    pub fn set_hasSyncThreadsExt(&mut self, val: ::std::os::raw::c_uint) {
2068        unsafe {
2069            let val: u32 = ::std::mem::transmute(val);
2070            self._bitfield_1.set(13usize, 1u8, val as u64)
2071        }
2072    }
2073    #[inline]
2074    pub fn hasSurfaceFuncs(&self) -> ::std::os::raw::c_uint {
2075        unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
2076    }
2077    #[inline]
2078    pub fn set_hasSurfaceFuncs(&mut self, val: ::std::os::raw::c_uint) {
2079        unsafe {
2080            let val: u32 = ::std::mem::transmute(val);
2081            self._bitfield_1.set(14usize, 1u8, val as u64)
2082        }
2083    }
2084    #[inline]
2085    pub fn has3dGrid(&self) -> ::std::os::raw::c_uint {
2086        unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
2087    }
2088    #[inline]
2089    pub fn set_has3dGrid(&mut self, val: ::std::os::raw::c_uint) {
2090        unsafe {
2091            let val: u32 = ::std::mem::transmute(val);
2092            self._bitfield_1.set(15usize, 1u8, val as u64)
2093        }
2094    }
2095    #[inline]
2096    pub fn hasDynamicParallelism(&self) -> ::std::os::raw::c_uint {
2097        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
2098    }
2099    #[inline]
2100    pub fn set_hasDynamicParallelism(&mut self, val: ::std::os::raw::c_uint) {
2101        unsafe {
2102            let val: u32 = ::std::mem::transmute(val);
2103            self._bitfield_1.set(16usize, 1u8, val as u64)
2104        }
2105    }
2106    #[inline]
2107    pub fn new_bitfield_1(
2108        hasGlobalInt32Atomics: ::std::os::raw::c_uint,
2109        hasGlobalFloatAtomicExch: ::std::os::raw::c_uint,
2110        hasSharedInt32Atomics: ::std::os::raw::c_uint,
2111        hasSharedFloatAtomicExch: ::std::os::raw::c_uint,
2112        hasFloatAtomicAdd: ::std::os::raw::c_uint,
2113        hasGlobalInt64Atomics: ::std::os::raw::c_uint,
2114        hasSharedInt64Atomics: ::std::os::raw::c_uint,
2115        hasDoubles: ::std::os::raw::c_uint,
2116        hasWarpVote: ::std::os::raw::c_uint,
2117        hasWarpBallot: ::std::os::raw::c_uint,
2118        hasWarpShuffle: ::std::os::raw::c_uint,
2119        hasFunnelShift: ::std::os::raw::c_uint,
2120        hasThreadFenceSystem: ::std::os::raw::c_uint,
2121        hasSyncThreadsExt: ::std::os::raw::c_uint,
2122        hasSurfaceFuncs: ::std::os::raw::c_uint,
2123        has3dGrid: ::std::os::raw::c_uint,
2124        hasDynamicParallelism: ::std::os::raw::c_uint,
2125    ) -> __BindgenBitfieldUnit<[u8; 3usize]> {
2126        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
2127        __bindgen_bitfield_unit.set(0usize, 1u8, {
2128            let hasGlobalInt32Atomics: u32 =
2129                unsafe { ::std::mem::transmute(hasGlobalInt32Atomics) };
2130            hasGlobalInt32Atomics as u64
2131        });
2132        __bindgen_bitfield_unit.set(1usize, 1u8, {
2133            let hasGlobalFloatAtomicExch: u32 =
2134                unsafe { ::std::mem::transmute(hasGlobalFloatAtomicExch) };
2135            hasGlobalFloatAtomicExch as u64
2136        });
2137        __bindgen_bitfield_unit.set(2usize, 1u8, {
2138            let hasSharedInt32Atomics: u32 =
2139                unsafe { ::std::mem::transmute(hasSharedInt32Atomics) };
2140            hasSharedInt32Atomics as u64
2141        });
2142        __bindgen_bitfield_unit.set(3usize, 1u8, {
2143            let hasSharedFloatAtomicExch: u32 =
2144                unsafe { ::std::mem::transmute(hasSharedFloatAtomicExch) };
2145            hasSharedFloatAtomicExch as u64
2146        });
2147        __bindgen_bitfield_unit.set(4usize, 1u8, {
2148            let hasFloatAtomicAdd: u32 = unsafe { ::std::mem::transmute(hasFloatAtomicAdd) };
2149            hasFloatAtomicAdd as u64
2150        });
2151        __bindgen_bitfield_unit.set(5usize, 1u8, {
2152            let hasGlobalInt64Atomics: u32 =
2153                unsafe { ::std::mem::transmute(hasGlobalInt64Atomics) };
2154            hasGlobalInt64Atomics as u64
2155        });
2156        __bindgen_bitfield_unit.set(6usize, 1u8, {
2157            let hasSharedInt64Atomics: u32 =
2158                unsafe { ::std::mem::transmute(hasSharedInt64Atomics) };
2159            hasSharedInt64Atomics as u64
2160        });
2161        __bindgen_bitfield_unit.set(7usize, 1u8, {
2162            let hasDoubles: u32 = unsafe { ::std::mem::transmute(hasDoubles) };
2163            hasDoubles as u64
2164        });
2165        __bindgen_bitfield_unit.set(8usize, 1u8, {
2166            let hasWarpVote: u32 = unsafe { ::std::mem::transmute(hasWarpVote) };
2167            hasWarpVote as u64
2168        });
2169        __bindgen_bitfield_unit.set(9usize, 1u8, {
2170            let hasWarpBallot: u32 = unsafe { ::std::mem::transmute(hasWarpBallot) };
2171            hasWarpBallot as u64
2172        });
2173        __bindgen_bitfield_unit.set(10usize, 1u8, {
2174            let hasWarpShuffle: u32 = unsafe { ::std::mem::transmute(hasWarpShuffle) };
2175            hasWarpShuffle as u64
2176        });
2177        __bindgen_bitfield_unit.set(11usize, 1u8, {
2178            let hasFunnelShift: u32 = unsafe { ::std::mem::transmute(hasFunnelShift) };
2179            hasFunnelShift as u64
2180        });
2181        __bindgen_bitfield_unit.set(12usize, 1u8, {
2182            let hasThreadFenceSystem: u32 = unsafe { ::std::mem::transmute(hasThreadFenceSystem) };
2183            hasThreadFenceSystem as u64
2184        });
2185        __bindgen_bitfield_unit.set(13usize, 1u8, {
2186            let hasSyncThreadsExt: u32 = unsafe { ::std::mem::transmute(hasSyncThreadsExt) };
2187            hasSyncThreadsExt as u64
2188        });
2189        __bindgen_bitfield_unit.set(14usize, 1u8, {
2190            let hasSurfaceFuncs: u32 = unsafe { ::std::mem::transmute(hasSurfaceFuncs) };
2191            hasSurfaceFuncs as u64
2192        });
2193        __bindgen_bitfield_unit.set(15usize, 1u8, {
2194            let has3dGrid: u32 = unsafe { ::std::mem::transmute(has3dGrid) };
2195            has3dGrid as u64
2196        });
2197        __bindgen_bitfield_unit.set(16usize, 1u8, {
2198            let hasDynamicParallelism: u32 =
2199                unsafe { ::std::mem::transmute(hasDynamicParallelism) };
2200            hasDynamicParallelism as u64
2201        });
2202        __bindgen_bitfield_unit
2203    }
2204}
2205#[repr(C)]
2206#[derive(Debug, Copy, Clone)]
2207pub struct hipUUID_t {
2208    pub bytes: [::std::os::raw::c_char; 16usize],
2209}
2210pub type hipUUID = hipUUID_t;
2211#[doc = " hipDeviceProp\n"]
2212#[repr(C)]
2213#[derive(Debug, Copy, Clone)]
2214pub struct hipDeviceProp_tR0600 {
2215    #[doc = "< Device name."]
2216    pub name: [::std::os::raw::c_char; 256usize],
2217    #[doc = "< UUID of a device"]
2218    pub uuid: hipUUID,
2219    #[doc = "< 8-byte unique identifier. Only valid on windows"]
2220    pub luid: [::std::os::raw::c_char; 8usize],
2221    #[doc = "< LUID node mask"]
2222    pub luidDeviceNodeMask: ::std::os::raw::c_uint,
2223    #[doc = "< Size of global memory region (in bytes)."]
2224    pub totalGlobalMem: usize,
2225    #[doc = "< Size of shared memory per block (in bytes)."]
2226    pub sharedMemPerBlock: usize,
2227    #[doc = "< Registers per block."]
2228    pub regsPerBlock: ::std::os::raw::c_int,
2229    #[doc = "< Warp size."]
2230    pub warpSize: ::std::os::raw::c_int,
2231    #[doc = "< Maximum pitch in bytes allowed by memory copies\n< pitched memory"]
2232    pub memPitch: usize,
2233    #[doc = "< Max work items per work group or workgroup max size."]
2234    pub maxThreadsPerBlock: ::std::os::raw::c_int,
2235    #[doc = "< Max number of threads in each dimension (XYZ) of a block."]
2236    pub maxThreadsDim: [::std::os::raw::c_int; 3usize],
2237    #[doc = "< Max grid dimensions (XYZ)."]
2238    pub maxGridSize: [::std::os::raw::c_int; 3usize],
2239    #[doc = "< Max clock frequency of the multiProcessors in khz."]
2240    pub clockRate: ::std::os::raw::c_int,
2241    #[doc = "< Size of shared constant memory region on the device\n< (in bytes)."]
2242    pub totalConstMem: usize,
2243    #[doc = "< Major compute capability.  On HCC, this is an approximation and features may\n< differ from CUDA CC.  See the arch feature flags for portable ways to query\n< feature caps."]
2244    pub major: ::std::os::raw::c_int,
2245    #[doc = "< Minor compute capability.  On HCC, this is an approximation and features may\n< differ from CUDA CC.  See the arch feature flags for portable ways to query\n< feature caps."]
2246    pub minor: ::std::os::raw::c_int,
2247    #[doc = "< Alignment requirement for textures"]
2248    pub textureAlignment: usize,
2249    #[doc = "< Pitch alignment requirement for texture references bound to"]
2250    pub texturePitchAlignment: usize,
2251    #[doc = "< Deprecated. Use asyncEngineCount instead"]
2252    pub deviceOverlap: ::std::os::raw::c_int,
2253    #[doc = "< Number of multi-processors (compute units)."]
2254    pub multiProcessorCount: ::std::os::raw::c_int,
2255    #[doc = "< Run time limit for kernels executed on the device"]
2256    pub kernelExecTimeoutEnabled: ::std::os::raw::c_int,
2257    #[doc = "< APU vs dGPU"]
2258    pub integrated: ::std::os::raw::c_int,
2259    #[doc = "< Check whether HIP can map host memory"]
2260    pub canMapHostMemory: ::std::os::raw::c_int,
2261    #[doc = "< Compute mode."]
2262    pub computeMode: ::std::os::raw::c_int,
2263    #[doc = "< Maximum number of elements in 1D images"]
2264    pub maxTexture1D: ::std::os::raw::c_int,
2265    #[doc = "< Maximum 1D mipmap texture size"]
2266    pub maxTexture1DMipmap: ::std::os::raw::c_int,
2267    #[doc = "< Maximum size for 1D textures bound to linear memory"]
2268    pub maxTexture1DLinear: ::std::os::raw::c_int,
2269    #[doc = "< Maximum dimensions (width, height) of 2D images, in image elements"]
2270    pub maxTexture2D: [::std::os::raw::c_int; 2usize],
2271    #[doc = "< Maximum number of elements in 2D array mipmap of images"]
2272    pub maxTexture2DMipmap: [::std::os::raw::c_int; 2usize],
2273    #[doc = "< Maximum 2D tex dimensions if tex are bound to pitched memory"]
2274    pub maxTexture2DLinear: [::std::os::raw::c_int; 3usize],
2275    #[doc = "< Maximum 2D tex dimensions if gather has to be performed"]
2276    pub maxTexture2DGather: [::std::os::raw::c_int; 2usize],
2277    #[doc = "< Maximum dimensions (width, height, depth) of 3D images, in image\n< elements"]
2278    pub maxTexture3D: [::std::os::raw::c_int; 3usize],
2279    #[doc = "< Maximum alternate 3D texture dims"]
2280    pub maxTexture3DAlt: [::std::os::raw::c_int; 3usize],
2281    #[doc = "< Maximum cubemap texture dims"]
2282    pub maxTextureCubemap: ::std::os::raw::c_int,
2283    #[doc = "< Maximum number of elements in 1D array images"]
2284    pub maxTexture1DLayered: [::std::os::raw::c_int; 2usize],
2285    #[doc = "< Maximum number of elements in 2D array images"]
2286    pub maxTexture2DLayered: [::std::os::raw::c_int; 3usize],
2287    #[doc = "< Maximum cubemaps layered texture dims"]
2288    pub maxTextureCubemapLayered: [::std::os::raw::c_int; 2usize],
2289    #[doc = "< Maximum 1D surface size"]
2290    pub maxSurface1D: ::std::os::raw::c_int,
2291    #[doc = "< Maximum 2D surface size"]
2292    pub maxSurface2D: [::std::os::raw::c_int; 2usize],
2293    #[doc = "< Maximum 3D surface size"]
2294    pub maxSurface3D: [::std::os::raw::c_int; 3usize],
2295    #[doc = "< Maximum 1D layered surface size"]
2296    pub maxSurface1DLayered: [::std::os::raw::c_int; 2usize],
2297    #[doc = "< Maximum 2D layared surface size"]
2298    pub maxSurface2DLayered: [::std::os::raw::c_int; 3usize],
2299    #[doc = "< Maximum cubemap surface size"]
2300    pub maxSurfaceCubemap: ::std::os::raw::c_int,
2301    #[doc = "< Maximum cubemap layered surface size"]
2302    pub maxSurfaceCubemapLayered: [::std::os::raw::c_int; 2usize],
2303    #[doc = "< Alignment requirement for surface"]
2304    pub surfaceAlignment: usize,
2305    #[doc = "< Device can possibly execute multiple kernels concurrently."]
2306    pub concurrentKernels: ::std::os::raw::c_int,
2307    #[doc = "< Device has ECC support enabled"]
2308    pub ECCEnabled: ::std::os::raw::c_int,
2309    #[doc = "< PCI Bus ID."]
2310    pub pciBusID: ::std::os::raw::c_int,
2311    #[doc = "< PCI Device ID."]
2312    pub pciDeviceID: ::std::os::raw::c_int,
2313    #[doc = "< PCI Domain ID"]
2314    pub pciDomainID: ::std::os::raw::c_int,
2315    #[doc = "< 1:If device is Tesla device using TCC driver, else 0"]
2316    pub tccDriver: ::std::os::raw::c_int,
2317    #[doc = "< Number of async engines"]
2318    pub asyncEngineCount: ::std::os::raw::c_int,
2319    #[doc = "< Does device and host share unified address space"]
2320    pub unifiedAddressing: ::std::os::raw::c_int,
2321    #[doc = "< Max global memory clock frequency in khz."]
2322    pub memoryClockRate: ::std::os::raw::c_int,
2323    #[doc = "< Global memory bus width in bits."]
2324    pub memoryBusWidth: ::std::os::raw::c_int,
2325    #[doc = "< L2 cache size."]
2326    pub l2CacheSize: ::std::os::raw::c_int,
2327    #[doc = "< Device's max L2 persisting lines in bytes"]
2328    pub persistingL2CacheMaxSize: ::std::os::raw::c_int,
2329    #[doc = "< Maximum resident threads per multi-processor."]
2330    pub maxThreadsPerMultiProcessor: ::std::os::raw::c_int,
2331    #[doc = "< Device supports stream priority"]
2332    pub streamPrioritiesSupported: ::std::os::raw::c_int,
2333    #[doc = "< Indicates globals are cached in L1"]
2334    pub globalL1CacheSupported: ::std::os::raw::c_int,
2335    #[doc = "< Locals are cahced in L1"]
2336    pub localL1CacheSupported: ::std::os::raw::c_int,
2337    #[doc = "< Amount of shared memory available per multiprocessor."]
2338    pub sharedMemPerMultiprocessor: usize,
2339    #[doc = "< registers available per multiprocessor"]
2340    pub regsPerMultiprocessor: ::std::os::raw::c_int,
2341    #[doc = "< Device supports allocating managed memory on this system"]
2342    pub managedMemory: ::std::os::raw::c_int,
2343    #[doc = "< 1 if device is on a multi-GPU board, 0 if not."]
2344    pub isMultiGpuBoard: ::std::os::raw::c_int,
2345    #[doc = "< Unique identifier for a group of devices on same multiboard GPU"]
2346    pub multiGpuBoardGroupID: ::std::os::raw::c_int,
2347    #[doc = "< Link between host and device supports native atomics"]
2348    pub hostNativeAtomicSupported: ::std::os::raw::c_int,
2349    #[doc = "< Deprecated. CUDA only."]
2350    pub singleToDoublePrecisionPerfRatio: ::std::os::raw::c_int,
2351    #[doc = "< Device supports coherently accessing pageable memory\n< without calling hipHostRegister on it"]
2352    pub pageableMemoryAccess: ::std::os::raw::c_int,
2353    #[doc = "< Device can coherently access managed memory concurrently with\n< the CPU"]
2354    pub concurrentManagedAccess: ::std::os::raw::c_int,
2355    #[doc = "< Is compute preemption supported on the device"]
2356    pub computePreemptionSupported: ::std::os::raw::c_int,
2357    #[doc = "< Device can access host registered memory with same\n< address as the host"]
2358    pub canUseHostPointerForRegisteredMem: ::std::os::raw::c_int,
2359    #[doc = "< HIP device supports cooperative launch"]
2360    pub cooperativeLaunch: ::std::os::raw::c_int,
2361    #[doc = "< HIP device supports cooperative launch on multiple\n< devices"]
2362    pub cooperativeMultiDeviceLaunch: ::std::os::raw::c_int,
2363    #[doc = "< Per device m ax shared mem per block usable by special opt in"]
2364    pub sharedMemPerBlockOptin: usize,
2365    #[doc = "< Device accesses pageable memory via the host's\n< page tables"]
2366    pub pageableMemoryAccessUsesHostPageTables: ::std::os::raw::c_int,
2367    #[doc = "< Host can directly access managed memory on the device\n< without migration"]
2368    pub directManagedMemAccessFromHost: ::std::os::raw::c_int,
2369    #[doc = "< Max number of blocks on CU"]
2370    pub maxBlocksPerMultiProcessor: ::std::os::raw::c_int,
2371    #[doc = "< Max value of access policy window"]
2372    pub accessPolicyMaxWindowSize: ::std::os::raw::c_int,
2373    #[doc = "< Shared memory reserved by driver per block"]
2374    pub reservedSharedMemPerBlock: usize,
2375    #[doc = "< Device supports hipHostRegister"]
2376    pub hostRegisterSupported: ::std::os::raw::c_int,
2377    #[doc = "< Indicates if device supports sparse hip arrays"]
2378    pub sparseHipArraySupported: ::std::os::raw::c_int,
2379    #[doc = "< Device supports using the hipHostRegisterReadOnly flag\n< with hipHostRegistger"]
2380    pub hostRegisterReadOnlySupported: ::std::os::raw::c_int,
2381    #[doc = "< Indicates external timeline semaphore support"]
2382    pub timelineSemaphoreInteropSupported: ::std::os::raw::c_int,
2383    #[doc = "< Indicates if device supports hipMallocAsync and hipMemPool APIs"]
2384    pub memoryPoolsSupported: ::std::os::raw::c_int,
2385    #[doc = "< Indicates device support of RDMA APIs"]
2386    pub gpuDirectRDMASupported: ::std::os::raw::c_int,
2387    #[doc = "< Bitmask to be interpreted according to\n< hipFlushGPUDirectRDMAWritesOptions"]
2388    pub gpuDirectRDMAFlushWritesOptions: ::std::os::raw::c_uint,
2389    #[doc = "< value of hipGPUDirectRDMAWritesOrdering"]
2390    pub gpuDirectRDMAWritesOrdering: ::std::os::raw::c_int,
2391    #[doc = "< Bitmask of handle types support with mempool based IPC"]
2392    pub memoryPoolSupportedHandleTypes: ::std::os::raw::c_uint,
2393    #[doc = "< Device supports deferred mapping HIP arrays and HIP\n< mipmapped arrays"]
2394    pub deferredMappingHipArraySupported: ::std::os::raw::c_int,
2395    #[doc = "< Device supports IPC events"]
2396    pub ipcEventSupported: ::std::os::raw::c_int,
2397    #[doc = "< Device supports cluster launch"]
2398    pub clusterLaunch: ::std::os::raw::c_int,
2399    #[doc = "< Indicates device supports unified function pointers"]
2400    pub unifiedFunctionPointers: ::std::os::raw::c_int,
2401    #[doc = "< CUDA Reserved."]
2402    pub reserved: [::std::os::raw::c_int; 63usize],
2403    #[doc = "< Reserved for adding new entries for HIP/CUDA."]
2404    pub hipReserved: [::std::os::raw::c_int; 32usize],
2405    #[doc = "< AMD GCN Arch Name. HIP Only."]
2406    pub gcnArchName: [::std::os::raw::c_char; 256usize],
2407    #[doc = "< Maximum Shared Memory Per CU. HIP Only."]
2408    pub maxSharedMemoryPerMultiProcessor: usize,
2409    #[doc = "< Frequency in khz of the timer used by the device-side \"clock*\"\n< instructions.  New for HIP."]
2410    pub clockInstructionRate: ::std::os::raw::c_int,
2411    #[doc = "< Architectural feature flags.  New for HIP."]
2412    pub arch: hipDeviceArch_t,
2413    #[doc = "< Addres of HDP_MEM_COHERENCY_FLUSH_CNTL register"]
2414    pub hdpMemFlushCntl: *mut ::std::os::raw::c_uint,
2415    #[doc = "< Addres of HDP_REG_COHERENCY_FLUSH_CNTL register"]
2416    pub hdpRegFlushCntl: *mut ::std::os::raw::c_uint,
2417    #[doc = "< HIP device supports cooperative launch on\n< multiple"]
2418    pub cooperativeMultiDeviceUnmatchedFunc: ::std::os::raw::c_int,
2419    #[doc = "< HIP device supports cooperative launch on\n< multiple"]
2420    pub cooperativeMultiDeviceUnmatchedGridDim: ::std::os::raw::c_int,
2421    #[doc = "< HIP device supports cooperative launch on\n< multiple"]
2422    pub cooperativeMultiDeviceUnmatchedBlockDim: ::std::os::raw::c_int,
2423    #[doc = "< HIP device supports cooperative launch on\n< multiple"]
2424    pub cooperativeMultiDeviceUnmatchedSharedMem: ::std::os::raw::c_int,
2425    #[doc = "< 1: if it is a large PCI bar device, else 0"]
2426    pub isLargeBar: ::std::os::raw::c_int,
2427    #[doc = "< Revision of the GPU in this device"]
2428    pub asicRevision: ::std::os::raw::c_int,
2429}
2430#[doc = "< Unregistered memory"]
2431pub const hipMemoryType_hipMemoryTypeUnregistered: hipMemoryType = 0;
2432#[doc = "< Memory is physically located on host"]
2433pub const hipMemoryType_hipMemoryTypeHost: hipMemoryType = 1;
2434#[doc = "< Memory is physically located on device. (see deviceId for\n< specific device)"]
2435pub const hipMemoryType_hipMemoryTypeDevice: hipMemoryType = 2;
2436#[doc = "< Managed memory, automaticallly managed by the unified\n< memory system\n< place holder for new values."]
2437pub const hipMemoryType_hipMemoryTypeManaged: hipMemoryType = 3;
2438#[doc = "< Array memory, physically located on device. (see deviceId for\n< specific device)"]
2439pub const hipMemoryType_hipMemoryTypeArray: hipMemoryType = 10;
2440#[doc = "< unified address space"]
2441pub const hipMemoryType_hipMemoryTypeUnified: hipMemoryType = 11;
2442#[doc = " hipMemoryType (for pointer attributes)\n\n @note hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.\n"]
2443pub type hipMemoryType = ::std::os::raw::c_uint;
2444#[doc = " Pointer attributes"]
2445#[repr(C)]
2446#[derive(Debug, Copy, Clone)]
2447pub struct hipPointerAttribute_t {
2448    pub type_: hipMemoryType,
2449    pub device: ::std::os::raw::c_int,
2450    pub devicePointer: *mut ::std::os::raw::c_void,
2451    pub hostPointer: *mut ::std::os::raw::c_void,
2452    pub isManaged: ::std::os::raw::c_int,
2453    pub allocationFlags: ::std::os::raw::c_uint,
2454}
2455#[doc = "< Successful completion."]
2456pub const hipError_t_hipSuccess: hipError_t = 0;
2457#[doc = "< One or more of the parameters passed to the API call is NULL\n< or not in an acceptable range."]
2458pub const hipError_t_hipErrorInvalidValue: hipError_t = 1;
2459#[doc = "< out of memory range."]
2460pub const hipError_t_hipErrorOutOfMemory: hipError_t = 2;
2461#[doc = "< Memory allocation error."]
2462pub const hipError_t_hipErrorMemoryAllocation: hipError_t = 2;
2463#[doc = "< Invalid not initialized"]
2464pub const hipError_t_hipErrorNotInitialized: hipError_t = 3;
2465pub const hipError_t_hipErrorInitializationError: hipError_t = 3;
2466#[doc = "< Deinitialized"]
2467pub const hipError_t_hipErrorDeinitialized: hipError_t = 4;
2468pub const hipError_t_hipErrorProfilerDisabled: hipError_t = 5;
2469pub const hipError_t_hipErrorProfilerNotInitialized: hipError_t = 6;
2470pub const hipError_t_hipErrorProfilerAlreadyStarted: hipError_t = 7;
2471pub const hipError_t_hipErrorProfilerAlreadyStopped: hipError_t = 8;
2472#[doc = "< Invalide configuration"]
2473pub const hipError_t_hipErrorInvalidConfiguration: hipError_t = 9;
2474#[doc = "< Invalid pitch value"]
2475pub const hipError_t_hipErrorInvalidPitchValue: hipError_t = 12;
2476#[doc = "< Invalid symbol"]
2477pub const hipError_t_hipErrorInvalidSymbol: hipError_t = 13;
2478#[doc = "< Invalid Device Pointer"]
2479pub const hipError_t_hipErrorInvalidDevicePointer: hipError_t = 17;
2480#[doc = "< Invalid memory copy direction"]
2481pub const hipError_t_hipErrorInvalidMemcpyDirection: hipError_t = 21;
2482pub const hipError_t_hipErrorInsufficientDriver: hipError_t = 35;
2483pub const hipError_t_hipErrorMissingConfiguration: hipError_t = 52;
2484pub const hipError_t_hipErrorPriorLaunchFailure: hipError_t = 53;
2485#[doc = "< Invalid device function"]
2486pub const hipError_t_hipErrorInvalidDeviceFunction: hipError_t = 98;
2487#[doc = "< Call to hipGetDeviceCount returned 0 devices"]
2488pub const hipError_t_hipErrorNoDevice: hipError_t = 100;
2489#[doc = "< DeviceID must be in range from 0 to compute-devices."]
2490pub const hipError_t_hipErrorInvalidDevice: hipError_t = 101;
2491#[doc = "< Invalid image"]
2492pub const hipError_t_hipErrorInvalidImage: hipError_t = 200;
2493#[doc = "< Produced when input context is invalid."]
2494pub const hipError_t_hipErrorInvalidContext: hipError_t = 201;
2495pub const hipError_t_hipErrorContextAlreadyCurrent: hipError_t = 202;
2496pub const hipError_t_hipErrorMapFailed: hipError_t = 205;
2497#[doc = "< Produced when the IPC memory attach failed from ROCr."]
2498pub const hipError_t_hipErrorMapBufferObjectFailed: hipError_t = 205;
2499pub const hipError_t_hipErrorUnmapFailed: hipError_t = 206;
2500pub const hipError_t_hipErrorArrayIsMapped: hipError_t = 207;
2501pub const hipError_t_hipErrorAlreadyMapped: hipError_t = 208;
2502pub const hipError_t_hipErrorNoBinaryForGpu: hipError_t = 209;
2503pub const hipError_t_hipErrorAlreadyAcquired: hipError_t = 210;
2504pub const hipError_t_hipErrorNotMapped: hipError_t = 211;
2505pub const hipError_t_hipErrorNotMappedAsArray: hipError_t = 212;
2506pub const hipError_t_hipErrorNotMappedAsPointer: hipError_t = 213;
2507pub const hipError_t_hipErrorECCNotCorrectable: hipError_t = 214;
2508#[doc = "< Unsupported limit"]
2509pub const hipError_t_hipErrorUnsupportedLimit: hipError_t = 215;
2510#[doc = "< The context is already in use"]
2511pub const hipError_t_hipErrorContextAlreadyInUse: hipError_t = 216;
2512pub const hipError_t_hipErrorPeerAccessUnsupported: hipError_t = 217;
2513#[doc = "< In CUDA DRV, it is CUDA_ERROR_INVALID_PTX"]
2514pub const hipError_t_hipErrorInvalidKernelFile: hipError_t = 218;
2515pub const hipError_t_hipErrorInvalidGraphicsContext: hipError_t = 219;
2516#[doc = "< Invalid source."]
2517pub const hipError_t_hipErrorInvalidSource: hipError_t = 300;
2518#[doc = "< the file is not found."]
2519pub const hipError_t_hipErrorFileNotFound: hipError_t = 301;
2520pub const hipError_t_hipErrorSharedObjectSymbolNotFound: hipError_t = 302;
2521#[doc = "< Failed to initialize shared object."]
2522pub const hipError_t_hipErrorSharedObjectInitFailed: hipError_t = 303;
2523#[doc = "< Not the correct operating system"]
2524pub const hipError_t_hipErrorOperatingSystem: hipError_t = 304;
2525#[doc = "< Invalide handle"]
2526pub const hipError_t_hipErrorInvalidHandle: hipError_t = 400;
2527#[doc = "< Resource handle (hipEvent_t or hipStream_t) invalid."]
2528pub const hipError_t_hipErrorInvalidResourceHandle: hipError_t = 400;
2529#[doc = "< Resource required is not in a valid state to perform operation."]
2530pub const hipError_t_hipErrorIllegalState: hipError_t = 401;
2531#[doc = "< Not found"]
2532pub const hipError_t_hipErrorNotFound: hipError_t = 500;
2533#[doc = "< Indicates that asynchronous operations enqueued earlier are not\n< ready.  This is not actually an error, but is used to distinguish\n< from hipSuccess (which indicates completion).  APIs that return\n< this error include hipEventQuery and hipStreamQuery."]
2534pub const hipError_t_hipErrorNotReady: hipError_t = 600;
2535pub const hipError_t_hipErrorIllegalAddress: hipError_t = 700;
2536#[doc = "< Out of resources error."]
2537pub const hipError_t_hipErrorLaunchOutOfResources: hipError_t = 701;
2538#[doc = "< Timeout for the launch."]
2539pub const hipError_t_hipErrorLaunchTimeOut: hipError_t = 702;
2540#[doc = "< Peer access was already enabled from the current\n< device."]
2541pub const hipError_t_hipErrorPeerAccessAlreadyEnabled: hipError_t = 704;
2542#[doc = "< Peer access was never enabled from the current device."]
2543pub const hipError_t_hipErrorPeerAccessNotEnabled: hipError_t = 705;
2544#[doc = "< The process is active."]
2545pub const hipError_t_hipErrorSetOnActiveProcess: hipError_t = 708;
2546#[doc = "< The context is already destroyed"]
2547pub const hipError_t_hipErrorContextIsDestroyed: hipError_t = 709;
2548#[doc = "< Produced when the kernel calls assert."]
2549pub const hipError_t_hipErrorAssert: hipError_t = 710;
2550#[doc = "< Produced when trying to lock a page-locked\n< memory."]
2551pub const hipError_t_hipErrorHostMemoryAlreadyRegistered: hipError_t = 712;
2552#[doc = "< Produced when trying to unlock a non-page-locked\n< memory."]
2553pub const hipError_t_hipErrorHostMemoryNotRegistered: hipError_t = 713;
2554#[doc = "< An exception occurred on the device while executing a kernel."]
2555pub const hipError_t_hipErrorLaunchFailure: hipError_t = 719;
2556#[doc = "< This error indicates that the number of blocks\n< launched per grid for a kernel that was launched\n< via cooperative launch APIs exceeds the maximum\n< number of allowed blocks for the current device."]
2557pub const hipError_t_hipErrorCooperativeLaunchTooLarge: hipError_t = 720;
2558#[doc = "< Produced when the hip API is not supported/implemented"]
2559pub const hipError_t_hipErrorNotSupported: hipError_t = 801;
2560#[doc = "< The operation is not permitted when the stream\n< is capturing."]
2561pub const hipError_t_hipErrorStreamCaptureUnsupported: hipError_t = 900;
2562#[doc = "< The current capture sequence on the stream\n< has been invalidated due to a previous error."]
2563pub const hipError_t_hipErrorStreamCaptureInvalidated: hipError_t = 901;
2564#[doc = "< The operation would have resulted in a merge of\n< two independent capture sequences."]
2565pub const hipError_t_hipErrorStreamCaptureMerge: hipError_t = 902;
2566#[doc = "< The capture was not initiated in this stream."]
2567pub const hipError_t_hipErrorStreamCaptureUnmatched: hipError_t = 903;
2568#[doc = "< The capture sequence contains a fork that was not\n< joined to the primary stream."]
2569pub const hipError_t_hipErrorStreamCaptureUnjoined: hipError_t = 904;
2570#[doc = "< A dependency would have been created which crosses\n< the capture sequence boundary. Only implicit\n< in-stream ordering dependencies  are allowed\n< to cross the boundary"]
2571pub const hipError_t_hipErrorStreamCaptureIsolation: hipError_t = 905;
2572#[doc = "< The operation would have resulted in a disallowed\n< implicit dependency on a current capture sequence\n< from hipStreamLegacy."]
2573pub const hipError_t_hipErrorStreamCaptureImplicit: hipError_t = 906;
2574#[doc = "< The operation is not permitted on an event which was last\n< recorded in a capturing stream."]
2575pub const hipError_t_hipErrorCapturedEvent: hipError_t = 907;
2576#[doc = "< A stream capture sequence not initiated with\n< the hipStreamCaptureModeRelaxed argument to\n< hipStreamBeginCapture was passed to\n< hipStreamEndCapture in a different thread."]
2577pub const hipError_t_hipErrorStreamCaptureWrongThread: hipError_t = 908;
2578#[doc = "< This error indicates that the graph update\n< not performed because it included changes which\n< violated constraintsspecific to instantiated graph\n< update."]
2579pub const hipError_t_hipErrorGraphExecUpdateFailure: hipError_t = 910;
2580#[doc = "< Invalid channel descriptor."]
2581pub const hipError_t_hipErrorInvalidChannelDescriptor: hipError_t = 911;
2582#[doc = "< Invalid texture."]
2583pub const hipError_t_hipErrorInvalidTexture: hipError_t = 912;
2584#[doc = "< Unknown error."]
2585pub const hipError_t_hipErrorUnknown: hipError_t = 999;
2586#[doc = "< HSA runtime memory call returned error.  Typically not seen\n< in production systems."]
2587pub const hipError_t_hipErrorRuntimeMemory: hipError_t = 1052;
2588#[doc = "< HSA runtime call other than memory returned error.  Typically\n< not seen in production systems."]
2589pub const hipError_t_hipErrorRuntimeOther: hipError_t = 1053;
2590#[doc = "< Marker that more error codes are needed."]
2591pub const hipError_t_hipErrorTbd: hipError_t = 1054;
2592#[doc = " HIP error type\n"]
2593pub type hipError_t = ::std::os::raw::c_uint;
2594pub const hipDeviceAttribute_t_hipDeviceAttributeCudaCompatibleBegin: hipDeviceAttribute_t = 0;
2595#[doc = "< Whether ECC support is enabled."]
2596pub const hipDeviceAttribute_t_hipDeviceAttributeEccEnabled: hipDeviceAttribute_t = 0;
2597#[doc = "< Cuda only. The maximum size of the window policy in bytes."]
2598pub const hipDeviceAttribute_t_hipDeviceAttributeAccessPolicyMaxWindowSize: hipDeviceAttribute_t =
2599    1;
2600#[doc = "< Asynchronous engines number."]
2601pub const hipDeviceAttribute_t_hipDeviceAttributeAsyncEngineCount: hipDeviceAttribute_t = 2;
2602#[doc = "< Whether host memory can be mapped into device address space"]
2603pub const hipDeviceAttribute_t_hipDeviceAttributeCanMapHostMemory: hipDeviceAttribute_t = 3;
2604#[doc = "< Device can access host registered memory\n< at the same virtual address as the CPU"]
2605pub const hipDeviceAttribute_t_hipDeviceAttributeCanUseHostPointerForRegisteredMem:
2606    hipDeviceAttribute_t = 4;
2607#[doc = "< Peak clock frequency in kilohertz."]
2608pub const hipDeviceAttribute_t_hipDeviceAttributeClockRate: hipDeviceAttribute_t = 5;
2609#[doc = "< Compute mode that device is currently in."]
2610pub const hipDeviceAttribute_t_hipDeviceAttributeComputeMode: hipDeviceAttribute_t = 6;
2611#[doc = "< Device supports Compute Preemption."]
2612pub const hipDeviceAttribute_t_hipDeviceAttributeComputePreemptionSupported: hipDeviceAttribute_t =
2613    7;
2614#[doc = "< Device can possibly execute multiple kernels concurrently."]
2615pub const hipDeviceAttribute_t_hipDeviceAttributeConcurrentKernels: hipDeviceAttribute_t = 8;
2616#[doc = "< Device can coherently access managed memory concurrently with the CPU"]
2617pub const hipDeviceAttribute_t_hipDeviceAttributeConcurrentManagedAccess: hipDeviceAttribute_t = 9;
2618#[doc = "< Support cooperative launch"]
2619pub const hipDeviceAttribute_t_hipDeviceAttributeCooperativeLaunch: hipDeviceAttribute_t = 10;
2620#[doc = "< Support cooperative launch on multiple devices"]
2621pub const hipDeviceAttribute_t_hipDeviceAttributeCooperativeMultiDeviceLaunch:
2622    hipDeviceAttribute_t = 11;
2623#[doc = "< Device can concurrently copy memory and execute a kernel.\n< Deprecated. Use instead asyncEngineCount."]
2624pub const hipDeviceAttribute_t_hipDeviceAttributeDeviceOverlap: hipDeviceAttribute_t = 12;
2625#[doc = "< Host can directly access managed memory on\n< the device without migration"]
2626pub const hipDeviceAttribute_t_hipDeviceAttributeDirectManagedMemAccessFromHost:
2627    hipDeviceAttribute_t = 13;
2628#[doc = "< Device supports caching globals in L1"]
2629pub const hipDeviceAttribute_t_hipDeviceAttributeGlobalL1CacheSupported: hipDeviceAttribute_t = 14;
2630#[doc = "< Link between the device and the host supports native atomic operations"]
2631pub const hipDeviceAttribute_t_hipDeviceAttributeHostNativeAtomicSupported: hipDeviceAttribute_t =
2632    15;
2633#[doc = "< Device is integrated GPU"]
2634pub const hipDeviceAttribute_t_hipDeviceAttributeIntegrated: hipDeviceAttribute_t = 16;
2635#[doc = "< Multiple GPU devices."]
2636pub const hipDeviceAttribute_t_hipDeviceAttributeIsMultiGpuBoard: hipDeviceAttribute_t = 17;
2637#[doc = "< Run time limit for kernels executed on the device"]
2638pub const hipDeviceAttribute_t_hipDeviceAttributeKernelExecTimeout: hipDeviceAttribute_t = 18;
2639#[doc = "< Size of L2 cache in bytes. 0 if the device doesn't have L2 cache."]
2640pub const hipDeviceAttribute_t_hipDeviceAttributeL2CacheSize: hipDeviceAttribute_t = 19;
2641#[doc = "< caching locals in L1 is supported"]
2642pub const hipDeviceAttribute_t_hipDeviceAttributeLocalL1CacheSupported: hipDeviceAttribute_t = 20;
2643#[doc = "< 8-byte locally unique identifier in 8 bytes. Undefined on TCC and non-Windows platforms"]
2644pub const hipDeviceAttribute_t_hipDeviceAttributeLuid: hipDeviceAttribute_t = 21;
2645#[doc = "< Luid device node mask. Undefined on TCC and non-Windows platforms"]
2646pub const hipDeviceAttribute_t_hipDeviceAttributeLuidDeviceNodeMask: hipDeviceAttribute_t = 22;
2647#[doc = "< Major compute capability version number."]
2648pub const hipDeviceAttribute_t_hipDeviceAttributeComputeCapabilityMajor: hipDeviceAttribute_t = 23;
2649#[doc = "< Device supports allocating managed memory on this system"]
2650pub const hipDeviceAttribute_t_hipDeviceAttributeManagedMemory: hipDeviceAttribute_t = 24;
2651#[doc = "< Max block size per multiprocessor"]
2652pub const hipDeviceAttribute_t_hipDeviceAttributeMaxBlocksPerMultiProcessor: hipDeviceAttribute_t =
2653    25;
2654#[doc = "< Max block size in width."]
2655pub const hipDeviceAttribute_t_hipDeviceAttributeMaxBlockDimX: hipDeviceAttribute_t = 26;
2656#[doc = "< Max block size in height."]
2657pub const hipDeviceAttribute_t_hipDeviceAttributeMaxBlockDimY: hipDeviceAttribute_t = 27;
2658#[doc = "< Max block size in depth."]
2659pub const hipDeviceAttribute_t_hipDeviceAttributeMaxBlockDimZ: hipDeviceAttribute_t = 28;
2660#[doc = "< Max grid size  in width."]
2661pub const hipDeviceAttribute_t_hipDeviceAttributeMaxGridDimX: hipDeviceAttribute_t = 29;
2662#[doc = "< Max grid size  in height."]
2663pub const hipDeviceAttribute_t_hipDeviceAttributeMaxGridDimY: hipDeviceAttribute_t = 30;
2664#[doc = "< Max grid size  in depth."]
2665pub const hipDeviceAttribute_t_hipDeviceAttributeMaxGridDimZ: hipDeviceAttribute_t = 31;
2666#[doc = "< Maximum size of 1D surface."]
2667pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurface1D: hipDeviceAttribute_t = 32;
2668#[doc = "< Cuda only. Maximum dimensions of 1D layered surface."]
2669pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurface1DLayered: hipDeviceAttribute_t = 33;
2670#[doc = "< Maximum dimension (width, height) of 2D surface."]
2671pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurface2D: hipDeviceAttribute_t = 34;
2672#[doc = "< Cuda only. Maximum dimensions of 2D layered surface."]
2673pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurface2DLayered: hipDeviceAttribute_t = 35;
2674#[doc = "< Maximum dimension (width, height, depth) of 3D surface."]
2675pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurface3D: hipDeviceAttribute_t = 36;
2676#[doc = "< Cuda only. Maximum dimensions of Cubemap surface."]
2677pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurfaceCubemap: hipDeviceAttribute_t = 37;
2678#[doc = "< Cuda only. Maximum dimension of Cubemap layered surface."]
2679pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSurfaceCubemapLayered: hipDeviceAttribute_t =
2680    38;
2681#[doc = "< Maximum size of 1D texture."]
2682pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture1DWidth: hipDeviceAttribute_t = 39;
2683#[doc = "< Maximum dimensions of 1D layered texture."]
2684pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture1DLayered: hipDeviceAttribute_t = 40;
2685#[doc = "< Maximum number of elements allocatable in a 1D linear texture.\n< Use cudaDeviceGetTexture1DLinearMaxWidth() instead on Cuda."]
2686pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture1DLinear: hipDeviceAttribute_t = 41;
2687#[doc = "< Maximum size of 1D mipmapped texture."]
2688pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture1DMipmap: hipDeviceAttribute_t = 42;
2689#[doc = "< Maximum dimension width of 2D texture."]
2690pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture2DWidth: hipDeviceAttribute_t = 43;
2691#[doc = "< Maximum dimension hight of 2D texture."]
2692pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture2DHeight: hipDeviceAttribute_t = 44;
2693#[doc = "< Maximum dimensions of 2D texture if gather operations  performed."]
2694pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture2DGather: hipDeviceAttribute_t = 45;
2695#[doc = "< Maximum dimensions of 2D layered texture."]
2696pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture2DLayered: hipDeviceAttribute_t = 46;
2697#[doc = "< Maximum dimensions (width, height, pitch) of 2D textures bound to pitched memory."]
2698pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture2DLinear: hipDeviceAttribute_t = 47;
2699#[doc = "< Maximum dimensions of 2D mipmapped texture."]
2700pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture2DMipmap: hipDeviceAttribute_t = 48;
2701#[doc = "< Maximum dimension width of 3D texture."]
2702pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture3DWidth: hipDeviceAttribute_t = 49;
2703#[doc = "< Maximum dimension height of 3D texture."]
2704pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture3DHeight: hipDeviceAttribute_t = 50;
2705#[doc = "< Maximum dimension depth of 3D texture."]
2706pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture3DDepth: hipDeviceAttribute_t = 51;
2707#[doc = "< Maximum dimensions of alternate 3D texture."]
2708pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTexture3DAlt: hipDeviceAttribute_t = 52;
2709#[doc = "< Maximum dimensions of Cubemap texture"]
2710pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTextureCubemap: hipDeviceAttribute_t = 53;
2711#[doc = "< Maximum dimensions of Cubemap layered texture."]
2712pub const hipDeviceAttribute_t_hipDeviceAttributeMaxTextureCubemapLayered: hipDeviceAttribute_t =
2713    54;
2714#[doc = "< Maximum dimension of a block"]
2715pub const hipDeviceAttribute_t_hipDeviceAttributeMaxThreadsDim: hipDeviceAttribute_t = 55;
2716#[doc = "< Maximum number of threads per block."]
2717pub const hipDeviceAttribute_t_hipDeviceAttributeMaxThreadsPerBlock: hipDeviceAttribute_t = 56;
2718#[doc = "< Maximum resident threads per multiprocessor."]
2719pub const hipDeviceAttribute_t_hipDeviceAttributeMaxThreadsPerMultiProcessor: hipDeviceAttribute_t =
2720    57;
2721#[doc = "< Maximum pitch in bytes allowed by memory copies"]
2722pub const hipDeviceAttribute_t_hipDeviceAttributeMaxPitch: hipDeviceAttribute_t = 58;
2723#[doc = "< Global memory bus width in bits."]
2724pub const hipDeviceAttribute_t_hipDeviceAttributeMemoryBusWidth: hipDeviceAttribute_t = 59;
2725#[doc = "< Peak memory clock frequency in kilohertz."]
2726pub const hipDeviceAttribute_t_hipDeviceAttributeMemoryClockRate: hipDeviceAttribute_t = 60;
2727#[doc = "< Minor compute capability version number."]
2728pub const hipDeviceAttribute_t_hipDeviceAttributeComputeCapabilityMinor: hipDeviceAttribute_t = 61;
2729#[doc = "< Unique ID of device group on the same multi-GPU board"]
2730pub const hipDeviceAttribute_t_hipDeviceAttributeMultiGpuBoardGroupID: hipDeviceAttribute_t = 62;
2731#[doc = "< Number of multiprocessors on the device."]
2732pub const hipDeviceAttribute_t_hipDeviceAttributeMultiprocessorCount: hipDeviceAttribute_t = 63;
2733#[doc = "< Previously hipDeviceAttributeName"]
2734pub const hipDeviceAttribute_t_hipDeviceAttributeUnused1: hipDeviceAttribute_t = 64;
2735#[doc = "< Device supports coherently accessing pageable memory\n< without calling hipHostRegister on it"]
2736pub const hipDeviceAttribute_t_hipDeviceAttributePageableMemoryAccess: hipDeviceAttribute_t = 65;
2737#[doc = "< Device accesses pageable memory via the host's page tables"]
2738pub const hipDeviceAttribute_t_hipDeviceAttributePageableMemoryAccessUsesHostPageTables:
2739    hipDeviceAttribute_t = 66;
2740#[doc = "< PCI Bus ID."]
2741pub const hipDeviceAttribute_t_hipDeviceAttributePciBusId: hipDeviceAttribute_t = 67;
2742#[doc = "< PCI Device ID."]
2743pub const hipDeviceAttribute_t_hipDeviceAttributePciDeviceId: hipDeviceAttribute_t = 68;
2744#[doc = "< PCI Domain ID."]
2745pub const hipDeviceAttribute_t_hipDeviceAttributePciDomainID: hipDeviceAttribute_t = 69;
2746#[doc = "< Maximum l2 persisting lines capacity in bytes"]
2747pub const hipDeviceAttribute_t_hipDeviceAttributePersistingL2CacheMaxSize: hipDeviceAttribute_t =
2748    70;
2749#[doc = "< 32-bit registers available to a thread block. This number is shared\n< by all thread blocks simultaneously resident on a multiprocessor."]
2750pub const hipDeviceAttribute_t_hipDeviceAttributeMaxRegistersPerBlock: hipDeviceAttribute_t = 71;
2751#[doc = "< 32-bit registers available per block."]
2752pub const hipDeviceAttribute_t_hipDeviceAttributeMaxRegistersPerMultiprocessor:
2753    hipDeviceAttribute_t = 72;
2754#[doc = "< Shared memory reserved by CUDA driver per block."]
2755pub const hipDeviceAttribute_t_hipDeviceAttributeReservedSharedMemPerBlock: hipDeviceAttribute_t =
2756    73;
2757#[doc = "< Maximum shared memory available per block in bytes."]
2758pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSharedMemoryPerBlock: hipDeviceAttribute_t = 74;
2759#[doc = "< Maximum shared memory per block usable by special opt in."]
2760pub const hipDeviceAttribute_t_hipDeviceAttributeSharedMemPerBlockOptin: hipDeviceAttribute_t = 75;
2761#[doc = "< Shared memory available per multiprocessor."]
2762pub const hipDeviceAttribute_t_hipDeviceAttributeSharedMemPerMultiprocessor: hipDeviceAttribute_t =
2763    76;
2764#[doc = "< Cuda only. Performance ratio of single precision to double precision."]
2765pub const hipDeviceAttribute_t_hipDeviceAttributeSingleToDoublePrecisionPerfRatio:
2766    hipDeviceAttribute_t = 77;
2767#[doc = "< Whether to support stream priorities."]
2768pub const hipDeviceAttribute_t_hipDeviceAttributeStreamPrioritiesSupported: hipDeviceAttribute_t =
2769    78;
2770#[doc = "< Alignment requirement for surfaces"]
2771pub const hipDeviceAttribute_t_hipDeviceAttributeSurfaceAlignment: hipDeviceAttribute_t = 79;
2772#[doc = "< Cuda only. Whether device is a Tesla device using TCC driver"]
2773pub const hipDeviceAttribute_t_hipDeviceAttributeTccDriver: hipDeviceAttribute_t = 80;
2774#[doc = "< Alignment requirement for textures"]
2775pub const hipDeviceAttribute_t_hipDeviceAttributeTextureAlignment: hipDeviceAttribute_t = 81;
2776#[doc = "< Pitch alignment requirement for 2D texture references bound to pitched memory;"]
2777pub const hipDeviceAttribute_t_hipDeviceAttributeTexturePitchAlignment: hipDeviceAttribute_t = 82;
2778#[doc = "< Constant memory size in bytes."]
2779pub const hipDeviceAttribute_t_hipDeviceAttributeTotalConstantMemory: hipDeviceAttribute_t = 83;
2780#[doc = "< Global memory available on devicice."]
2781pub const hipDeviceAttribute_t_hipDeviceAttributeTotalGlobalMem: hipDeviceAttribute_t = 84;
2782#[doc = "< Cuda only. An unified address space shared with the host."]
2783pub const hipDeviceAttribute_t_hipDeviceAttributeUnifiedAddressing: hipDeviceAttribute_t = 85;
2784#[doc = "< Previously hipDeviceAttributeUuid"]
2785pub const hipDeviceAttribute_t_hipDeviceAttributeUnused2: hipDeviceAttribute_t = 86;
2786#[doc = "< Warp size in threads."]
2787pub const hipDeviceAttribute_t_hipDeviceAttributeWarpSize: hipDeviceAttribute_t = 87;
2788#[doc = "< Device supports HIP Stream Ordered Memory Allocator"]
2789pub const hipDeviceAttribute_t_hipDeviceAttributeMemoryPoolsSupported: hipDeviceAttribute_t = 88;
2790#[doc = "< Device supports HIP virtual memory management"]
2791pub const hipDeviceAttribute_t_hipDeviceAttributeVirtualMemoryManagementSupported:
2792    hipDeviceAttribute_t = 89;
2793#[doc = "< Can device support host memory registration via hipHostRegister"]
2794pub const hipDeviceAttribute_t_hipDeviceAttributeHostRegisterSupported: hipDeviceAttribute_t = 90;
2795#[doc = "< Supported handle mask for HIP Stream Ordered Memory Allocator"]
2796pub const hipDeviceAttribute_t_hipDeviceAttributeMemoryPoolSupportedHandleTypes:
2797    hipDeviceAttribute_t = 91;
2798pub const hipDeviceAttribute_t_hipDeviceAttributeCudaCompatibleEnd: hipDeviceAttribute_t = 9999;
2799pub const hipDeviceAttribute_t_hipDeviceAttributeAmdSpecificBegin: hipDeviceAttribute_t = 10000;
2800#[doc = "< Frequency in khz of the timer used by the device-side \"clock*\""]
2801pub const hipDeviceAttribute_t_hipDeviceAttributeClockInstructionRate: hipDeviceAttribute_t = 10000;
2802#[doc = "< Previously hipDeviceAttributeArch"]
2803pub const hipDeviceAttribute_t_hipDeviceAttributeUnused3: hipDeviceAttribute_t = 10001;
2804#[doc = "< Maximum Shared Memory PerMultiprocessor."]
2805pub const hipDeviceAttribute_t_hipDeviceAttributeMaxSharedMemoryPerMultiprocessor:
2806    hipDeviceAttribute_t = 10002;
2807#[doc = "< Previously hipDeviceAttributeGcnArch"]
2808pub const hipDeviceAttribute_t_hipDeviceAttributeUnused4: hipDeviceAttribute_t = 10003;
2809#[doc = "< Previously hipDeviceAttributeGcnArchName"]
2810pub const hipDeviceAttribute_t_hipDeviceAttributeUnused5: hipDeviceAttribute_t = 10004;
2811#[doc = "< Address of the HDP_MEM_COHERENCY_FLUSH_CNTL register"]
2812pub const hipDeviceAttribute_t_hipDeviceAttributeHdpMemFlushCntl: hipDeviceAttribute_t = 10005;
2813#[doc = "< Address of the HDP_REG_COHERENCY_FLUSH_CNTL register"]
2814pub const hipDeviceAttribute_t_hipDeviceAttributeHdpRegFlushCntl: hipDeviceAttribute_t = 10006;
2815#[doc = "< Supports cooperative launch on multiple\n< devices with unmatched functions"]
2816pub const hipDeviceAttribute_t_hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc:
2817    hipDeviceAttribute_t = 10007;
2818#[doc = "< Supports cooperative launch on multiple\n< devices with unmatched grid dimensions"]
2819pub const hipDeviceAttribute_t_hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim:
2820    hipDeviceAttribute_t = 10008;
2821#[doc = "< Supports cooperative launch on multiple\n< devices with unmatched block dimensions"]
2822pub const hipDeviceAttribute_t_hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim:
2823    hipDeviceAttribute_t = 10009;
2824#[doc = "< Supports cooperative launch on multiple\n< devices with unmatched shared memories"]
2825pub const hipDeviceAttribute_t_hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem:
2826    hipDeviceAttribute_t = 10010;
2827#[doc = "< Whether it is LargeBar"]
2828pub const hipDeviceAttribute_t_hipDeviceAttributeIsLargeBar: hipDeviceAttribute_t = 10011;
2829#[doc = "< Revision of the GPU in this device"]
2830pub const hipDeviceAttribute_t_hipDeviceAttributeAsicRevision: hipDeviceAttribute_t = 10012;
2831#[doc = "< '1' if Device supports hipStreamWaitValue32() and\n< hipStreamWaitValue64(), '0' otherwise."]
2832pub const hipDeviceAttribute_t_hipDeviceAttributeCanUseStreamWaitValue: hipDeviceAttribute_t =
2833    10013;
2834#[doc = "< '1' if Device supports image, '0' otherwise."]
2835pub const hipDeviceAttribute_t_hipDeviceAttributeImageSupport: hipDeviceAttribute_t = 10014;
2836#[doc = "< All available physical compute\n< units for the device"]
2837pub const hipDeviceAttribute_t_hipDeviceAttributePhysicalMultiProcessorCount: hipDeviceAttribute_t =
2838    10015;
2839#[doc = "< '1' if Device supports fine grain, '0' otherwise"]
2840pub const hipDeviceAttribute_t_hipDeviceAttributeFineGrainSupport: hipDeviceAttribute_t = 10016;
2841#[doc = "< Constant frequency of wall clock in kilohertz."]
2842pub const hipDeviceAttribute_t_hipDeviceAttributeWallClockRate: hipDeviceAttribute_t = 10017;
2843pub const hipDeviceAttribute_t_hipDeviceAttributeAmdSpecificEnd: hipDeviceAttribute_t = 19999;
2844pub const hipDeviceAttribute_t_hipDeviceAttributeVendorSpecificBegin: hipDeviceAttribute_t = 20000;
2845#[doc = " hipDeviceAttribute_t\n hipDeviceAttributeUnused number: 5"]
2846pub type hipDeviceAttribute_t = ::std::os::raw::c_uint;
2847pub const hipDriverProcAddressQueryResult_HIP_GET_PROC_ADDRESS_SUCCESS:
2848    hipDriverProcAddressQueryResult = 0;
2849pub const hipDriverProcAddressQueryResult_HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND:
2850    hipDriverProcAddressQueryResult = 1;
2851pub const hipDriverProcAddressQueryResult_HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT:
2852    hipDriverProcAddressQueryResult = 2;
2853pub type hipDriverProcAddressQueryResult = ::std::os::raw::c_uint;
2854pub const hipComputeMode_hipComputeModeDefault: hipComputeMode = 0;
2855pub const hipComputeMode_hipComputeModeExclusive: hipComputeMode = 1;
2856pub const hipComputeMode_hipComputeModeProhibited: hipComputeMode = 2;
2857pub const hipComputeMode_hipComputeModeExclusiveProcess: hipComputeMode = 3;
2858pub type hipComputeMode = ::std::os::raw::c_uint;
2859pub const hipFlushGPUDirectRDMAWritesOptions_hipFlushGPUDirectRDMAWritesOptionHost:
2860    hipFlushGPUDirectRDMAWritesOptions = 1;
2861pub const hipFlushGPUDirectRDMAWritesOptions_hipFlushGPUDirectRDMAWritesOptionMemOps:
2862    hipFlushGPUDirectRDMAWritesOptions = 2;
2863pub type hipFlushGPUDirectRDMAWritesOptions = ::std::os::raw::c_uint;
2864pub const hipGPUDirectRDMAWritesOrdering_hipGPUDirectRDMAWritesOrderingNone:
2865    hipGPUDirectRDMAWritesOrdering = 0;
2866pub const hipGPUDirectRDMAWritesOrdering_hipGPUDirectRDMAWritesOrderingOwner:
2867    hipGPUDirectRDMAWritesOrdering = 100;
2868pub const hipGPUDirectRDMAWritesOrdering_hipGPUDirectRDMAWritesOrderingAllDevices:
2869    hipGPUDirectRDMAWritesOrdering = 200;
2870pub type hipGPUDirectRDMAWritesOrdering = ::std::os::raw::c_uint;
2871pub type int_least8_t = __int_least8_t;
2872pub type int_least16_t = __int_least16_t;
2873pub type int_least32_t = __int_least32_t;
2874pub type int_least64_t = __int_least64_t;
2875pub type uint_least8_t = __uint_least8_t;
2876pub type uint_least16_t = __uint_least16_t;
2877pub type uint_least32_t = __uint_least32_t;
2878pub type uint_least64_t = __uint_least64_t;
2879pub type int_fast8_t = ::std::os::raw::c_schar;
2880pub type int_fast16_t = ::std::os::raw::c_long;
2881pub type int_fast32_t = ::std::os::raw::c_long;
2882pub type int_fast64_t = ::std::os::raw::c_long;
2883pub type uint_fast8_t = ::std::os::raw::c_uchar;
2884pub type uint_fast16_t = ::std::os::raw::c_ulong;
2885pub type uint_fast32_t = ::std::os::raw::c_ulong;
2886pub type uint_fast64_t = ::std::os::raw::c_ulong;
2887pub type intmax_t = __intmax_t;
2888pub type uintmax_t = __uintmax_t;
2889#[repr(C)]
2890#[repr(align(16))]
2891#[derive(Debug, Copy, Clone)]
2892pub struct max_align_t {
2893    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
2894    pub __bindgen_padding_0: u64,
2895    pub __clang_max_align_nonce2: u128,
2896}
2897#[doc = "  @defgroup DriverTypes Driver Types\n  @{\n  This section describes the driver data types.\n"]
2898pub type hipDeviceptr_t = *mut ::std::os::raw::c_void;
2899#[doc = "< Signed channel format"]
2900pub const hipChannelFormatKind_hipChannelFormatKindSigned: hipChannelFormatKind = 0;
2901#[doc = "< Unsigned channel format"]
2902pub const hipChannelFormatKind_hipChannelFormatKindUnsigned: hipChannelFormatKind = 1;
2903#[doc = "< Float channel format"]
2904pub const hipChannelFormatKind_hipChannelFormatKindFloat: hipChannelFormatKind = 2;
2905#[doc = "< No channel format"]
2906pub const hipChannelFormatKind_hipChannelFormatKindNone: hipChannelFormatKind = 3;
2907#[doc = " HIP channel format kinds"]
2908pub type hipChannelFormatKind = ::std::os::raw::c_uint;
2909#[doc = " HIP channel format descriptor"]
2910#[repr(C)]
2911#[derive(Debug, Copy, Clone)]
2912pub struct hipChannelFormatDesc {
2913    pub x: ::std::os::raw::c_int,
2914    pub y: ::std::os::raw::c_int,
2915    pub z: ::std::os::raw::c_int,
2916    pub w: ::std::os::raw::c_int,
2917    #[doc = "< Channel format kind"]
2918    pub f: hipChannelFormatKind,
2919}
2920#[repr(C)]
2921#[derive(Debug, Copy, Clone)]
2922pub struct hipArray {
2923    _unused: [u8; 0],
2924}
2925pub type hipArray_t = *mut hipArray;
2926pub type hipArray_const_t = *const hipArray;
2927#[doc = "< Unsigned 8-bit array format"]
2928pub const hipArray_Format_HIP_AD_FORMAT_UNSIGNED_INT8: hipArray_Format = 1;
2929#[doc = "< Unsigned 16-bit array format"]
2930pub const hipArray_Format_HIP_AD_FORMAT_UNSIGNED_INT16: hipArray_Format = 2;
2931#[doc = "< Unsigned 32-bit array format"]
2932pub const hipArray_Format_HIP_AD_FORMAT_UNSIGNED_INT32: hipArray_Format = 3;
2933#[doc = "< Signed 8-bit array format"]
2934pub const hipArray_Format_HIP_AD_FORMAT_SIGNED_INT8: hipArray_Format = 8;
2935#[doc = "< Signed 16-bit array format"]
2936pub const hipArray_Format_HIP_AD_FORMAT_SIGNED_INT16: hipArray_Format = 9;
2937#[doc = "< Signed 32-bit array format"]
2938pub const hipArray_Format_HIP_AD_FORMAT_SIGNED_INT32: hipArray_Format = 10;
2939#[doc = "< Half array format"]
2940pub const hipArray_Format_HIP_AD_FORMAT_HALF: hipArray_Format = 16;
2941#[doc = "< Float array format"]
2942pub const hipArray_Format_HIP_AD_FORMAT_FLOAT: hipArray_Format = 32;
2943#[doc = " HIP array format"]
2944pub type hipArray_Format = ::std::os::raw::c_uint;
2945#[doc = " HIP array descriptor"]
2946#[repr(C)]
2947#[derive(Debug, Copy, Clone)]
2948pub struct HIP_ARRAY_DESCRIPTOR {
2949    #[doc = "< Width of the array"]
2950    pub Width: usize,
2951    #[doc = "< Height of the array"]
2952    pub Height: usize,
2953    #[doc = "< Format of the array"]
2954    pub Format: hipArray_Format,
2955    #[doc = "< Number of channels of the array"]
2956    pub NumChannels: ::std::os::raw::c_uint,
2957}
2958#[doc = " HIP 3D array descriptor"]
2959#[repr(C)]
2960#[derive(Debug, Copy, Clone)]
2961pub struct HIP_ARRAY3D_DESCRIPTOR {
2962    #[doc = "< Width of the array"]
2963    pub Width: usize,
2964    #[doc = "< Height of the array"]
2965    pub Height: usize,
2966    #[doc = "< Depth of the array"]
2967    pub Depth: usize,
2968    #[doc = "< Format of the array"]
2969    pub Format: hipArray_Format,
2970    #[doc = "< Number of channels of the array"]
2971    pub NumChannels: ::std::os::raw::c_uint,
2972    #[doc = "< Flags of the array"]
2973    pub Flags: ::std::os::raw::c_uint,
2974}
2975#[doc = " HIP 2D memory copy parameters"]
2976#[repr(C)]
2977#[derive(Debug, Copy, Clone)]
2978pub struct hip_Memcpy2D {
2979    #[doc = "< Source width in bytes"]
2980    pub srcXInBytes: usize,
2981    #[doc = "< Source height"]
2982    pub srcY: usize,
2983    #[doc = "< Source memory type"]
2984    pub srcMemoryType: hipMemoryType,
2985    #[doc = "< Source pointer"]
2986    pub srcHost: *const ::std::os::raw::c_void,
2987    #[doc = "< Source device"]
2988    pub srcDevice: hipDeviceptr_t,
2989    #[doc = "< Source array"]
2990    pub srcArray: hipArray_t,
2991    #[doc = "< Source pitch"]
2992    pub srcPitch: usize,
2993    #[doc = "< Destination width in bytes"]
2994    pub dstXInBytes: usize,
2995    #[doc = "< Destination height"]
2996    pub dstY: usize,
2997    #[doc = "< Destination memory type"]
2998    pub dstMemoryType: hipMemoryType,
2999    #[doc = "< Destination pointer"]
3000    pub dstHost: *mut ::std::os::raw::c_void,
3001    #[doc = "< Destination device"]
3002    pub dstDevice: hipDeviceptr_t,
3003    #[doc = "< Destination array"]
3004    pub dstArray: hipArray_t,
3005    #[doc = "< Destination pitch"]
3006    pub dstPitch: usize,
3007    #[doc = "< Width in bytes of the 2D memory copy"]
3008    pub WidthInBytes: usize,
3009    #[doc = "< Height of the 2D memory copy"]
3010    pub Height: usize,
3011}
3012#[doc = " HIP mipmapped array"]
3013#[repr(C)]
3014#[derive(Debug, Copy, Clone)]
3015pub struct hipMipmappedArray {
3016    #[doc = "< Data pointer of the mipmapped array"]
3017    pub data: *mut ::std::os::raw::c_void,
3018    #[doc = "< Description of the mipmapped array"]
3019    pub desc: hipChannelFormatDesc,
3020    #[doc = "< Type of the mipmapped array"]
3021    pub type_: ::std::os::raw::c_uint,
3022    #[doc = "< Width of the mipmapped array"]
3023    pub width: ::std::os::raw::c_uint,
3024    #[doc = "< Height of the mipmapped array"]
3025    pub height: ::std::os::raw::c_uint,
3026    #[doc = "< Depth of the mipmapped array"]
3027    pub depth: ::std::os::raw::c_uint,
3028    #[doc = "< Minimum level of the mipmapped array"]
3029    pub min_mipmap_level: ::std::os::raw::c_uint,
3030    #[doc = "< Maximum level of the mipmapped array"]
3031    pub max_mipmap_level: ::std::os::raw::c_uint,
3032    #[doc = "< Flags of the mipmapped array"]
3033    pub flags: ::std::os::raw::c_uint,
3034    #[doc = "< Format of the mipmapped array"]
3035    pub format: hipArray_Format,
3036    #[doc = "< Number of channels of the mipmapped array"]
3037    pub num_channels: ::std::os::raw::c_uint,
3038}
3039#[doc = " HIP mipmapped array pointer"]
3040pub type hipMipmappedArray_t = *mut hipMipmappedArray;
3041pub type hipmipmappedArray = hipMipmappedArray_t;
3042pub type hipMipmappedArray_const_t = *const hipMipmappedArray;
3043#[doc = "< Array resource"]
3044pub const hipResourceType_hipResourceTypeArray: hipResourceType = 0;
3045#[doc = "< Mipmapped array resource"]
3046pub const hipResourceType_hipResourceTypeMipmappedArray: hipResourceType = 1;
3047#[doc = "< Linear resource"]
3048pub const hipResourceType_hipResourceTypeLinear: hipResourceType = 2;
3049#[doc = "< Pitch 2D resource"]
3050pub const hipResourceType_hipResourceTypePitch2D: hipResourceType = 3;
3051#[doc = " HIP resource types"]
3052pub type hipResourceType = ::std::os::raw::c_uint;
3053#[doc = "< Array resource"]
3054pub const HIPresourcetype_enum_HIP_RESOURCE_TYPE_ARRAY: HIPresourcetype_enum = 0;
3055#[doc = "< Mipmapped array resource"]
3056pub const HIPresourcetype_enum_HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY: HIPresourcetype_enum = 1;
3057#[doc = "< Linear resource"]
3058pub const HIPresourcetype_enum_HIP_RESOURCE_TYPE_LINEAR: HIPresourcetype_enum = 2;
3059#[doc = "< Pitch 2D resource"]
3060pub const HIPresourcetype_enum_HIP_RESOURCE_TYPE_PITCH2D: HIPresourcetype_enum = 3;
3061pub type HIPresourcetype_enum = ::std::os::raw::c_uint;
3062pub use self::HIPresourcetype_enum as HIPresourcetype;
3063pub use self::HIPresourcetype_enum as hipResourcetype;
3064#[doc = "< Wrap address mode"]
3065pub const HIPaddress_mode_enum_HIP_TR_ADDRESS_MODE_WRAP: HIPaddress_mode_enum = 0;
3066#[doc = "< Clamp address mode"]
3067pub const HIPaddress_mode_enum_HIP_TR_ADDRESS_MODE_CLAMP: HIPaddress_mode_enum = 1;
3068#[doc = "< Mirror address mode"]
3069pub const HIPaddress_mode_enum_HIP_TR_ADDRESS_MODE_MIRROR: HIPaddress_mode_enum = 2;
3070#[doc = "< Border address mode"]
3071pub const HIPaddress_mode_enum_HIP_TR_ADDRESS_MODE_BORDER: HIPaddress_mode_enum = 3;
3072#[doc = " HIP texture address modes"]
3073pub type HIPaddress_mode_enum = ::std::os::raw::c_uint;
3074#[doc = " HIP texture address modes"]
3075pub use self::HIPaddress_mode_enum as HIPaddress_mode;
3076#[doc = "< Filter mode point"]
3077pub const HIPfilter_mode_enum_HIP_TR_FILTER_MODE_POINT: HIPfilter_mode_enum = 0;
3078#[doc = "< Filter mode linear"]
3079pub const HIPfilter_mode_enum_HIP_TR_FILTER_MODE_LINEAR: HIPfilter_mode_enum = 1;
3080#[doc = " HIP filter modes"]
3081pub type HIPfilter_mode_enum = ::std::os::raw::c_uint;
3082#[doc = " HIP filter modes"]
3083pub use self::HIPfilter_mode_enum as HIPfilter_mode;
3084#[doc = " HIP texture descriptor"]
3085#[repr(C)]
3086#[derive(Debug, Copy, Clone)]
3087pub struct HIP_TEXTURE_DESC_st {
3088    #[doc = "< Address modes"]
3089    pub addressMode: [HIPaddress_mode; 3usize],
3090    #[doc = "< Filter mode"]
3091    pub filterMode: HIPfilter_mode,
3092    #[doc = "< Flags"]
3093    pub flags: ::std::os::raw::c_uint,
3094    #[doc = "< Maximum anisotropy ratio"]
3095    pub maxAnisotropy: ::std::os::raw::c_uint,
3096    #[doc = "< Mipmap filter mode"]
3097    pub mipmapFilterMode: HIPfilter_mode,
3098    #[doc = "< Mipmap level bias"]
3099    pub mipmapLevelBias: f32,
3100    #[doc = "< Mipmap minimum level clamp"]
3101    pub minMipmapLevelClamp: f32,
3102    #[doc = "< Mipmap maximum level clamp"]
3103    pub maxMipmapLevelClamp: f32,
3104    #[doc = "< Border Color"]
3105    pub borderColor: [f32; 4usize],
3106    pub reserved: [::std::os::raw::c_int; 12usize],
3107}
3108#[doc = " HIP texture descriptor"]
3109pub type HIP_TEXTURE_DESC = HIP_TEXTURE_DESC_st;
3110#[doc = "< No resource view format (use underlying resource format)"]
3111pub const hipResourceViewFormat_hipResViewFormatNone: hipResourceViewFormat = 0;
3112#[doc = "< 1 channel, unsigned 8-bit integers"]
3113pub const hipResourceViewFormat_hipResViewFormatUnsignedChar1: hipResourceViewFormat = 1;
3114#[doc = "< 2 channels, unsigned 8-bit integers"]
3115pub const hipResourceViewFormat_hipResViewFormatUnsignedChar2: hipResourceViewFormat = 2;
3116#[doc = "< 4 channels, unsigned 8-bit integers"]
3117pub const hipResourceViewFormat_hipResViewFormatUnsignedChar4: hipResourceViewFormat = 3;
3118#[doc = "< 1 channel, signed 8-bit integers"]
3119pub const hipResourceViewFormat_hipResViewFormatSignedChar1: hipResourceViewFormat = 4;
3120#[doc = "< 2 channels, signed 8-bit integers"]
3121pub const hipResourceViewFormat_hipResViewFormatSignedChar2: hipResourceViewFormat = 5;
3122#[doc = "< 4 channels, signed 8-bit integers"]
3123pub const hipResourceViewFormat_hipResViewFormatSignedChar4: hipResourceViewFormat = 6;
3124#[doc = "< 1 channel, unsigned 16-bit integers"]
3125pub const hipResourceViewFormat_hipResViewFormatUnsignedShort1: hipResourceViewFormat = 7;
3126#[doc = "< 2 channels, unsigned 16-bit integers"]
3127pub const hipResourceViewFormat_hipResViewFormatUnsignedShort2: hipResourceViewFormat = 8;
3128#[doc = "< 4 channels, unsigned 16-bit integers"]
3129pub const hipResourceViewFormat_hipResViewFormatUnsignedShort4: hipResourceViewFormat = 9;
3130#[doc = "< 1 channel, signed 16-bit integers"]
3131pub const hipResourceViewFormat_hipResViewFormatSignedShort1: hipResourceViewFormat = 10;
3132#[doc = "< 2 channels, signed 16-bit integers"]
3133pub const hipResourceViewFormat_hipResViewFormatSignedShort2: hipResourceViewFormat = 11;
3134#[doc = "< 4 channels, signed 16-bit integers"]
3135pub const hipResourceViewFormat_hipResViewFormatSignedShort4: hipResourceViewFormat = 12;
3136#[doc = "< 1 channel, unsigned 32-bit integers"]
3137pub const hipResourceViewFormat_hipResViewFormatUnsignedInt1: hipResourceViewFormat = 13;
3138#[doc = "< 2 channels, unsigned 32-bit integers"]
3139pub const hipResourceViewFormat_hipResViewFormatUnsignedInt2: hipResourceViewFormat = 14;
3140#[doc = "< 4 channels, unsigned 32-bit integers"]
3141pub const hipResourceViewFormat_hipResViewFormatUnsignedInt4: hipResourceViewFormat = 15;
3142#[doc = "< 1 channel, signed 32-bit integers"]
3143pub const hipResourceViewFormat_hipResViewFormatSignedInt1: hipResourceViewFormat = 16;
3144#[doc = "< 2 channels, signed 32-bit integers"]
3145pub const hipResourceViewFormat_hipResViewFormatSignedInt2: hipResourceViewFormat = 17;
3146#[doc = "< 4 channels, signed 32-bit integers"]
3147pub const hipResourceViewFormat_hipResViewFormatSignedInt4: hipResourceViewFormat = 18;
3148#[doc = "< 1 channel, 16-bit floating point"]
3149pub const hipResourceViewFormat_hipResViewFormatHalf1: hipResourceViewFormat = 19;
3150#[doc = "< 2 channels, 16-bit floating point"]
3151pub const hipResourceViewFormat_hipResViewFormatHalf2: hipResourceViewFormat = 20;
3152#[doc = "< 4 channels, 16-bit floating point"]
3153pub const hipResourceViewFormat_hipResViewFormatHalf4: hipResourceViewFormat = 21;
3154#[doc = "< 1 channel, 32-bit floating point"]
3155pub const hipResourceViewFormat_hipResViewFormatFloat1: hipResourceViewFormat = 22;
3156#[doc = "< 2 channels, 32-bit floating point"]
3157pub const hipResourceViewFormat_hipResViewFormatFloat2: hipResourceViewFormat = 23;
3158#[doc = "< 4 channels, 32-bit floating point"]
3159pub const hipResourceViewFormat_hipResViewFormatFloat4: hipResourceViewFormat = 24;
3160#[doc = "< Block-compressed 1"]
3161pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed1: hipResourceViewFormat =
3162    25;
3163#[doc = "< Block-compressed 2"]
3164pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed2: hipResourceViewFormat =
3165    26;
3166#[doc = "< Block-compressed 3"]
3167pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed3: hipResourceViewFormat =
3168    27;
3169#[doc = "< Block-compressed 4 unsigned"]
3170pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed4: hipResourceViewFormat =
3171    28;
3172#[doc = "< Block-compressed 4 signed"]
3173pub const hipResourceViewFormat_hipResViewFormatSignedBlockCompressed4: hipResourceViewFormat = 29;
3174#[doc = "< Block-compressed 5 unsigned"]
3175pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed5: hipResourceViewFormat =
3176    30;
3177#[doc = "< Block-compressed 5 signed"]
3178pub const hipResourceViewFormat_hipResViewFormatSignedBlockCompressed5: hipResourceViewFormat = 31;
3179#[doc = "< Block-compressed 6 unsigned half-float"]
3180pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed6H: hipResourceViewFormat =
3181    32;
3182#[doc = "< Block-compressed 6 signed half-float"]
3183pub const hipResourceViewFormat_hipResViewFormatSignedBlockCompressed6H: hipResourceViewFormat = 33;
3184#[doc = "< Block-compressed 7"]
3185pub const hipResourceViewFormat_hipResViewFormatUnsignedBlockCompressed7: hipResourceViewFormat =
3186    34;
3187#[doc = " HIP texture resource view formats"]
3188pub type hipResourceViewFormat = ::std::os::raw::c_uint;
3189#[doc = "< No resource view format (use underlying resource format)"]
3190pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_NONE: HIPresourceViewFormat_enum = 0;
3191#[doc = "< 1 channel, unsigned 8-bit integers"]
3192pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_1X8: HIPresourceViewFormat_enum = 1;
3193#[doc = "< 2 channels, unsigned 8-bit integers"]
3194pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_2X8: HIPresourceViewFormat_enum = 2;
3195#[doc = "< 4 channels, unsigned 8-bit integers"]
3196pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_4X8: HIPresourceViewFormat_enum = 3;
3197#[doc = "< 1 channel, signed 8-bit integers"]
3198pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_1X8: HIPresourceViewFormat_enum = 4;
3199#[doc = "< 2 channels, signed 8-bit integers"]
3200pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_2X8: HIPresourceViewFormat_enum = 5;
3201#[doc = "< 4 channels, signed 8-bit integers"]
3202pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_4X8: HIPresourceViewFormat_enum = 6;
3203#[doc = "< 1 channel, unsigned 16-bit integers"]
3204pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_1X16: HIPresourceViewFormat_enum = 7;
3205#[doc = "< 2 channels, unsigned 16-bit integers"]
3206pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_2X16: HIPresourceViewFormat_enum = 8;
3207#[doc = "< 4 channels, unsigned 16-bit integers"]
3208pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_4X16: HIPresourceViewFormat_enum = 9;
3209#[doc = "< 1 channel, signed 16-bit integers"]
3210pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_1X16: HIPresourceViewFormat_enum = 10;
3211#[doc = "< 2 channels, signed 16-bit integers"]
3212pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_2X16: HIPresourceViewFormat_enum = 11;
3213#[doc = "< 4 channels, signed 16-bit integers"]
3214pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_4X16: HIPresourceViewFormat_enum = 12;
3215#[doc = "< 1 channel, unsigned 32-bit integers"]
3216pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_1X32: HIPresourceViewFormat_enum = 13;
3217#[doc = "< 2 channels, unsigned 32-bit integers"]
3218pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_2X32: HIPresourceViewFormat_enum = 14;
3219#[doc = "< 4 channels, unsigned 32-bit integers"]
3220pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UINT_4X32: HIPresourceViewFormat_enum = 15;
3221#[doc = "< 1 channel, signed 32-bit integers"]
3222pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_1X32: HIPresourceViewFormat_enum = 16;
3223#[doc = "< 2 channels, signed 32-bit integers"]
3224pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_2X32: HIPresourceViewFormat_enum = 17;
3225#[doc = "< 4 channels, signed 32-bit integers"]
3226pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SINT_4X32: HIPresourceViewFormat_enum = 18;
3227#[doc = "< 1 channel, 16-bit floating point"]
3228pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_FLOAT_1X16: HIPresourceViewFormat_enum =
3229    19;
3230#[doc = "< 2 channels, 16-bit floating point"]
3231pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_FLOAT_2X16: HIPresourceViewFormat_enum =
3232    20;
3233#[doc = "< 4 channels, 16-bit floating point"]
3234pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_FLOAT_4X16: HIPresourceViewFormat_enum =
3235    21;
3236#[doc = "< 1 channel, 32-bit floating point"]
3237pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_FLOAT_1X32: HIPresourceViewFormat_enum =
3238    22;
3239#[doc = "< 2 channels, 32-bit floating point"]
3240pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_FLOAT_2X32: HIPresourceViewFormat_enum =
3241    23;
3242#[doc = "< 4 channels, 32-bit floating point"]
3243pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_FLOAT_4X32: HIPresourceViewFormat_enum =
3244    24;
3245#[doc = "< Block-compressed 1"]
3246pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC1: HIPresourceViewFormat_enum =
3247    25;
3248#[doc = "< Block-compressed 2"]
3249pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC2: HIPresourceViewFormat_enum =
3250    26;
3251#[doc = "< Block-compressed 3"]
3252pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC3: HIPresourceViewFormat_enum =
3253    27;
3254#[doc = "< Block-compressed 4 unsigned"]
3255pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC4: HIPresourceViewFormat_enum =
3256    28;
3257#[doc = "< Block-compressed 4 signed"]
3258pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SIGNED_BC4: HIPresourceViewFormat_enum =
3259    29;
3260#[doc = "< Block-compressed 5 unsigned"]
3261pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC5: HIPresourceViewFormat_enum =
3262    30;
3263#[doc = "< Block-compressed 5 signed"]
3264pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SIGNED_BC5: HIPresourceViewFormat_enum =
3265    31;
3266#[doc = "< Block-compressed 6 unsigned half-float"]
3267pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H: HIPresourceViewFormat_enum =
3268    32;
3269#[doc = "< Block-compressed 6 signed half-float"]
3270pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_SIGNED_BC6H: HIPresourceViewFormat_enum =
3271    33;
3272#[doc = "< Block-compressed 7"]
3273pub const HIPresourceViewFormat_enum_HIP_RES_VIEW_FORMAT_UNSIGNED_BC7: HIPresourceViewFormat_enum =
3274    34;
3275#[doc = " HIP texture resource view formats"]
3276pub type HIPresourceViewFormat_enum = ::std::os::raw::c_uint;
3277#[doc = " HIP texture resource view formats"]
3278pub use self::HIPresourceViewFormat_enum as HIPresourceViewFormat;
3279#[doc = " HIP resource descriptor"]
3280#[repr(C)]
3281#[derive(Copy, Clone)]
3282pub struct hipResourceDesc {
3283    #[doc = "< Resource type"]
3284    pub resType: hipResourceType,
3285    pub res: hipResourceDesc__bindgen_ty_1,
3286}
3287#[repr(C)]
3288#[derive(Copy, Clone)]
3289pub union hipResourceDesc__bindgen_ty_1 {
3290    pub array: hipResourceDesc__bindgen_ty_1__bindgen_ty_1,
3291    pub mipmap: hipResourceDesc__bindgen_ty_1__bindgen_ty_2,
3292    pub linear: hipResourceDesc__bindgen_ty_1__bindgen_ty_3,
3293    pub pitch2D: hipResourceDesc__bindgen_ty_1__bindgen_ty_4,
3294}
3295#[repr(C)]
3296#[derive(Debug, Copy, Clone)]
3297pub struct hipResourceDesc__bindgen_ty_1__bindgen_ty_1 {
3298    #[doc = "< HIP array"]
3299    pub array: hipArray_t,
3300}
3301#[repr(C)]
3302#[derive(Debug, Copy, Clone)]
3303pub struct hipResourceDesc__bindgen_ty_1__bindgen_ty_2 {
3304    #[doc = "< HIP mipmapped array"]
3305    pub mipmap: hipMipmappedArray_t,
3306}
3307#[repr(C)]
3308#[derive(Debug, Copy, Clone)]
3309pub struct hipResourceDesc__bindgen_ty_1__bindgen_ty_3 {
3310    #[doc = "< Device pointer"]
3311    pub devPtr: *mut ::std::os::raw::c_void,
3312    #[doc = "< Channel format description"]
3313    pub desc: hipChannelFormatDesc,
3314    #[doc = "< Size in bytes"]
3315    pub sizeInBytes: usize,
3316}
3317#[repr(C)]
3318#[derive(Debug, Copy, Clone)]
3319pub struct hipResourceDesc__bindgen_ty_1__bindgen_ty_4 {
3320    #[doc = "< Device pointer"]
3321    pub devPtr: *mut ::std::os::raw::c_void,
3322    #[doc = "< Channel format description"]
3323    pub desc: hipChannelFormatDesc,
3324    #[doc = "< Width of the array in elements"]
3325    pub width: usize,
3326    #[doc = "< Height of the array in elements"]
3327    pub height: usize,
3328    #[doc = "< Pitch between two rows in bytes"]
3329    pub pitchInBytes: usize,
3330}
3331#[doc = " HIP resource view descriptor struct"]
3332#[repr(C)]
3333#[derive(Copy, Clone)]
3334pub struct HIP_RESOURCE_DESC_st {
3335    #[doc = "< Resource type"]
3336    pub resType: HIPresourcetype,
3337    pub res: HIP_RESOURCE_DESC_st__bindgen_ty_1,
3338    #[doc = "< Flags (must be zero)"]
3339    pub flags: ::std::os::raw::c_uint,
3340}
3341#[repr(C)]
3342#[derive(Copy, Clone)]
3343pub union HIP_RESOURCE_DESC_st__bindgen_ty_1 {
3344    pub array: HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_1,
3345    pub mipmap: HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_2,
3346    pub linear: HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_3,
3347    pub pitch2D: HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_4,
3348    pub reserved: HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_5,
3349}
3350#[repr(C)]
3351#[derive(Debug, Copy, Clone)]
3352pub struct HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_1 {
3353    #[doc = "< HIP array"]
3354    pub hArray: hipArray_t,
3355}
3356#[repr(C)]
3357#[derive(Debug, Copy, Clone)]
3358pub struct HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_2 {
3359    #[doc = "< HIP mipmapped array"]
3360    pub hMipmappedArray: hipMipmappedArray_t,
3361}
3362#[repr(C)]
3363#[derive(Debug, Copy, Clone)]
3364pub struct HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_3 {
3365    #[doc = "< Device pointer"]
3366    pub devPtr: hipDeviceptr_t,
3367    #[doc = "< Array format"]
3368    pub format: hipArray_Format,
3369    #[doc = "< Channels per array element"]
3370    pub numChannels: ::std::os::raw::c_uint,
3371    #[doc = "< Size in bytes"]
3372    pub sizeInBytes: usize,
3373}
3374#[repr(C)]
3375#[derive(Debug, Copy, Clone)]
3376pub struct HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_4 {
3377    #[doc = "< Device pointer"]
3378    pub devPtr: hipDeviceptr_t,
3379    #[doc = "< Array format"]
3380    pub format: hipArray_Format,
3381    #[doc = "< Channels per array element"]
3382    pub numChannels: ::std::os::raw::c_uint,
3383    #[doc = "< Width of the array in elements"]
3384    pub width: usize,
3385    #[doc = "< Height of the array in elements"]
3386    pub height: usize,
3387    #[doc = "< Pitch between two rows in bytes"]
3388    pub pitchInBytes: usize,
3389}
3390#[repr(C)]
3391#[derive(Debug, Copy, Clone)]
3392pub struct HIP_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_5 {
3393    pub reserved: [::std::os::raw::c_int; 32usize],
3394}
3395#[doc = " HIP resource view descriptor struct"]
3396pub type HIP_RESOURCE_DESC = HIP_RESOURCE_DESC_st;
3397#[doc = " HIP resource view descriptor"]
3398#[repr(C)]
3399#[derive(Debug, Copy, Clone)]
3400pub struct hipResourceViewDesc {
3401    #[doc = "< Resource view format"]
3402    pub format: hipResourceViewFormat,
3403    #[doc = "< Width of the resource view"]
3404    pub width: usize,
3405    #[doc = "< Height of the resource view"]
3406    pub height: usize,
3407    #[doc = "< Depth of the resource view"]
3408    pub depth: usize,
3409    #[doc = "< First defined mipmap level"]
3410    pub firstMipmapLevel: ::std::os::raw::c_uint,
3411    #[doc = "< Last defined mipmap level"]
3412    pub lastMipmapLevel: ::std::os::raw::c_uint,
3413    #[doc = "< First layer index"]
3414    pub firstLayer: ::std::os::raw::c_uint,
3415    #[doc = "< Last layer index"]
3416    pub lastLayer: ::std::os::raw::c_uint,
3417}
3418#[doc = " Resource view descriptor"]
3419#[repr(C)]
3420#[derive(Debug, Copy, Clone)]
3421pub struct HIP_RESOURCE_VIEW_DESC_st {
3422    #[doc = "< Resource view format"]
3423    pub format: HIPresourceViewFormat,
3424    #[doc = "< Width of the resource view"]
3425    pub width: usize,
3426    #[doc = "< Height of the resource view"]
3427    pub height: usize,
3428    #[doc = "< Depth of the resource view"]
3429    pub depth: usize,
3430    #[doc = "< First defined mipmap level"]
3431    pub firstMipmapLevel: ::std::os::raw::c_uint,
3432    #[doc = "< Last defined mipmap level"]
3433    pub lastMipmapLevel: ::std::os::raw::c_uint,
3434    #[doc = "< First layer index"]
3435    pub firstLayer: ::std::os::raw::c_uint,
3436    #[doc = "< Last layer index"]
3437    pub lastLayer: ::std::os::raw::c_uint,
3438    pub reserved: [::std::os::raw::c_uint; 16usize],
3439}
3440#[doc = " Resource view descriptor"]
3441pub type HIP_RESOURCE_VIEW_DESC = HIP_RESOURCE_VIEW_DESC_st;
3442#[doc = "< Host-to-Host Copy"]
3443pub const hipMemcpyKind_hipMemcpyHostToHost: hipMemcpyKind = 0;
3444#[doc = "< Host-to-Device Copy"]
3445pub const hipMemcpyKind_hipMemcpyHostToDevice: hipMemcpyKind = 1;
3446#[doc = "< Device-to-Host Copy"]
3447pub const hipMemcpyKind_hipMemcpyDeviceToHost: hipMemcpyKind = 2;
3448#[doc = "< Device-to-Device Copy"]
3449pub const hipMemcpyKind_hipMemcpyDeviceToDevice: hipMemcpyKind = 3;
3450#[doc = "< Runtime will automatically determine\n<copy-kind based on virtual addresses."]
3451pub const hipMemcpyKind_hipMemcpyDefault: hipMemcpyKind = 4;
3452#[doc = "< Device-to-Device Copy without using compute units"]
3453pub const hipMemcpyKind_hipMemcpyDeviceToDeviceNoCU: hipMemcpyKind = 1024;
3454pub type hipMemcpyKind = ::std::os::raw::c_uint;
3455#[doc = " HIP pithed pointer"]
3456#[repr(C)]
3457#[derive(Debug, Copy, Clone)]
3458pub struct hipPitchedPtr {
3459    #[doc = "< Pointer to the allocated memory"]
3460    pub ptr: *mut ::std::os::raw::c_void,
3461    #[doc = "< Pitch in bytes"]
3462    pub pitch: usize,
3463    #[doc = "< Logical size of the first dimension of allocation in elements"]
3464    pub xsize: usize,
3465    #[doc = "< Logical size of the second dimension of allocation in elements"]
3466    pub ysize: usize,
3467}
3468#[doc = " HIP extent"]
3469#[repr(C)]
3470#[derive(Debug, Copy, Clone)]
3471pub struct hipExtent {
3472    pub width: usize,
3473    pub height: usize,
3474    pub depth: usize,
3475}
3476#[doc = "  HIP position"]
3477#[repr(C)]
3478#[derive(Debug, Copy, Clone)]
3479pub struct hipPos {
3480    #[doc = "< X coordinate"]
3481    pub x: usize,
3482    #[doc = "< Y coordinate"]
3483    pub y: usize,
3484    #[doc = "< Z coordinate"]
3485    pub z: usize,
3486}
3487#[doc = " HIP 3D memory copy parameters"]
3488#[repr(C)]
3489#[derive(Debug, Copy, Clone)]
3490pub struct hipMemcpy3DParms {
3491    #[doc = "< Source array"]
3492    pub srcArray: hipArray_t,
3493    #[doc = "< Source position"]
3494    pub srcPos: hipPos,
3495    #[doc = "< Source pointer"]
3496    pub srcPtr: hipPitchedPtr,
3497    #[doc = "< Destination array"]
3498    pub dstArray: hipArray_t,
3499    #[doc = "< Destination position"]
3500    pub dstPos: hipPos,
3501    #[doc = "< Destination pointer"]
3502    pub dstPtr: hipPitchedPtr,
3503    #[doc = "< Extent of 3D memory copy"]
3504    pub extent: hipExtent,
3505    #[doc = "< Kind of 3D memory copy"]
3506    pub kind: hipMemcpyKind,
3507}
3508#[doc = " HIP 3D memory copy"]
3509#[repr(C)]
3510#[derive(Debug, Copy, Clone)]
3511pub struct HIP_MEMCPY3D {
3512    #[doc = "< Source X in bytes"]
3513    pub srcXInBytes: usize,
3514    #[doc = "< Source Y"]
3515    pub srcY: usize,
3516    #[doc = "< Source Z"]
3517    pub srcZ: usize,
3518    #[doc = "< Source LOD"]
3519    pub srcLOD: usize,
3520    #[doc = "< Source memory type"]
3521    pub srcMemoryType: hipMemoryType,
3522    #[doc = "< Source host pointer"]
3523    pub srcHost: *const ::std::os::raw::c_void,
3524    #[doc = "< Source device"]
3525    pub srcDevice: hipDeviceptr_t,
3526    #[doc = "< Source array"]
3527    pub srcArray: hipArray_t,
3528    #[doc = "< Source pitch"]
3529    pub srcPitch: usize,
3530    #[doc = "< Source height"]
3531    pub srcHeight: usize,
3532    #[doc = "< Destination X in bytes"]
3533    pub dstXInBytes: usize,
3534    #[doc = "< Destination Y"]
3535    pub dstY: usize,
3536    #[doc = "< Destination Z"]
3537    pub dstZ: usize,
3538    #[doc = "< Destination LOD"]
3539    pub dstLOD: usize,
3540    #[doc = "< Destination memory type"]
3541    pub dstMemoryType: hipMemoryType,
3542    #[doc = "< Destination host pointer"]
3543    pub dstHost: *mut ::std::os::raw::c_void,
3544    #[doc = "< Destination device"]
3545    pub dstDevice: hipDeviceptr_t,
3546    #[doc = "< Destination array"]
3547    pub dstArray: hipArray_t,
3548    #[doc = "< Destination pitch"]
3549    pub dstPitch: usize,
3550    #[doc = "< Destination height"]
3551    pub dstHeight: usize,
3552    #[doc = "< Width in bytes of 3D memory copy"]
3553    pub WidthInBytes: usize,
3554    #[doc = "< Height in bytes of 3D memory copy"]
3555    pub Height: usize,
3556    #[doc = "< Depth in bytes of 3D memory copy"]
3557    pub Depth: usize,
3558}
3559#[doc = "< The maximum number of threads per block. Depends on function and device."]
3560pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK: hipFunction_attribute = 0;
3561#[doc = "< The statically allocated shared memory size in bytes per block required by the function."]
3562pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES: hipFunction_attribute = 1;
3563#[doc = "< The user-allocated constant memory by the function in bytes."]
3564pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES: hipFunction_attribute = 2;
3565#[doc = "< The local memory usage of each thread by this function in bytes."]
3566pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES: hipFunction_attribute = 3;
3567#[doc = "< The number of registers used by each thread of this function."]
3568pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_NUM_REGS: hipFunction_attribute = 4;
3569#[doc = "< PTX version"]
3570pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_PTX_VERSION: hipFunction_attribute = 5;
3571#[doc = "< Binary version"]
3572pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_BINARY_VERSION: hipFunction_attribute = 6;
3573#[doc = "< Cache mode"]
3574pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA: hipFunction_attribute = 7;
3575#[doc = "< The maximum dynamic shared memory per block for this function in bytes."]
3576pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES:
3577    hipFunction_attribute = 8;
3578#[doc = "< The shared memory carveout preference in percent of the maximum shared memory."]
3579pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT:
3580    hipFunction_attribute = 9;
3581pub const hipFunction_attribute_HIP_FUNC_ATTRIBUTE_MAX: hipFunction_attribute = 10;
3582pub type hipFunction_attribute = ::std::os::raw::c_uint;
3583#[doc = "< The context on which a pointer was allocated\n< @warning This attribute is not supported in HIP"]
3584pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_CONTEXT: hipPointer_attribute = 1;
3585#[doc = "< memory type describing the location of a pointer"]
3586pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_MEMORY_TYPE: hipPointer_attribute = 2;
3587#[doc = "< address at which the pointer is allocated on the device"]
3588pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_DEVICE_POINTER: hipPointer_attribute = 3;
3589#[doc = "< address at which the pointer is allocated on the host"]
3590pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_HOST_POINTER: hipPointer_attribute = 4;
3591#[doc = "< A pair of tokens for use with Linux kernel interface\n< @warning This attribute is not supported in HIP"]
3592pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_P2P_TOKENS: hipPointer_attribute = 5;
3593#[doc = "< Synchronize every synchronous memory operation\n< initiated on this region"]
3594pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS: hipPointer_attribute = 6;
3595#[doc = "< Unique ID for an allocated memory region"]
3596pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_BUFFER_ID: hipPointer_attribute = 7;
3597#[doc = "< Indicates if the pointer points to managed memory"]
3598pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_IS_MANAGED: hipPointer_attribute = 8;
3599#[doc = "< device ordinal of a device on which a pointer\n< was allocated or registered"]
3600pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL: hipPointer_attribute = 9;
3601#[doc = "< if this pointer maps to an allocation\n< that is suitable for hipIpcGetMemHandle\n< @warning This attribute is not supported in HIP"]
3602pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE:
3603    hipPointer_attribute = 10;
3604#[doc = "< Starting address for this requested pointer"]
3605pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR: hipPointer_attribute = 11;
3606#[doc = "< Size of the address range for this requested pointer"]
3607pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_RANGE_SIZE: hipPointer_attribute = 12;
3608#[doc = "< tells if this pointer is in a valid address range\n< that is mapped to a backing allocation"]
3609pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_MAPPED: hipPointer_attribute = 13;
3610#[doc = "< Bitmask of allowed hipmemAllocationHandleType\n< for this allocation @warning This attribute is not supported in HIP"]
3611pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES: hipPointer_attribute =
3612    14;
3613#[doc = "< returns if the memory referenced by\n< this pointer can be used with the GPUDirect RDMA API\n< @warning This attribute is not supported in HIP"]
3614pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE:
3615    hipPointer_attribute = 15;
3616#[doc = "< Returns the access flags the device associated with\n< for the corresponding memory referenced by the ptr"]
3617pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS: hipPointer_attribute = 16;
3618#[doc = "< Returns the mempool handle for the allocation if\n< it was allocated from a mempool\n< @warning This attribute is not supported in HIP"]
3619pub const hipPointer_attribute_HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE: hipPointer_attribute = 17;
3620pub type hipPointer_attribute = ::std::os::raw::c_uint;
3621#[repr(C)]
3622#[derive(Debug, Copy, Clone)]
3623pub struct uchar1 {
3624    pub x: ::std::os::raw::c_uchar,
3625}
3626#[repr(C)]
3627#[derive(Debug, Copy, Clone)]
3628pub struct uchar2 {
3629    pub x: ::std::os::raw::c_uchar,
3630    pub y: ::std::os::raw::c_uchar,
3631}
3632#[repr(C)]
3633#[derive(Debug, Copy, Clone)]
3634pub struct uchar3 {
3635    pub x: ::std::os::raw::c_uchar,
3636    pub y: ::std::os::raw::c_uchar,
3637    pub z: ::std::os::raw::c_uchar,
3638}
3639#[repr(C)]
3640#[derive(Debug, Copy, Clone)]
3641pub struct uchar4 {
3642    pub x: ::std::os::raw::c_uchar,
3643    pub y: ::std::os::raw::c_uchar,
3644    pub z: ::std::os::raw::c_uchar,
3645    pub w: ::std::os::raw::c_uchar,
3646}
3647#[repr(C)]
3648#[derive(Debug, Copy, Clone)]
3649pub struct char1 {
3650    pub x: ::std::os::raw::c_char,
3651}
3652#[repr(C)]
3653#[derive(Debug, Copy, Clone)]
3654pub struct char2 {
3655    pub x: ::std::os::raw::c_char,
3656    pub y: ::std::os::raw::c_char,
3657}
3658#[repr(C)]
3659#[derive(Debug, Copy, Clone)]
3660pub struct char3 {
3661    pub x: ::std::os::raw::c_char,
3662    pub y: ::std::os::raw::c_char,
3663    pub z: ::std::os::raw::c_char,
3664}
3665#[repr(C)]
3666#[derive(Debug, Copy, Clone)]
3667pub struct char4 {
3668    pub x: ::std::os::raw::c_char,
3669    pub y: ::std::os::raw::c_char,
3670    pub z: ::std::os::raw::c_char,
3671    pub w: ::std::os::raw::c_char,
3672}
3673#[repr(C)]
3674#[derive(Debug, Copy, Clone)]
3675pub struct ushort1 {
3676    pub x: ::std::os::raw::c_ushort,
3677}
3678#[repr(C)]
3679#[derive(Debug, Copy, Clone)]
3680pub struct ushort2 {
3681    pub x: ::std::os::raw::c_ushort,
3682    pub y: ::std::os::raw::c_ushort,
3683}
3684#[repr(C)]
3685#[derive(Debug, Copy, Clone)]
3686pub struct ushort3 {
3687    pub x: ::std::os::raw::c_ushort,
3688    pub y: ::std::os::raw::c_ushort,
3689    pub z: ::std::os::raw::c_ushort,
3690}
3691#[repr(C)]
3692#[derive(Debug, Copy, Clone)]
3693pub struct ushort4 {
3694    pub x: ::std::os::raw::c_ushort,
3695    pub y: ::std::os::raw::c_ushort,
3696    pub z: ::std::os::raw::c_ushort,
3697    pub w: ::std::os::raw::c_ushort,
3698}
3699#[repr(C)]
3700#[derive(Debug, Copy, Clone)]
3701pub struct short1 {
3702    pub x: ::std::os::raw::c_short,
3703}
3704#[repr(C)]
3705#[derive(Debug, Copy, Clone)]
3706pub struct short2 {
3707    pub x: ::std::os::raw::c_short,
3708    pub y: ::std::os::raw::c_short,
3709}
3710#[repr(C)]
3711#[derive(Debug, Copy, Clone)]
3712pub struct short3 {
3713    pub x: ::std::os::raw::c_short,
3714    pub y: ::std::os::raw::c_short,
3715    pub z: ::std::os::raw::c_short,
3716}
3717#[repr(C)]
3718#[derive(Debug, Copy, Clone)]
3719pub struct short4 {
3720    pub x: ::std::os::raw::c_short,
3721    pub y: ::std::os::raw::c_short,
3722    pub z: ::std::os::raw::c_short,
3723    pub w: ::std::os::raw::c_short,
3724}
3725#[repr(C)]
3726#[derive(Debug, Copy, Clone)]
3727pub struct uint1 {
3728    pub x: ::std::os::raw::c_uint,
3729}
3730#[repr(C)]
3731#[derive(Debug, Copy, Clone)]
3732pub struct uint2 {
3733    pub x: ::std::os::raw::c_uint,
3734    pub y: ::std::os::raw::c_uint,
3735}
3736#[repr(C)]
3737#[derive(Debug, Copy, Clone)]
3738pub struct uint3 {
3739    pub x: ::std::os::raw::c_uint,
3740    pub y: ::std::os::raw::c_uint,
3741    pub z: ::std::os::raw::c_uint,
3742}
3743#[repr(C)]
3744#[derive(Debug, Copy, Clone)]
3745pub struct uint4 {
3746    pub x: ::std::os::raw::c_uint,
3747    pub y: ::std::os::raw::c_uint,
3748    pub z: ::std::os::raw::c_uint,
3749    pub w: ::std::os::raw::c_uint,
3750}
3751#[repr(C)]
3752#[derive(Debug, Copy, Clone)]
3753pub struct int1 {
3754    pub x: ::std::os::raw::c_int,
3755}
3756#[repr(C)]
3757#[derive(Debug, Copy, Clone)]
3758pub struct int2 {
3759    pub x: ::std::os::raw::c_int,
3760    pub y: ::std::os::raw::c_int,
3761}
3762#[repr(C)]
3763#[derive(Debug, Copy, Clone)]
3764pub struct int3 {
3765    pub x: ::std::os::raw::c_int,
3766    pub y: ::std::os::raw::c_int,
3767    pub z: ::std::os::raw::c_int,
3768}
3769#[repr(C)]
3770#[derive(Debug, Copy, Clone)]
3771pub struct int4 {
3772    pub x: ::std::os::raw::c_int,
3773    pub y: ::std::os::raw::c_int,
3774    pub z: ::std::os::raw::c_int,
3775    pub w: ::std::os::raw::c_int,
3776}
3777#[repr(C)]
3778#[derive(Debug, Copy, Clone)]
3779pub struct ulong1 {
3780    pub x: ::std::os::raw::c_ulong,
3781}
3782#[repr(C)]
3783#[derive(Debug, Copy, Clone)]
3784pub struct ulong2 {
3785    pub x: ::std::os::raw::c_ulong,
3786    pub y: ::std::os::raw::c_ulong,
3787}
3788#[repr(C)]
3789#[derive(Debug, Copy, Clone)]
3790pub struct ulong3 {
3791    pub x: ::std::os::raw::c_ulong,
3792    pub y: ::std::os::raw::c_ulong,
3793    pub z: ::std::os::raw::c_ulong,
3794}
3795#[repr(C)]
3796#[derive(Debug, Copy, Clone)]
3797pub struct ulong4 {
3798    pub x: ::std::os::raw::c_ulong,
3799    pub y: ::std::os::raw::c_ulong,
3800    pub z: ::std::os::raw::c_ulong,
3801    pub w: ::std::os::raw::c_ulong,
3802}
3803#[repr(C)]
3804#[derive(Debug, Copy, Clone)]
3805pub struct long1 {
3806    pub x: ::std::os::raw::c_long,
3807}
3808#[repr(C)]
3809#[derive(Debug, Copy, Clone)]
3810pub struct long2 {
3811    pub x: ::std::os::raw::c_long,
3812    pub y: ::std::os::raw::c_long,
3813}
3814#[repr(C)]
3815#[derive(Debug, Copy, Clone)]
3816pub struct long3 {
3817    pub x: ::std::os::raw::c_long,
3818    pub y: ::std::os::raw::c_long,
3819    pub z: ::std::os::raw::c_long,
3820}
3821#[repr(C)]
3822#[derive(Debug, Copy, Clone)]
3823pub struct long4 {
3824    pub x: ::std::os::raw::c_long,
3825    pub y: ::std::os::raw::c_long,
3826    pub z: ::std::os::raw::c_long,
3827    pub w: ::std::os::raw::c_long,
3828}
3829#[repr(C)]
3830#[derive(Debug, Copy, Clone)]
3831pub struct ulonglong1 {
3832    pub x: ::std::os::raw::c_ulonglong,
3833}
3834#[repr(C)]
3835#[derive(Debug, Copy, Clone)]
3836pub struct ulonglong2 {
3837    pub x: ::std::os::raw::c_ulonglong,
3838    pub y: ::std::os::raw::c_ulonglong,
3839}
3840#[repr(C)]
3841#[derive(Debug, Copy, Clone)]
3842pub struct ulonglong3 {
3843    pub x: ::std::os::raw::c_ulonglong,
3844    pub y: ::std::os::raw::c_ulonglong,
3845    pub z: ::std::os::raw::c_ulonglong,
3846}
3847#[repr(C)]
3848#[derive(Debug, Copy, Clone)]
3849pub struct ulonglong4 {
3850    pub x: ::std::os::raw::c_ulonglong,
3851    pub y: ::std::os::raw::c_ulonglong,
3852    pub z: ::std::os::raw::c_ulonglong,
3853    pub w: ::std::os::raw::c_ulonglong,
3854}
3855#[repr(C)]
3856#[derive(Debug, Copy, Clone)]
3857pub struct longlong1 {
3858    pub x: ::std::os::raw::c_longlong,
3859}
3860#[repr(C)]
3861#[derive(Debug, Copy, Clone)]
3862pub struct longlong2 {
3863    pub x: ::std::os::raw::c_longlong,
3864    pub y: ::std::os::raw::c_longlong,
3865}
3866#[repr(C)]
3867#[derive(Debug, Copy, Clone)]
3868pub struct longlong3 {
3869    pub x: ::std::os::raw::c_longlong,
3870    pub y: ::std::os::raw::c_longlong,
3871    pub z: ::std::os::raw::c_longlong,
3872}
3873#[repr(C)]
3874#[derive(Debug, Copy, Clone)]
3875pub struct longlong4 {
3876    pub x: ::std::os::raw::c_longlong,
3877    pub y: ::std::os::raw::c_longlong,
3878    pub z: ::std::os::raw::c_longlong,
3879    pub w: ::std::os::raw::c_longlong,
3880}
3881#[repr(C)]
3882#[derive(Debug, Copy, Clone)]
3883pub struct float1 {
3884    pub x: f32,
3885}
3886#[repr(C)]
3887#[derive(Debug, Copy, Clone)]
3888pub struct float2 {
3889    pub x: f32,
3890    pub y: f32,
3891}
3892#[repr(C)]
3893#[derive(Debug, Copy, Clone)]
3894pub struct float3 {
3895    pub x: f32,
3896    pub y: f32,
3897    pub z: f32,
3898}
3899#[repr(C)]
3900#[derive(Debug, Copy, Clone)]
3901pub struct float4 {
3902    pub x: f32,
3903    pub y: f32,
3904    pub z: f32,
3905    pub w: f32,
3906}
3907#[repr(C)]
3908#[derive(Debug, Copy, Clone)]
3909pub struct double1 {
3910    pub x: f64,
3911}
3912#[repr(C)]
3913#[derive(Debug, Copy, Clone)]
3914pub struct double2 {
3915    pub x: f64,
3916    pub y: f64,
3917}
3918#[repr(C)]
3919#[derive(Debug, Copy, Clone)]
3920pub struct double3 {
3921    pub x: f64,
3922    pub y: f64,
3923    pub z: f64,
3924}
3925#[repr(C)]
3926#[derive(Debug, Copy, Clone)]
3927pub struct double4 {
3928    pub x: f64,
3929    pub y: f64,
3930    pub z: f64,
3931    pub w: f64,
3932}
3933extern "C" {
3934    pub fn hipCreateChannelDesc(
3935        x: ::std::os::raw::c_int,
3936        y: ::std::os::raw::c_int,
3937        z: ::std::os::raw::c_int,
3938        w: ::std::os::raw::c_int,
3939        f: hipChannelFormatKind,
3940    ) -> hipChannelFormatDesc;
3941}
3942#[doc = " An opaque value that represents a hip texture object"]
3943#[repr(C)]
3944#[derive(Debug, Copy, Clone)]
3945pub struct __hip_texture {
3946    _unused: [u8; 0],
3947}
3948pub type hipTextureObject_t = *mut __hip_texture;
3949pub const hipTextureAddressMode_hipAddressModeWrap: hipTextureAddressMode = 0;
3950pub const hipTextureAddressMode_hipAddressModeClamp: hipTextureAddressMode = 1;
3951pub const hipTextureAddressMode_hipAddressModeMirror: hipTextureAddressMode = 2;
3952pub const hipTextureAddressMode_hipAddressModeBorder: hipTextureAddressMode = 3;
3953#[doc = " hip texture address modes"]
3954pub type hipTextureAddressMode = ::std::os::raw::c_uint;
3955pub const hipTextureFilterMode_hipFilterModePoint: hipTextureFilterMode = 0;
3956pub const hipTextureFilterMode_hipFilterModeLinear: hipTextureFilterMode = 1;
3957#[doc = " hip texture filter modes"]
3958pub type hipTextureFilterMode = ::std::os::raw::c_uint;
3959pub const hipTextureReadMode_hipReadModeElementType: hipTextureReadMode = 0;
3960pub const hipTextureReadMode_hipReadModeNormalizedFloat: hipTextureReadMode = 1;
3961#[doc = " hip texture read modes"]
3962pub type hipTextureReadMode = ::std::os::raw::c_uint;
3963#[doc = " hip texture reference"]
3964#[repr(C)]
3965#[derive(Debug, Copy, Clone)]
3966pub struct textureReference {
3967    pub normalized: ::std::os::raw::c_int,
3968    pub readMode: hipTextureReadMode,
3969    pub filterMode: hipTextureFilterMode,
3970    pub addressMode: [hipTextureAddressMode; 3usize],
3971    pub channelDesc: hipChannelFormatDesc,
3972    pub sRGB: ::std::os::raw::c_int,
3973    pub maxAnisotropy: ::std::os::raw::c_uint,
3974    pub mipmapFilterMode: hipTextureFilterMode,
3975    pub mipmapLevelBias: f32,
3976    pub minMipmapLevelClamp: f32,
3977    pub maxMipmapLevelClamp: f32,
3978    pub textureObject: hipTextureObject_t,
3979    pub numChannels: ::std::os::raw::c_int,
3980    pub format: hipArray_Format,
3981}
3982#[doc = " hip texture descriptor"]
3983#[repr(C)]
3984#[derive(Debug, Copy, Clone)]
3985pub struct hipTextureDesc {
3986    pub addressMode: [hipTextureAddressMode; 3usize],
3987    pub filterMode: hipTextureFilterMode,
3988    pub readMode: hipTextureReadMode,
3989    pub sRGB: ::std::os::raw::c_int,
3990    pub borderColor: [f32; 4usize],
3991    pub normalizedCoords: ::std::os::raw::c_int,
3992    pub maxAnisotropy: ::std::os::raw::c_uint,
3993    pub mipmapFilterMode: hipTextureFilterMode,
3994    pub mipmapLevelBias: f32,
3995    pub minMipmapLevelClamp: f32,
3996    pub maxMipmapLevelClamp: f32,
3997}
3998#[doc = " An opaque value that represents a hip surface object"]
3999#[repr(C)]
4000#[derive(Debug, Copy, Clone)]
4001pub struct __hip_surface {
4002    _unused: [u8; 0],
4003}
4004pub type hipSurfaceObject_t = *mut __hip_surface;
4005#[doc = " hip surface reference"]
4006#[repr(C)]
4007#[derive(Debug, Copy, Clone)]
4008pub struct surfaceReference {
4009    pub surfaceObject: hipSurfaceObject_t,
4010}
4011pub const hipSurfaceBoundaryMode_hipBoundaryModeZero: hipSurfaceBoundaryMode = 0;
4012pub const hipSurfaceBoundaryMode_hipBoundaryModeTrap: hipSurfaceBoundaryMode = 1;
4013pub const hipSurfaceBoundaryMode_hipBoundaryModeClamp: hipSurfaceBoundaryMode = 2;
4014#[doc = " hip surface boundary modes"]
4015pub type hipSurfaceBoundaryMode = ::std::os::raw::c_uint;
4016#[repr(C)]
4017#[derive(Debug, Copy, Clone)]
4018pub struct ihipCtx_t {
4019    _unused: [u8; 0],
4020}
4021pub type hipCtx_t = *mut ihipCtx_t;
4022pub type hipDevice_t = ::std::os::raw::c_int;
4023pub const hipDeviceP2PAttr_hipDevP2PAttrPerformanceRank: hipDeviceP2PAttr = 0;
4024pub const hipDeviceP2PAttr_hipDevP2PAttrAccessSupported: hipDeviceP2PAttr = 1;
4025pub const hipDeviceP2PAttr_hipDevP2PAttrNativeAtomicSupported: hipDeviceP2PAttr = 2;
4026pub const hipDeviceP2PAttr_hipDevP2PAttrHipArrayAccessSupported: hipDeviceP2PAttr = 3;
4027pub type hipDeviceP2PAttr = ::std::os::raw::c_uint;
4028#[repr(C)]
4029#[derive(Debug, Copy, Clone)]
4030pub struct ihipStream_t {
4031    _unused: [u8; 0],
4032}
4033pub type hipStream_t = *mut ihipStream_t;
4034#[repr(C)]
4035#[derive(Debug, Copy, Clone)]
4036pub struct hipIpcMemHandle_st {
4037    pub reserved: [::std::os::raw::c_char; 64usize],
4038}
4039pub type hipIpcMemHandle_t = hipIpcMemHandle_st;
4040#[repr(C)]
4041#[derive(Debug, Copy, Clone)]
4042pub struct hipIpcEventHandle_st {
4043    pub reserved: [::std::os::raw::c_char; 64usize],
4044}
4045pub type hipIpcEventHandle_t = hipIpcEventHandle_st;
4046#[repr(C)]
4047#[derive(Debug, Copy, Clone)]
4048pub struct ihipModule_t {
4049    _unused: [u8; 0],
4050}
4051pub type hipModule_t = *mut ihipModule_t;
4052#[repr(C)]
4053#[derive(Debug, Copy, Clone)]
4054pub struct ihipModuleSymbol_t {
4055    _unused: [u8; 0],
4056}
4057pub type hipFunction_t = *mut ihipModuleSymbol_t;
4058#[repr(C)]
4059#[derive(Debug, Copy, Clone)]
4060pub struct ihipLinkState_t {
4061    _unused: [u8; 0],
4062}
4063pub type hipLinkState_t = *mut ihipLinkState_t;
4064#[repr(C)]
4065#[derive(Debug, Copy, Clone)]
4066pub struct ihipMemPoolHandle_t {
4067    _unused: [u8; 0],
4068}
4069#[doc = " HIP memory pool"]
4070pub type hipMemPool_t = *mut ihipMemPoolHandle_t;
4071#[repr(C)]
4072#[derive(Debug, Copy, Clone)]
4073pub struct hipFuncAttributes {
4074    pub binaryVersion: ::std::os::raw::c_int,
4075    pub cacheModeCA: ::std::os::raw::c_int,
4076    pub constSizeBytes: usize,
4077    pub localSizeBytes: usize,
4078    pub maxDynamicSharedSizeBytes: ::std::os::raw::c_int,
4079    pub maxThreadsPerBlock: ::std::os::raw::c_int,
4080    pub numRegs: ::std::os::raw::c_int,
4081    pub preferredShmemCarveout: ::std::os::raw::c_int,
4082    pub ptxVersion: ::std::os::raw::c_int,
4083    pub sharedSizeBytes: usize,
4084}
4085#[repr(C)]
4086#[derive(Debug, Copy, Clone)]
4087pub struct ihipEvent_t {
4088    _unused: [u8; 0],
4089}
4090pub type hipEvent_t = *mut ihipEvent_t;
4091#[doc = "< Limit of stack size in bytes on the current device, per\n< thread. The size is in units of 256 dwords, up to the\n< limit of (128K - 16)"]
4092pub const hipLimit_t_hipLimitStackSize: hipLimit_t = 0;
4093#[doc = "< Size limit in bytes of fifo used by printf call on the\n< device. Currently not supported"]
4094pub const hipLimit_t_hipLimitPrintfFifoSize: hipLimit_t = 1;
4095#[doc = "< Limit of heap size in bytes on the current device, should\n< be less than the global memory size on the device"]
4096pub const hipLimit_t_hipLimitMallocHeapSize: hipLimit_t = 2;
4097#[doc = "< Supported limit range"]
4098pub const hipLimit_t_hipLimitRange: hipLimit_t = 3;
4099#[doc = " hipLimit\n\n @note In HIP device limit-related APIs, any input limit value other than those defined in the\n enum is treated as \"UnsupportedLimit\" by default."]
4100pub type hipLimit_t = ::std::os::raw::c_uint;
4101pub const hipStreamBatchMemOpType_hipStreamMemOpWaitValue32: hipStreamBatchMemOpType = 1;
4102pub const hipStreamBatchMemOpType_hipStreamMemOpWriteValue32: hipStreamBatchMemOpType = 2;
4103pub const hipStreamBatchMemOpType_hipStreamMemOpWaitValue64: hipStreamBatchMemOpType = 4;
4104pub const hipStreamBatchMemOpType_hipStreamMemOpWriteValue64: hipStreamBatchMemOpType = 5;
4105#[doc = "< Currently not supported"]
4106pub const hipStreamBatchMemOpType_hipStreamMemOpBarrier: hipStreamBatchMemOpType = 6;
4107#[doc = "< Currently not supported"]
4108pub const hipStreamBatchMemOpType_hipStreamMemOpFlushRemoteWrites: hipStreamBatchMemOpType = 3;
4109#[doc = " Operations for hipStreamBatchMemOp"]
4110pub type hipStreamBatchMemOpType = ::std::os::raw::c_uint;
4111#[doc = " @brief Union representing batch memory operation parameters for HIP streams.\n\n hipStreamBatchMemOpParams is used to specify the parameters for batch memory\n operations in a HIP stream. This union supports various operations including\n waiting for a specific value, writing a value, and different flags for wait conditions.\n\n @details\n The union includes fields for different types of operations defined in the\n enum hipStreamBatchMemOpType:\n - hipStreamMemOpWaitValue32:  Wait for a 32-bit value.\n - hipStreamMemOpWriteValue32: Write a 32-bit value.\n - hipStreamMemOpWaitValue64:  Wait for a 64-bit value.\n - hipStreamMemOpWriteValue64: Write a 64-bit value.\n\n Each operation type includes an address, the value to wait for or write, flags, and an\n optional alias that is not relevant on AMD GPUs. Flags can be used to specify different\n wait conditions such as equality, bitwise AND, greater than or equal, and bitwise NOR.\n\n Example usage:\n @code\n hipStreamBatchMemOpParams myArray[2];\n myArray[0].operation = hipStreamMemOpWaitValue32;\n myArray[0].waitValue.address = waitAddr1;\n myArray[0].waitValue.value = 0x1;\n myArray[0].waitValue.flags = CU_STREAM_WAIT_VALUE_EQ;\n\n myArray[1].operation = hipStreamMemOpWriteValue32;\n myArray[1].writeValue.address = writeAddr1;\n myArray[1].writeValue.value = 0x1;\n myArray[1].writeValue.flags = 0x0;\n\n result = hipStreamBatchMemOp(stream, 2, myArray, 0);\n @endcode"]
4112#[repr(C)]
4113#[derive(Copy, Clone)]
4114pub union hipStreamBatchMemOpParams_union {
4115    pub operation: hipStreamBatchMemOpType,
4116    pub waitValue: hipStreamBatchMemOpParams_union_hipStreamMemOpWaitValueParams_t,
4117    pub writeValue: hipStreamBatchMemOpParams_union_hipStreamMemOpWriteValueParams_t,
4118    #[doc = "< Currently not supported on AMD"]
4119    pub flushRemoteWrites: hipStreamBatchMemOpParams_union_hipStreamMemOpFlushRemoteWritesParams_t,
4120    #[doc = "< Currently not supported on AMD"]
4121    pub memoryBarrier: hipStreamBatchMemOpParams_union_hipStreamMemOpMemoryBarrierParams_t,
4122    pub pad: [u64; 6usize],
4123}
4124#[repr(C)]
4125#[derive(Copy, Clone)]
4126pub struct hipStreamBatchMemOpParams_union_hipStreamMemOpWaitValueParams_t {
4127    pub operation: hipStreamBatchMemOpType,
4128    pub address: hipDeviceptr_t,
4129    pub __bindgen_anon_1:
4130        hipStreamBatchMemOpParams_union_hipStreamMemOpWaitValueParams_t__bindgen_ty_1,
4131    pub flags: ::std::os::raw::c_uint,
4132    #[doc = "< Not valid for AMD backend. Initial value is unimportant"]
4133    pub alias: hipDeviceptr_t,
4134}
4135#[repr(C)]
4136#[derive(Copy, Clone)]
4137pub union hipStreamBatchMemOpParams_union_hipStreamMemOpWaitValueParams_t__bindgen_ty_1 {
4138    pub value: u32,
4139    pub value64: u64,
4140}
4141#[repr(C)]
4142#[derive(Copy, Clone)]
4143pub struct hipStreamBatchMemOpParams_union_hipStreamMemOpWriteValueParams_t {
4144    pub operation: hipStreamBatchMemOpType,
4145    pub address: hipDeviceptr_t,
4146    pub __bindgen_anon_1:
4147        hipStreamBatchMemOpParams_union_hipStreamMemOpWriteValueParams_t__bindgen_ty_1,
4148    pub flags: ::std::os::raw::c_uint,
4149    #[doc = "< Not valid for AMD backend. Initial value is unimportant"]
4150    pub alias: hipDeviceptr_t,
4151}
4152#[repr(C)]
4153#[derive(Copy, Clone)]
4154pub union hipStreamBatchMemOpParams_union_hipStreamMemOpWriteValueParams_t__bindgen_ty_1 {
4155    pub value: u32,
4156    pub value64: u64,
4157}
4158#[repr(C)]
4159#[derive(Debug, Copy, Clone)]
4160pub struct hipStreamBatchMemOpParams_union_hipStreamMemOpFlushRemoteWritesParams_t {
4161    pub operation: hipStreamBatchMemOpType,
4162    pub flags: ::std::os::raw::c_uint,
4163}
4164#[repr(C)]
4165#[derive(Debug, Copy, Clone)]
4166pub struct hipStreamBatchMemOpParams_union_hipStreamMemOpMemoryBarrierParams_t {
4167    pub operation: hipStreamBatchMemOpType,
4168    pub flags: ::std::os::raw::c_uint,
4169}
4170#[doc = " @brief Union representing batch memory operation parameters for HIP streams.\n\n hipStreamBatchMemOpParams is used to specify the parameters for batch memory\n operations in a HIP stream. This union supports various operations including\n waiting for a specific value, writing a value, and different flags for wait conditions.\n\n @details\n The union includes fields for different types of operations defined in the\n enum hipStreamBatchMemOpType:\n - hipStreamMemOpWaitValue32:  Wait for a 32-bit value.\n - hipStreamMemOpWriteValue32: Write a 32-bit value.\n - hipStreamMemOpWaitValue64:  Wait for a 64-bit value.\n - hipStreamMemOpWriteValue64: Write a 64-bit value.\n\n Each operation type includes an address, the value to wait for or write, flags, and an\n optional alias that is not relevant on AMD GPUs. Flags can be used to specify different\n wait conditions such as equality, bitwise AND, greater than or equal, and bitwise NOR.\n\n Example usage:\n @code\n hipStreamBatchMemOpParams myArray[2];\n myArray[0].operation = hipStreamMemOpWaitValue32;\n myArray[0].waitValue.address = waitAddr1;\n myArray[0].waitValue.value = 0x1;\n myArray[0].waitValue.flags = CU_STREAM_WAIT_VALUE_EQ;\n\n myArray[1].operation = hipStreamMemOpWriteValue32;\n myArray[1].writeValue.address = writeAddr1;\n myArray[1].writeValue.value = 0x1;\n myArray[1].writeValue.flags = 0x0;\n\n result = hipStreamBatchMemOp(stream, 2, myArray, 0);\n @endcode"]
4171pub type hipStreamBatchMemOpParams = hipStreamBatchMemOpParams_union;
4172#[doc = " @brief Structure representing node parameters for batch memory operations in HIP graphs.\n\n hipBatchMemOpNodeParams is used to specify the parameters for batch memory\n operations in HIP graphs. This struct includes the context to use for the operations, the\n number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.\n\n @details\n The structure includes the following fields:\n - ctx: The HIP context to use for the operations.\n - count: The number of operations in the paramArray.\n - paramArray: A pointer to an array of hipStreamBatchMemOpParams.\n - flags: Flags to control the node.\n\n Example usage:\n @code\n hipBatchMemOpNodeParams nodeParams;\n nodeParams.ctx = context;\n nodeParams.count = ARRAY_SIZE;\n nodeParams.paramArray = myArray;\n nodeParams.flags = 0;\n\n Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,\n hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams\n @endcode"]
4173#[repr(C)]
4174#[derive(Debug, Copy, Clone)]
4175pub struct hipBatchMemOpNodeParams {
4176    pub ctx: hipCtx_t,
4177    pub count: ::std::os::raw::c_uint,
4178    pub paramArray: *mut hipStreamBatchMemOpParams,
4179    pub flags: ::std::os::raw::c_uint,
4180}
4181#[doc = "< Data will mostly be read and only occassionally\n< be written to"]
4182pub const hipMemoryAdvise_hipMemAdviseSetReadMostly: hipMemoryAdvise = 1;
4183#[doc = "< Undo the effect of hipMemAdviseSetReadMostly"]
4184pub const hipMemoryAdvise_hipMemAdviseUnsetReadMostly: hipMemoryAdvise = 2;
4185#[doc = "< Set the preferred location for the data as\n< the specified device"]
4186pub const hipMemoryAdvise_hipMemAdviseSetPreferredLocation: hipMemoryAdvise = 3;
4187#[doc = "< Clear the preferred location for the data"]
4188pub const hipMemoryAdvise_hipMemAdviseUnsetPreferredLocation: hipMemoryAdvise = 4;
4189#[doc = "< Data will be accessed by the specified device\n< so prevent page faults as much as possible"]
4190pub const hipMemoryAdvise_hipMemAdviseSetAccessedBy: hipMemoryAdvise = 5;
4191#[doc = "< Let HIP to decide on the page faulting policy\n< for the specified device"]
4192pub const hipMemoryAdvise_hipMemAdviseUnsetAccessedBy: hipMemoryAdvise = 6;
4193#[doc = "< The default memory model is fine-grain. That allows\n< coherent operations between host and device, while\n< executing kernels. The coarse-grain can be used\n< for data that only needs to be coherent at dispatch\n< boundaries for better performance"]
4194pub const hipMemoryAdvise_hipMemAdviseSetCoarseGrain: hipMemoryAdvise = 100;
4195#[doc = "< Restores cache coherency policy back to fine-grain"]
4196pub const hipMemoryAdvise_hipMemAdviseUnsetCoarseGrain: hipMemoryAdvise = 101;
4197#[doc = " HIP Memory Advise values\n\n @note This memory advise enumeration is used on Linux, not Windows."]
4198pub type hipMemoryAdvise = ::std::os::raw::c_uint;
4199#[doc = "< Updates to memory with this attribute can be\n< done coherently from all devices"]
4200pub const hipMemRangeCoherencyMode_hipMemRangeCoherencyModeFineGrain: hipMemRangeCoherencyMode = 0;
4201#[doc = "< Writes to memory with this attribute can be\n< performed by a single device at a time"]
4202pub const hipMemRangeCoherencyMode_hipMemRangeCoherencyModeCoarseGrain: hipMemRangeCoherencyMode =
4203    1;
4204#[doc = "< Memory region queried contains subregions with\n< both hipMemRangeCoherencyModeFineGrain and\n< hipMemRangeCoherencyModeCoarseGrain attributes"]
4205pub const hipMemRangeCoherencyMode_hipMemRangeCoherencyModeIndeterminate: hipMemRangeCoherencyMode =
4206    2;
4207#[doc = " HIP Coherency Mode"]
4208pub type hipMemRangeCoherencyMode = ::std::os::raw::c_uint;
4209#[doc = "< Whether the range will mostly be read and\n< only occassionally be written to"]
4210pub const hipMemRangeAttribute_hipMemRangeAttributeReadMostly: hipMemRangeAttribute = 1;
4211#[doc = "< The preferred location of the range"]
4212pub const hipMemRangeAttribute_hipMemRangeAttributePreferredLocation: hipMemRangeAttribute = 2;
4213#[doc = "< Memory range has hipMemAdviseSetAccessedBy\n< set for the specified device"]
4214pub const hipMemRangeAttribute_hipMemRangeAttributeAccessedBy: hipMemRangeAttribute = 3;
4215#[doc = "< The last location to where the range was\n< prefetched"]
4216pub const hipMemRangeAttribute_hipMemRangeAttributeLastPrefetchLocation: hipMemRangeAttribute = 4;
4217#[doc = "< Returns coherency mode\n< @ref hipMemRangeCoherencyMode for the range"]
4218pub const hipMemRangeAttribute_hipMemRangeAttributeCoherencyMode: hipMemRangeAttribute = 100;
4219#[doc = " HIP range attributes"]
4220pub type hipMemRangeAttribute = ::std::os::raw::c_uint;
4221#[doc = " (value type = int)\n Allow @p hipMemAllocAsync to use memory asynchronously freed\n in another streams as long as a stream ordering dependency\n of the allocating stream on the free action exists.\n hip events and null stream interactions can create the required\n stream ordered dependencies. (default enabled)"]
4222pub const hipMemPoolAttr_hipMemPoolReuseFollowEventDependencies: hipMemPoolAttr = 1;
4223#[doc = " (value type = int)\n Allow reuse of already completed frees when there is no dependency\n between the free and allocation. (default enabled)"]
4224pub const hipMemPoolAttr_hipMemPoolReuseAllowOpportunistic: hipMemPoolAttr = 2;
4225#[doc = " (value type = int)\n Allow @p hipMemAllocAsync to insert new stream dependencies\n in order to establish the stream ordering required to reuse\n a piece of memory released by cuFreeAsync (default enabled)."]
4226pub const hipMemPoolAttr_hipMemPoolReuseAllowInternalDependencies: hipMemPoolAttr = 3;
4227#[doc = " (value type = uint64_t)\n Amount of reserved memory in bytes to hold onto before trying\n to release memory back to the OS. When more than the release\n threshold bytes of memory are held by the memory pool, the\n allocator will try to release memory back to the OS on the\n next call to stream, event or context synchronize. (default 0)"]
4228pub const hipMemPoolAttr_hipMemPoolAttrReleaseThreshold: hipMemPoolAttr = 4;
4229#[doc = " (value type = uint64_t)\n Amount of backing memory currently allocated for the mempool."]
4230pub const hipMemPoolAttr_hipMemPoolAttrReservedMemCurrent: hipMemPoolAttr = 5;
4231#[doc = " (value type = uint64_t)\n High watermark of backing memory allocated for the mempool since the\n last time it was reset. High watermark can only be reset to zero."]
4232pub const hipMemPoolAttr_hipMemPoolAttrReservedMemHigh: hipMemPoolAttr = 6;
4233#[doc = " (value type = uint64_t)\n Amount of memory from the pool that is currently in use by the application."]
4234pub const hipMemPoolAttr_hipMemPoolAttrUsedMemCurrent: hipMemPoolAttr = 7;
4235#[doc = " (value type = uint64_t)\n High watermark of the amount of memory from the pool that was in use by the application since\n the last time it was reset. High watermark can only be reset to zero."]
4236pub const hipMemPoolAttr_hipMemPoolAttrUsedMemHigh: hipMemPoolAttr = 8;
4237#[doc = " HIP memory pool attributes"]
4238pub type hipMemPoolAttr = ::std::os::raw::c_uint;
4239pub const hipMemLocationType_hipMemLocationTypeInvalid: hipMemLocationType = 0;
4240#[doc = "< Device location, thus it's HIP device ID"]
4241pub const hipMemLocationType_hipMemLocationTypeDevice: hipMemLocationType = 1;
4242#[doc = " Specifies the type of location"]
4243pub type hipMemLocationType = ::std::os::raw::c_uint;
4244#[doc = " Specifies a memory location.\n\n To specify a gpu, set type = @p hipMemLocationTypeDevice and set id = the gpu's device ID"]
4245#[repr(C)]
4246#[derive(Debug, Copy, Clone)]
4247pub struct hipMemLocation {
4248    #[doc = "< Specifies the location type, which describes the meaning of id"]
4249    pub type_: hipMemLocationType,
4250    #[doc = "< Identifier for the provided location type @p hipMemLocationType"]
4251    pub id: ::std::os::raw::c_int,
4252}
4253#[doc = "< Default, make the address range not accessible"]
4254pub const hipMemAccessFlags_hipMemAccessFlagsProtNone: hipMemAccessFlags = 0;
4255#[doc = "< Set the address range read accessible"]
4256pub const hipMemAccessFlags_hipMemAccessFlagsProtRead: hipMemAccessFlags = 1;
4257#[doc = "< Set the address range read-write accessible"]
4258pub const hipMemAccessFlags_hipMemAccessFlagsProtReadWrite: hipMemAccessFlags = 3;
4259#[doc = " Specifies the memory protection flags for mapping\n"]
4260pub type hipMemAccessFlags = ::std::os::raw::c_uint;
4261#[doc = " Memory access descriptor"]
4262#[repr(C)]
4263#[derive(Debug, Copy, Clone)]
4264pub struct hipMemAccessDesc {
4265    #[doc = "< Location on which the accessibility has to change"]
4266    pub location: hipMemLocation,
4267    #[doc = "< Accessibility flags to set"]
4268    pub flags: hipMemAccessFlags,
4269}
4270pub const hipMemAllocationType_hipMemAllocationTypeInvalid: hipMemAllocationType = 0;
4271#[doc = " This allocation type is 'pinned', i.e. cannot migrate from its current\n location while the application is actively using it"]
4272pub const hipMemAllocationType_hipMemAllocationTypePinned: hipMemAllocationType = 1;
4273#[doc = " This allocation type is 'pinned', i.e. cannot migrate from its current\n location while the application is actively using it"]
4274pub const hipMemAllocationType_hipMemAllocationTypeMax: hipMemAllocationType = 2147483647;
4275#[doc = " Defines the allocation types"]
4276pub type hipMemAllocationType = ::std::os::raw::c_uint;
4277#[doc = "< Does not allow any export mechanism"]
4278pub const hipMemAllocationHandleType_hipMemHandleTypeNone: hipMemAllocationHandleType = 0;
4279#[doc = "< Allows a file descriptor for exporting. Permitted only on POSIX systems"]
4280pub const hipMemAllocationHandleType_hipMemHandleTypePosixFileDescriptor:
4281    hipMemAllocationHandleType = 1;
4282#[doc = "< Allows a Win32 NT handle for exporting. (HANDLE)"]
4283pub const hipMemAllocationHandleType_hipMemHandleTypeWin32: hipMemAllocationHandleType = 2;
4284#[doc = "< Allows a Win32 KMT handle for exporting. (D3DKMT_HANDLE)"]
4285pub const hipMemAllocationHandleType_hipMemHandleTypeWin32Kmt: hipMemAllocationHandleType = 4;
4286#[doc = " Flags for specifying handle types for memory pool allocations\n"]
4287pub type hipMemAllocationHandleType = ::std::os::raw::c_uint;
4288#[doc = " Specifies the properties of allocations made from the pool."]
4289#[repr(C)]
4290#[derive(Debug, Copy, Clone)]
4291pub struct hipMemPoolProps {
4292    #[doc = "< Allocation type. Currently must be specified as @p hipMemAllocationTypePinned"]
4293    pub allocType: hipMemAllocationType,
4294    #[doc = "< Handle types that will be supported by allocations from the pool"]
4295    pub handleTypes: hipMemAllocationHandleType,
4296    #[doc = "< Location where allocations should reside"]
4297    pub location: hipMemLocation,
4298    #[doc = " Windows-specific LPSECURITYATTRIBUTES required when @p hipMemHandleTypeWin32 is specified"]
4299    pub win32SecurityAttributes: *mut ::std::os::raw::c_void,
4300    #[doc = "< Maximum pool size. When set to 0, defaults to a system dependent value"]
4301    pub maxSize: usize,
4302    #[doc = "< Reserved for future use, must be 0"]
4303    pub reserved: [::std::os::raw::c_uchar; 56usize],
4304}
4305#[doc = " Opaque data structure for exporting a pool allocation"]
4306#[repr(C)]
4307#[derive(Debug, Copy, Clone)]
4308pub struct hipMemPoolPtrExportData {
4309    pub reserved: [::std::os::raw::c_uchar; 64usize],
4310}
4311pub const hipFuncAttribute_hipFuncAttributeMaxDynamicSharedMemorySize: hipFuncAttribute = 8;
4312pub const hipFuncAttribute_hipFuncAttributePreferredSharedMemoryCarveout: hipFuncAttribute = 9;
4313pub const hipFuncAttribute_hipFuncAttributeMax: hipFuncAttribute = 10;
4314#[doc = " @warning On AMD devices and some Nvidia devices, these hints and controls are ignored."]
4315pub type hipFuncAttribute = ::std::os::raw::c_uint;
4316#[doc = "< no preference for shared memory or L1 (default)"]
4317pub const hipFuncCache_t_hipFuncCachePreferNone: hipFuncCache_t = 0;
4318#[doc = "< prefer larger shared memory and smaller L1 cache"]
4319pub const hipFuncCache_t_hipFuncCachePreferShared: hipFuncCache_t = 1;
4320#[doc = "< prefer larger L1 cache and smaller shared memory"]
4321pub const hipFuncCache_t_hipFuncCachePreferL1: hipFuncCache_t = 2;
4322#[doc = "< prefer equal size L1 cache and shared memory"]
4323pub const hipFuncCache_t_hipFuncCachePreferEqual: hipFuncCache_t = 3;
4324#[doc = " @warning On AMD devices and some Nvidia devices, these hints and controls are ignored."]
4325pub type hipFuncCache_t = ::std::os::raw::c_uint;
4326#[doc = "< The compiler selects a device-specific value for the banking."]
4327pub const hipSharedMemConfig_hipSharedMemBankSizeDefault: hipSharedMemConfig = 0;
4328#[doc = "< Shared mem is banked at 4-bytes intervals and performs best\n< when adjacent threads access data 4 bytes apart."]
4329pub const hipSharedMemConfig_hipSharedMemBankSizeFourByte: hipSharedMemConfig = 1;
4330#[doc = "< Shared mem is banked at 8-byte intervals and performs best\n< when adjacent threads access data 4 bytes apart."]
4331pub const hipSharedMemConfig_hipSharedMemBankSizeEightByte: hipSharedMemConfig = 2;
4332#[doc = " @warning On AMD devices and some Nvidia devices, these hints and controls are ignored."]
4333pub type hipSharedMemConfig = ::std::os::raw::c_uint;
4334#[doc = " Struct for data in 3D"]
4335#[repr(C)]
4336#[derive(Debug, Copy, Clone)]
4337pub struct dim3 {
4338    #[doc = "< x"]
4339    pub x: u32,
4340    #[doc = "< y"]
4341    pub y: u32,
4342    #[doc = "< z"]
4343    pub z: u32,
4344}
4345#[doc = " struct hipLaunchParams_t"]
4346#[repr(C)]
4347#[derive(Debug, Copy, Clone)]
4348pub struct hipLaunchParams_t {
4349    #[doc = "< Device function symbol"]
4350    pub func: *mut ::std::os::raw::c_void,
4351    #[doc = "< Grid dimensions"]
4352    pub gridDim: dim3,
4353    #[doc = "< Block dimensions"]
4354    pub blockDim: dim3,
4355    #[doc = "< Arguments"]
4356    pub args: *mut *mut ::std::os::raw::c_void,
4357    #[doc = "< Shared memory"]
4358    pub sharedMem: usize,
4359    #[doc = "< Stream identifier"]
4360    pub stream: hipStream_t,
4361}
4362#[doc = " struct hipLaunchParams_t"]
4363pub type hipLaunchParams = hipLaunchParams_t;
4364#[doc = " struct hipFunctionLaunchParams_t"]
4365#[repr(C)]
4366#[derive(Debug, Copy, Clone)]
4367pub struct hipFunctionLaunchParams_t {
4368    #[doc = "< Kernel to launch"]
4369    pub function: hipFunction_t,
4370    #[doc = "< Width(X) of grid in blocks"]
4371    pub gridDimX: ::std::os::raw::c_uint,
4372    #[doc = "< Height(Y) of grid in blocks"]
4373    pub gridDimY: ::std::os::raw::c_uint,
4374    #[doc = "< Depth(Z) of grid in blocks"]
4375    pub gridDimZ: ::std::os::raw::c_uint,
4376    #[doc = "< X dimension of each thread block"]
4377    pub blockDimX: ::std::os::raw::c_uint,
4378    #[doc = "< Y dimension of each thread block"]
4379    pub blockDimY: ::std::os::raw::c_uint,
4380    #[doc = "< Z dimension of each thread block"]
4381    pub blockDimZ: ::std::os::raw::c_uint,
4382    #[doc = "< Shared memory"]
4383    pub sharedMemBytes: ::std::os::raw::c_uint,
4384    #[doc = "< Stream identifier"]
4385    pub hStream: hipStream_t,
4386    #[doc = "< Kernel parameters"]
4387    pub kernelParams: *mut *mut ::std::os::raw::c_void,
4388}
4389#[doc = " struct hipFunctionLaunchParams_t"]
4390pub type hipFunctionLaunchParams = hipFunctionLaunchParams_t;
4391pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeOpaqueFd:
4392    hipExternalMemoryHandleType_enum = 1;
4393pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeOpaqueWin32:
4394    hipExternalMemoryHandleType_enum = 2;
4395pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeOpaqueWin32Kmt:
4396    hipExternalMemoryHandleType_enum = 3;
4397pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeD3D12Heap:
4398    hipExternalMemoryHandleType_enum = 4;
4399pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeD3D12Resource:
4400    hipExternalMemoryHandleType_enum = 5;
4401pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeD3D11Resource:
4402    hipExternalMemoryHandleType_enum = 6;
4403pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeD3D11ResourceKmt:
4404    hipExternalMemoryHandleType_enum = 7;
4405pub const hipExternalMemoryHandleType_enum_hipExternalMemoryHandleTypeNvSciBuf:
4406    hipExternalMemoryHandleType_enum = 8;
4407pub type hipExternalMemoryHandleType_enum = ::std::os::raw::c_uint;
4408pub use self::hipExternalMemoryHandleType_enum as hipExternalMemoryHandleType;
4409#[repr(C)]
4410#[derive(Copy, Clone)]
4411pub struct hipExternalMemoryHandleDesc_st {
4412    pub type_: hipExternalMemoryHandleType,
4413    pub handle: hipExternalMemoryHandleDesc_st__bindgen_ty_1,
4414    pub size: ::std::os::raw::c_ulonglong,
4415    pub flags: ::std::os::raw::c_uint,
4416    pub reserved: [::std::os::raw::c_uint; 16usize],
4417}
4418#[repr(C)]
4419#[derive(Copy, Clone)]
4420pub union hipExternalMemoryHandleDesc_st__bindgen_ty_1 {
4421    pub fd: ::std::os::raw::c_int,
4422    pub win32: hipExternalMemoryHandleDesc_st__bindgen_ty_1__bindgen_ty_1,
4423    pub nvSciBufObject: *const ::std::os::raw::c_void,
4424}
4425#[repr(C)]
4426#[derive(Debug, Copy, Clone)]
4427pub struct hipExternalMemoryHandleDesc_st__bindgen_ty_1__bindgen_ty_1 {
4428    pub handle: *mut ::std::os::raw::c_void,
4429    pub name: *const ::std::os::raw::c_void,
4430}
4431pub type hipExternalMemoryHandleDesc = hipExternalMemoryHandleDesc_st;
4432#[repr(C)]
4433#[derive(Debug, Copy, Clone)]
4434pub struct hipExternalMemoryBufferDesc_st {
4435    pub offset: ::std::os::raw::c_ulonglong,
4436    pub size: ::std::os::raw::c_ulonglong,
4437    pub flags: ::std::os::raw::c_uint,
4438    pub reserved: [::std::os::raw::c_uint; 16usize],
4439}
4440pub type hipExternalMemoryBufferDesc = hipExternalMemoryBufferDesc_st;
4441#[repr(C)]
4442#[derive(Debug, Copy, Clone)]
4443pub struct hipExternalMemoryMipmappedArrayDesc_st {
4444    pub offset: ::std::os::raw::c_ulonglong,
4445    pub formatDesc: hipChannelFormatDesc,
4446    pub extent: hipExtent,
4447    pub flags: ::std::os::raw::c_uint,
4448    pub numLevels: ::std::os::raw::c_uint,
4449}
4450pub type hipExternalMemoryMipmappedArrayDesc = hipExternalMemoryMipmappedArrayDesc_st;
4451pub type hipExternalMemory_t = *mut ::std::os::raw::c_void;
4452pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeOpaqueFd:
4453    hipExternalSemaphoreHandleType_enum = 1;
4454pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeOpaqueWin32:
4455    hipExternalSemaphoreHandleType_enum = 2;
4456pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeOpaqueWin32Kmt:
4457    hipExternalSemaphoreHandleType_enum = 3;
4458pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeD3D12Fence:
4459    hipExternalSemaphoreHandleType_enum = 4;
4460pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeD3D11Fence:
4461    hipExternalSemaphoreHandleType_enum = 5;
4462pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeNvSciSync:
4463    hipExternalSemaphoreHandleType_enum = 6;
4464pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeKeyedMutex:
4465    hipExternalSemaphoreHandleType_enum = 7;
4466pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeKeyedMutexKmt:
4467    hipExternalSemaphoreHandleType_enum = 8;
4468pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeTimelineSemaphoreFd:
4469    hipExternalSemaphoreHandleType_enum = 9;
4470pub const hipExternalSemaphoreHandleType_enum_hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32 : hipExternalSemaphoreHandleType_enum = 10 ;
4471pub type hipExternalSemaphoreHandleType_enum = ::std::os::raw::c_uint;
4472pub use self::hipExternalSemaphoreHandleType_enum as hipExternalSemaphoreHandleType;
4473#[repr(C)]
4474#[derive(Copy, Clone)]
4475pub struct hipExternalSemaphoreHandleDesc_st {
4476    pub type_: hipExternalSemaphoreHandleType,
4477    pub handle: hipExternalSemaphoreHandleDesc_st__bindgen_ty_1,
4478    pub flags: ::std::os::raw::c_uint,
4479    pub reserved: [::std::os::raw::c_uint; 16usize],
4480}
4481#[repr(C)]
4482#[derive(Copy, Clone)]
4483pub union hipExternalSemaphoreHandleDesc_st__bindgen_ty_1 {
4484    pub fd: ::std::os::raw::c_int,
4485    pub win32: hipExternalSemaphoreHandleDesc_st__bindgen_ty_1__bindgen_ty_1,
4486    pub NvSciSyncObj: *const ::std::os::raw::c_void,
4487}
4488#[repr(C)]
4489#[derive(Debug, Copy, Clone)]
4490pub struct hipExternalSemaphoreHandleDesc_st__bindgen_ty_1__bindgen_ty_1 {
4491    pub handle: *mut ::std::os::raw::c_void,
4492    pub name: *const ::std::os::raw::c_void,
4493}
4494pub type hipExternalSemaphoreHandleDesc = hipExternalSemaphoreHandleDesc_st;
4495pub type hipExternalSemaphore_t = *mut ::std::os::raw::c_void;
4496#[repr(C)]
4497#[derive(Copy, Clone)]
4498pub struct hipExternalSemaphoreSignalParams_st {
4499    pub params: hipExternalSemaphoreSignalParams_st__bindgen_ty_1,
4500    pub flags: ::std::os::raw::c_uint,
4501    pub reserved: [::std::os::raw::c_uint; 16usize],
4502}
4503#[repr(C)]
4504#[derive(Copy, Clone)]
4505pub struct hipExternalSemaphoreSignalParams_st__bindgen_ty_1 {
4506    pub fence: hipExternalSemaphoreSignalParams_st__bindgen_ty_1__bindgen_ty_1,
4507    pub nvSciSync: hipExternalSemaphoreSignalParams_st__bindgen_ty_1__bindgen_ty_2,
4508    pub keyedMutex: hipExternalSemaphoreSignalParams_st__bindgen_ty_1__bindgen_ty_3,
4509    pub reserved: [::std::os::raw::c_uint; 12usize],
4510}
4511#[repr(C)]
4512#[derive(Debug, Copy, Clone)]
4513pub struct hipExternalSemaphoreSignalParams_st__bindgen_ty_1__bindgen_ty_1 {
4514    pub value: ::std::os::raw::c_ulonglong,
4515}
4516#[repr(C)]
4517#[derive(Copy, Clone)]
4518pub union hipExternalSemaphoreSignalParams_st__bindgen_ty_1__bindgen_ty_2 {
4519    pub fence: *mut ::std::os::raw::c_void,
4520    pub reserved: ::std::os::raw::c_ulonglong,
4521}
4522#[repr(C)]
4523#[derive(Debug, Copy, Clone)]
4524pub struct hipExternalSemaphoreSignalParams_st__bindgen_ty_1__bindgen_ty_3 {
4525    pub key: ::std::os::raw::c_ulonglong,
4526}
4527pub type hipExternalSemaphoreSignalParams = hipExternalSemaphoreSignalParams_st;
4528#[doc = " External semaphore wait parameters, compatible with driver type"]
4529#[repr(C)]
4530#[derive(Copy, Clone)]
4531pub struct hipExternalSemaphoreWaitParams_st {
4532    pub params: hipExternalSemaphoreWaitParams_st__bindgen_ty_1,
4533    pub flags: ::std::os::raw::c_uint,
4534    pub reserved: [::std::os::raw::c_uint; 16usize],
4535}
4536#[repr(C)]
4537#[derive(Copy, Clone)]
4538pub struct hipExternalSemaphoreWaitParams_st__bindgen_ty_1 {
4539    pub fence: hipExternalSemaphoreWaitParams_st__bindgen_ty_1__bindgen_ty_1,
4540    pub nvSciSync: hipExternalSemaphoreWaitParams_st__bindgen_ty_1__bindgen_ty_2,
4541    pub keyedMutex: hipExternalSemaphoreWaitParams_st__bindgen_ty_1__bindgen_ty_3,
4542    pub reserved: [::std::os::raw::c_uint; 10usize],
4543}
4544#[repr(C)]
4545#[derive(Debug, Copy, Clone)]
4546pub struct hipExternalSemaphoreWaitParams_st__bindgen_ty_1__bindgen_ty_1 {
4547    pub value: ::std::os::raw::c_ulonglong,
4548}
4549#[repr(C)]
4550#[derive(Copy, Clone)]
4551pub union hipExternalSemaphoreWaitParams_st__bindgen_ty_1__bindgen_ty_2 {
4552    pub fence: *mut ::std::os::raw::c_void,
4553    pub reserved: ::std::os::raw::c_ulonglong,
4554}
4555#[repr(C)]
4556#[derive(Debug, Copy, Clone)]
4557pub struct hipExternalSemaphoreWaitParams_st__bindgen_ty_1__bindgen_ty_3 {
4558    pub key: ::std::os::raw::c_ulonglong,
4559    pub timeoutMs: ::std::os::raw::c_uint,
4560}
4561#[doc = " External semaphore wait parameters, compatible with driver type"]
4562pub type hipExternalSemaphoreWaitParams = hipExternalSemaphoreWaitParams_st;
4563extern "C" {
4564    #[doc = " Internal use only. This API may change in the future\n Pre-Compiled header for online compilation"]
4565    pub fn __hipGetPCH(pch: *mut *const ::std::os::raw::c_char, size: *mut ::std::os::raw::c_uint);
4566}
4567pub const hipGraphicsRegisterFlags_hipGraphicsRegisterFlagsNone: hipGraphicsRegisterFlags = 0;
4568#[doc = "< HIP will not write to this registered resource"]
4569pub const hipGraphicsRegisterFlags_hipGraphicsRegisterFlagsReadOnly: hipGraphicsRegisterFlags = 1;
4570pub const hipGraphicsRegisterFlags_hipGraphicsRegisterFlagsWriteDiscard: hipGraphicsRegisterFlags =
4571    2;
4572#[doc = "< HIP will bind this resource to a surface"]
4573pub const hipGraphicsRegisterFlags_hipGraphicsRegisterFlagsSurfaceLoadStore:
4574    hipGraphicsRegisterFlags = 4;
4575pub const hipGraphicsRegisterFlags_hipGraphicsRegisterFlagsTextureGather: hipGraphicsRegisterFlags =
4576    8;
4577#[doc = " HIP Access falgs for Interop resources."]
4578pub type hipGraphicsRegisterFlags = ::std::os::raw::c_uint;
4579#[repr(C)]
4580#[derive(Debug, Copy, Clone)]
4581pub struct _hipGraphicsResource {
4582    _unused: [u8; 0],
4583}
4584pub type hipGraphicsResource = _hipGraphicsResource;
4585pub type hipGraphicsResource_t = *mut hipGraphicsResource;
4586#[repr(C)]
4587#[derive(Debug, Copy, Clone)]
4588pub struct ihipGraph {
4589    _unused: [u8; 0],
4590}
4591#[doc = " An opaque value that represents a hip graph"]
4592pub type hipGraph_t = *mut ihipGraph;
4593#[repr(C)]
4594#[derive(Debug, Copy, Clone)]
4595pub struct hipGraphNode {
4596    _unused: [u8; 0],
4597}
4598#[doc = " An opaque value that represents a hip graph node"]
4599pub type hipGraphNode_t = *mut hipGraphNode;
4600#[repr(C)]
4601#[derive(Debug, Copy, Clone)]
4602pub struct hipGraphExec {
4603    _unused: [u8; 0],
4604}
4605#[doc = " An opaque value that represents a hip graph Exec"]
4606pub type hipGraphExec_t = *mut hipGraphExec;
4607#[repr(C)]
4608#[derive(Debug, Copy, Clone)]
4609pub struct hipUserObject {
4610    _unused: [u8; 0],
4611}
4612#[doc = " An opaque value that represents a user obj"]
4613pub type hipUserObject_t = *mut hipUserObject;
4614#[doc = "< GPU kernel node"]
4615pub const hipGraphNodeType_hipGraphNodeTypeKernel: hipGraphNodeType = 0;
4616#[doc = "< Memcpy node"]
4617pub const hipGraphNodeType_hipGraphNodeTypeMemcpy: hipGraphNodeType = 1;
4618#[doc = "< Memset node"]
4619pub const hipGraphNodeType_hipGraphNodeTypeMemset: hipGraphNodeType = 2;
4620#[doc = "< Host (executable) node"]
4621pub const hipGraphNodeType_hipGraphNodeTypeHost: hipGraphNodeType = 3;
4622#[doc = "< Node which executes an embedded graph"]
4623pub const hipGraphNodeType_hipGraphNodeTypeGraph: hipGraphNodeType = 4;
4624#[doc = "< Empty (no-op) node"]
4625pub const hipGraphNodeType_hipGraphNodeTypeEmpty: hipGraphNodeType = 5;
4626#[doc = "< External event wait node"]
4627pub const hipGraphNodeType_hipGraphNodeTypeWaitEvent: hipGraphNodeType = 6;
4628#[doc = "< External event record node"]
4629pub const hipGraphNodeType_hipGraphNodeTypeEventRecord: hipGraphNodeType = 7;
4630#[doc = "< External Semaphore signal node"]
4631pub const hipGraphNodeType_hipGraphNodeTypeExtSemaphoreSignal: hipGraphNodeType = 8;
4632#[doc = "< External Semaphore wait node"]
4633pub const hipGraphNodeType_hipGraphNodeTypeExtSemaphoreWait: hipGraphNodeType = 9;
4634#[doc = "< Memory alloc node"]
4635pub const hipGraphNodeType_hipGraphNodeTypeMemAlloc: hipGraphNodeType = 10;
4636#[doc = "< Memory free node"]
4637pub const hipGraphNodeType_hipGraphNodeTypeMemFree: hipGraphNodeType = 11;
4638#[doc = "< MemcpyFromSymbol node"]
4639pub const hipGraphNodeType_hipGraphNodeTypeMemcpyFromSymbol: hipGraphNodeType = 12;
4640#[doc = "< MemcpyToSymbol node"]
4641pub const hipGraphNodeType_hipGraphNodeTypeMemcpyToSymbol: hipGraphNodeType = 13;
4642#[doc = "< BatchMemOp node"]
4643pub const hipGraphNodeType_hipGraphNodeTypeBatchMemOp: hipGraphNodeType = 14;
4644pub const hipGraphNodeType_hipGraphNodeTypeCount: hipGraphNodeType = 15;
4645#[doc = " hipGraphNodeType"]
4646pub type hipGraphNodeType = ::std::os::raw::c_uint;
4647pub type hipHostFn_t =
4648    ::std::option::Option<unsafe extern "C" fn(userData: *mut ::std::os::raw::c_void)>;
4649#[repr(C)]
4650#[derive(Debug, Copy, Clone)]
4651pub struct hipHostNodeParams {
4652    pub fn_: hipHostFn_t,
4653    pub userData: *mut ::std::os::raw::c_void,
4654}
4655#[repr(C)]
4656#[derive(Debug, Copy, Clone)]
4657pub struct hipKernelNodeParams {
4658    pub blockDim: dim3,
4659    pub extra: *mut *mut ::std::os::raw::c_void,
4660    pub func: *mut ::std::os::raw::c_void,
4661    pub gridDim: dim3,
4662    pub kernelParams: *mut *mut ::std::os::raw::c_void,
4663    pub sharedMemBytes: ::std::os::raw::c_uint,
4664}
4665#[repr(C)]
4666#[derive(Debug, Copy, Clone)]
4667pub struct hipMemsetParams {
4668    pub dst: *mut ::std::os::raw::c_void,
4669    pub elementSize: ::std::os::raw::c_uint,
4670    pub height: usize,
4671    pub pitch: usize,
4672    pub value: ::std::os::raw::c_uint,
4673    pub width: usize,
4674}
4675#[repr(C)]
4676#[derive(Debug, Copy, Clone)]
4677pub struct hipMemAllocNodeParams {
4678    #[doc = "< Pool properties, which contain where\n< the location should reside"]
4679    pub poolProps: hipMemPoolProps,
4680    #[doc = "< The number of memory access descriptors."]
4681    pub accessDescs: *const hipMemAccessDesc,
4682    #[doc = "< The number of access descriptors.\n< Must not be bigger than the number of GPUs"]
4683    pub accessDescCount: usize,
4684    #[doc = "< The size of the requested allocation in bytes"]
4685    pub bytesize: usize,
4686    #[doc = "< Returned device address of the allocation"]
4687    pub dptr: *mut ::std::os::raw::c_void,
4688}
4689pub const hipAccessProperty_hipAccessPropertyNormal: hipAccessProperty = 0;
4690pub const hipAccessProperty_hipAccessPropertyStreaming: hipAccessProperty = 1;
4691pub const hipAccessProperty_hipAccessPropertyPersisting: hipAccessProperty = 2;
4692pub type hipAccessProperty = ::std::os::raw::c_uint;
4693#[repr(C)]
4694#[derive(Debug, Copy, Clone)]
4695pub struct hipAccessPolicyWindow {
4696    pub base_ptr: *mut ::std::os::raw::c_void,
4697    pub hitProp: hipAccessProperty,
4698    pub hitRatio: f32,
4699    pub missProp: hipAccessProperty,
4700    pub num_bytes: usize,
4701}
4702#[doc = "< Valid for Streams, graph nodes, launches"]
4703pub const hipLaunchAttributeID_hipLaunchAttributeAccessPolicyWindow: hipLaunchAttributeID = 1;
4704#[doc = "< Valid for graph nodes, launches"]
4705pub const hipLaunchAttributeID_hipLaunchAttributeCooperative: hipLaunchAttributeID = 2;
4706#[doc = "< Valid for graph node, streams, launches"]
4707pub const hipLaunchAttributeID_hipLaunchAttributePriority: hipLaunchAttributeID = 8;
4708#[doc = "  Launch Attribute ID"]
4709pub type hipLaunchAttributeID = ::std::os::raw::c_uint;
4710#[doc = "  Launch Attribute Value"]
4711#[repr(C)]
4712#[derive(Copy, Clone)]
4713pub union hipLaunchAttributeValue {
4714    #[doc = "< Value of launch attribute::\nhipLaunchAttributePolicyWindow."]
4715    pub accessPolicyWindow: hipAccessPolicyWindow,
4716    #[doc = "< Value of launch attribute ::hipLaunchAttributeCooperative"]
4717    pub cooperative: ::std::os::raw::c_int,
4718    #[doc = "< Value of launch attribute :: hipLaunchAttributePriority. Execution\npriority of kernel."]
4719    pub priority: ::std::os::raw::c_int,
4720}
4721#[doc = " Memset node params"]
4722#[repr(C)]
4723#[derive(Debug, Copy, Clone)]
4724pub struct HIP_MEMSET_NODE_PARAMS {
4725    #[doc = "< Destination pointer on device"]
4726    pub dst: hipDeviceptr_t,
4727    #[doc = "< Destination device pointer pitch. Unused if height equals 1"]
4728    pub pitch: usize,
4729    #[doc = "< Value of memset to be set"]
4730    pub value: ::std::os::raw::c_uint,
4731    #[doc = "< Element in bytes. Must be 1, 2, or 4."]
4732    pub elementSize: ::std::os::raw::c_uint,
4733    #[doc = "< Width of a row"]
4734    pub width: usize,
4735    #[doc = "< Number of rows"]
4736    pub height: usize,
4737}
4738#[doc = "< The update succeeded"]
4739pub const hipGraphExecUpdateResult_hipGraphExecUpdateSuccess: hipGraphExecUpdateResult = 0;
4740#[doc = "< The update failed for an unexpected reason which is described\n< in the return value of the function"]
4741pub const hipGraphExecUpdateResult_hipGraphExecUpdateError: hipGraphExecUpdateResult = 1;
4742#[doc = "< The update failed because the topology changed"]
4743pub const hipGraphExecUpdateResult_hipGraphExecUpdateErrorTopologyChanged:
4744    hipGraphExecUpdateResult = 2;
4745#[doc = "< The update failed because a node type changed"]
4746pub const hipGraphExecUpdateResult_hipGraphExecUpdateErrorNodeTypeChanged:
4747    hipGraphExecUpdateResult = 3;
4748pub const hipGraphExecUpdateResult_hipGraphExecUpdateErrorFunctionChanged:
4749    hipGraphExecUpdateResult = 4;
4750pub const hipGraphExecUpdateResult_hipGraphExecUpdateErrorParametersChanged:
4751    hipGraphExecUpdateResult = 5;
4752pub const hipGraphExecUpdateResult_hipGraphExecUpdateErrorNotSupported: hipGraphExecUpdateResult =
4753    6;
4754pub const hipGraphExecUpdateResult_hipGraphExecUpdateErrorUnsupportedFunctionChange:
4755    hipGraphExecUpdateResult = 7;
4756#[doc = " Graph execution update result"]
4757pub type hipGraphExecUpdateResult = ::std::os::raw::c_uint;
4758pub const hipStreamCaptureMode_hipStreamCaptureModeGlobal: hipStreamCaptureMode = 0;
4759pub const hipStreamCaptureMode_hipStreamCaptureModeThreadLocal: hipStreamCaptureMode = 1;
4760pub const hipStreamCaptureMode_hipStreamCaptureModeRelaxed: hipStreamCaptureMode = 2;
4761pub type hipStreamCaptureMode = ::std::os::raw::c_uint;
4762#[doc = "< Stream is not capturing"]
4763pub const hipStreamCaptureStatus_hipStreamCaptureStatusNone: hipStreamCaptureStatus = 0;
4764#[doc = "< Stream is actively capturing"]
4765pub const hipStreamCaptureStatus_hipStreamCaptureStatusActive: hipStreamCaptureStatus = 1;
4766#[doc = "< Stream is part of a capture sequence that has been\n< invalidated, but not terminated"]
4767pub const hipStreamCaptureStatus_hipStreamCaptureStatusInvalidated: hipStreamCaptureStatus = 2;
4768pub type hipStreamCaptureStatus = ::std::os::raw::c_uint;
4769#[doc = "< Add new nodes to the dependency set"]
4770pub const hipStreamUpdateCaptureDependenciesFlags_hipStreamAddCaptureDependencies:
4771    hipStreamUpdateCaptureDependenciesFlags = 0;
4772#[doc = "< Replace the dependency set with the new nodes"]
4773pub const hipStreamUpdateCaptureDependenciesFlags_hipStreamSetCaptureDependencies:
4774    hipStreamUpdateCaptureDependenciesFlags = 1;
4775pub type hipStreamUpdateCaptureDependenciesFlags = ::std::os::raw::c_uint;
4776#[doc = "< Amount of memory, in bytes, currently associated with graphs"]
4777pub const hipGraphMemAttributeType_hipGraphMemAttrUsedMemCurrent: hipGraphMemAttributeType = 0;
4778#[doc = "< High watermark of memory, in bytes, associated with graphs since the last time."]
4779pub const hipGraphMemAttributeType_hipGraphMemAttrUsedMemHigh: hipGraphMemAttributeType = 1;
4780#[doc = "< Amount of memory, in bytes, currently allocated for graphs."]
4781pub const hipGraphMemAttributeType_hipGraphMemAttrReservedMemCurrent: hipGraphMemAttributeType = 2;
4782#[doc = "< High watermark of memory, in bytes, currently allocated for graphs"]
4783pub const hipGraphMemAttributeType_hipGraphMemAttrReservedMemHigh: hipGraphMemAttributeType = 3;
4784pub type hipGraphMemAttributeType = ::std::os::raw::c_uint;
4785#[doc = "< Destructor execution is not synchronized."]
4786pub const hipUserObjectFlags_hipUserObjectNoDestructorSync: hipUserObjectFlags = 1;
4787pub type hipUserObjectFlags = ::std::os::raw::c_uint;
4788#[doc = "< Add new reference or retain."]
4789pub const hipUserObjectRetainFlags_hipGraphUserObjectMove: hipUserObjectRetainFlags = 1;
4790pub type hipUserObjectRetainFlags = ::std::os::raw::c_uint;
4791pub const hipGraphInstantiateFlags_hipGraphInstantiateFlagAutoFreeOnLaunch:
4792    hipGraphInstantiateFlags = 1;
4793pub const hipGraphInstantiateFlags_hipGraphInstantiateFlagUpload: hipGraphInstantiateFlags = 2;
4794pub const hipGraphInstantiateFlags_hipGraphInstantiateFlagDeviceLaunch: hipGraphInstantiateFlags =
4795    4;
4796pub const hipGraphInstantiateFlags_hipGraphInstantiateFlagUseNodePriority:
4797    hipGraphInstantiateFlags = 8;
4798pub type hipGraphInstantiateFlags = ::std::os::raw::c_uint;
4799pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsVerbose: hipGraphDebugDotFlags = 1;
4800#[doc = "< Adds hipKernelNodeParams to output"]
4801pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsKernelNodeParams: hipGraphDebugDotFlags = 4;
4802#[doc = "< Adds hipMemcpy3DParms to output"]
4803pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsMemcpyNodeParams: hipGraphDebugDotFlags = 8;
4804#[doc = "< Adds hipMemsetParams to output"]
4805pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsMemsetNodeParams: hipGraphDebugDotFlags = 16;
4806#[doc = "< Adds hipHostNodeParams to output"]
4807pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsHostNodeParams: hipGraphDebugDotFlags = 32;
4808pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsEventNodeParams: hipGraphDebugDotFlags = 64;
4809pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsExtSemasSignalNodeParams:
4810    hipGraphDebugDotFlags = 128;
4811pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsExtSemasWaitNodeParams: hipGraphDebugDotFlags =
4812    256;
4813pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsKernelNodeAttributes: hipGraphDebugDotFlags =
4814    512;
4815pub const hipGraphDebugDotFlags_hipGraphDebugDotFlagsHandles: hipGraphDebugDotFlags = 1024;
4816pub type hipGraphDebugDotFlags = ::std::os::raw::c_uint;
4817#[doc = "< Instantiation Success"]
4818pub const hipGraphInstantiateResult_hipGraphInstantiateSuccess: hipGraphInstantiateResult = 0;
4819#[doc = "< Instantiation failed for an\nunexpected reason which is described in the return value of the function"]
4820pub const hipGraphInstantiateResult_hipGraphInstantiateError: hipGraphInstantiateResult = 1;
4821#[doc = "< Instantiation failed due\nto invalid structure, such as cycles"]
4822pub const hipGraphInstantiateResult_hipGraphInstantiateInvalidStructure: hipGraphInstantiateResult =
4823    2;
4824#[doc = "< Instantiation for device launch failed\nbecause the graph contained an unsupported operation"]
4825pub const hipGraphInstantiateResult_hipGraphInstantiateNodeOperationNotSupported:
4826    hipGraphInstantiateResult = 3;
4827#[doc = "< Instantiation for device launch failed\ndue to the nodes belonging to different contexts"]
4828pub const hipGraphInstantiateResult_hipGraphInstantiateMultipleDevicesNotSupported:
4829    hipGraphInstantiateResult = 4;
4830#[doc = " hipGraphInstantiateWithParams results"]
4831pub type hipGraphInstantiateResult = ::std::os::raw::c_uint;
4832#[doc = " Graph Instantiation parameters"]
4833#[repr(C)]
4834#[derive(Debug, Copy, Clone)]
4835pub struct hipGraphInstantiateParams {
4836    #[doc = "< The node which caused instantiation to fail, if any"]
4837    pub errNode_out: hipGraphNode_t,
4838    #[doc = "< Instantiation flags"]
4839    pub flags: ::std::os::raw::c_ulonglong,
4840    #[doc = "< Whether instantiation was successful.\nIf it failed, the reason why"]
4841    pub result_out: hipGraphInstantiateResult,
4842    #[doc = "< Upload stream"]
4843    pub uploadStream: hipStream_t,
4844}
4845#[doc = " Memory allocation properties"]
4846#[repr(C)]
4847#[derive(Debug, Copy, Clone)]
4848pub struct hipMemAllocationProp {
4849    #[doc = "< Memory allocation type"]
4850    pub type_: hipMemAllocationType,
4851    #[doc = "< Requested handle type"]
4852    pub requestedHandleType: hipMemAllocationHandleType,
4853    #[doc = "< Memory location"]
4854    pub location: hipMemLocation,
4855    #[doc = "< Metadata for Win32 handles"]
4856    pub win32HandleMetaData: *mut ::std::os::raw::c_void,
4857    pub allocFlags: hipMemAllocationProp__bindgen_ty_1,
4858}
4859#[repr(C)]
4860#[derive(Debug, Copy, Clone)]
4861pub struct hipMemAllocationProp__bindgen_ty_1 {
4862    #[doc = "< Compression type"]
4863    pub compressionType: ::std::os::raw::c_uchar,
4864    #[doc = "< RDMA capable"]
4865    pub gpuDirectRDMACapable: ::std::os::raw::c_uchar,
4866    #[doc = "< Usage"]
4867    pub usage: ::std::os::raw::c_ushort,
4868}
4869#[doc = " External semaphore signal node parameters"]
4870#[repr(C)]
4871#[derive(Debug, Copy, Clone)]
4872pub struct hipExternalSemaphoreSignalNodeParams {
4873    pub extSemArray: *mut hipExternalSemaphore_t,
4874    pub paramsArray: *const hipExternalSemaphoreSignalParams,
4875    pub numExtSems: ::std::os::raw::c_uint,
4876}
4877#[doc = " External semaphore wait node parameters"]
4878#[repr(C)]
4879#[derive(Debug, Copy, Clone)]
4880pub struct hipExternalSemaphoreWaitNodeParams {
4881    pub extSemArray: *mut hipExternalSemaphore_t,
4882    pub paramsArray: *const hipExternalSemaphoreWaitParams,
4883    pub numExtSems: ::std::os::raw::c_uint,
4884}
4885#[repr(C)]
4886#[derive(Debug, Copy, Clone)]
4887pub struct ihipMemGenericAllocationHandle {
4888    _unused: [u8; 0],
4889}
4890#[doc = " Generic handle for memory allocation"]
4891pub type hipMemGenericAllocationHandle_t = *mut ihipMemGenericAllocationHandle;
4892#[doc = "< Minimum granularity"]
4893pub const hipMemAllocationGranularity_flags_hipMemAllocationGranularityMinimum:
4894    hipMemAllocationGranularity_flags = 0;
4895#[doc = "< Recommended granularity for performance"]
4896pub const hipMemAllocationGranularity_flags_hipMemAllocationGranularityRecommended:
4897    hipMemAllocationGranularity_flags = 1;
4898#[doc = " Flags for granularity"]
4899pub type hipMemAllocationGranularity_flags = ::std::os::raw::c_uint;
4900#[doc = "< Generic handle type"]
4901pub const hipMemHandleType_hipMemHandleTypeGeneric: hipMemHandleType = 0;
4902#[doc = " Memory handle type"]
4903pub type hipMemHandleType = ::std::os::raw::c_uint;
4904#[doc = "< Map operation"]
4905pub const hipMemOperationType_hipMemOperationTypeMap: hipMemOperationType = 1;
4906#[doc = "< Unmap operation"]
4907pub const hipMemOperationType_hipMemOperationTypeUnmap: hipMemOperationType = 2;
4908#[doc = " Memory operation types"]
4909pub type hipMemOperationType = ::std::os::raw::c_uint;
4910#[doc = "< Sparse level"]
4911pub const hipArraySparseSubresourceType_hipArraySparseSubresourceTypeSparseLevel:
4912    hipArraySparseSubresourceType = 0;
4913#[doc = "< Miptail"]
4914pub const hipArraySparseSubresourceType_hipArraySparseSubresourceTypeMiptail:
4915    hipArraySparseSubresourceType = 1;
4916#[doc = " Subresource types for sparse arrays"]
4917pub type hipArraySparseSubresourceType = ::std::os::raw::c_uint;
4918#[doc = " Map info for arrays"]
4919#[repr(C)]
4920#[derive(Copy, Clone)]
4921pub struct hipArrayMapInfo {
4922    #[doc = "< Resource type"]
4923    pub resourceType: hipResourceType,
4924    pub resource: hipArrayMapInfo__bindgen_ty_1,
4925    #[doc = "< Sparse subresource type"]
4926    pub subresourceType: hipArraySparseSubresourceType,
4927    pub subresource: hipArrayMapInfo__bindgen_ty_2,
4928    #[doc = "< Memory operation type"]
4929    pub memOperationType: hipMemOperationType,
4930    #[doc = "< Memory handle type"]
4931    pub memHandleType: hipMemHandleType,
4932    pub memHandle: hipArrayMapInfo__bindgen_ty_3,
4933    #[doc = "< Offset within the memory"]
4934    pub offset: ::std::os::raw::c_ulonglong,
4935    #[doc = "< Device ordinal bit mask"]
4936    pub deviceBitMask: ::std::os::raw::c_uint,
4937    #[doc = "< flags for future use, must be zero now."]
4938    pub flags: ::std::os::raw::c_uint,
4939    #[doc = "< Reserved for future use, must be zero now."]
4940    pub reserved: [::std::os::raw::c_uint; 2usize],
4941}
4942#[repr(C)]
4943#[derive(Copy, Clone)]
4944pub union hipArrayMapInfo__bindgen_ty_1 {
4945    pub mipmap: hipMipmappedArray,
4946    pub array: hipArray_t,
4947}
4948#[repr(C)]
4949#[derive(Copy, Clone)]
4950pub union hipArrayMapInfo__bindgen_ty_2 {
4951    pub sparseLevel: hipArrayMapInfo__bindgen_ty_2__bindgen_ty_1,
4952    pub miptail: hipArrayMapInfo__bindgen_ty_2__bindgen_ty_2,
4953}
4954#[repr(C)]
4955#[derive(Debug, Copy, Clone)]
4956pub struct hipArrayMapInfo__bindgen_ty_2__bindgen_ty_1 {
4957    #[doc = "< For mipmapped arrays must be a valid mipmap level. For arrays must be zero"]
4958    pub level: ::std::os::raw::c_uint,
4959    #[doc = "< For layered arrays must be a valid layer index. Otherwise, must be zero"]
4960    pub layer: ::std::os::raw::c_uint,
4961    #[doc = "< X offset in elements"]
4962    pub offsetX: ::std::os::raw::c_uint,
4963    #[doc = "< Y offset in elements"]
4964    pub offsetY: ::std::os::raw::c_uint,
4965    #[doc = "< Z offset in elements"]
4966    pub offsetZ: ::std::os::raw::c_uint,
4967    #[doc = "< Width in elements"]
4968    pub extentWidth: ::std::os::raw::c_uint,
4969    #[doc = "< Height in elements"]
4970    pub extentHeight: ::std::os::raw::c_uint,
4971    #[doc = "< Depth in elements"]
4972    pub extentDepth: ::std::os::raw::c_uint,
4973}
4974#[repr(C)]
4975#[derive(Debug, Copy, Clone)]
4976pub struct hipArrayMapInfo__bindgen_ty_2__bindgen_ty_2 {
4977    #[doc = "< For layered arrays must be a valid layer index. Otherwise, must be zero"]
4978    pub layer: ::std::os::raw::c_uint,
4979    #[doc = "< Offset within mip tail"]
4980    pub offset: ::std::os::raw::c_ulonglong,
4981    #[doc = "< Extent in bytes"]
4982    pub size: ::std::os::raw::c_ulonglong,
4983}
4984#[repr(C)]
4985#[derive(Copy, Clone)]
4986pub union hipArrayMapInfo__bindgen_ty_3 {
4987    pub memHandle: hipMemGenericAllocationHandle_t,
4988}
4989#[doc = " Memcpy node params"]
4990#[repr(C)]
4991#[derive(Debug, Copy, Clone)]
4992pub struct hipMemcpyNodeParams {
4993    #[doc = "< Must be zero."]
4994    pub flags: ::std::os::raw::c_int,
4995    #[doc = "< Must be zero."]
4996    pub reserved: [::std::os::raw::c_int; 3usize],
4997    #[doc = "< Params set for the memory copy."]
4998    pub copyParams: hipMemcpy3DParms,
4999}
5000#[doc = " Child graph node params"]
5001#[repr(C)]
5002#[derive(Debug, Copy, Clone)]
5003pub struct hipChildGraphNodeParams {
5004    #[doc = "< Either the child graph to clone into the node, or\n< a handle to the graph possesed by the node used during query"]
5005    pub graph: hipGraph_t,
5006}
5007#[doc = " Event record node params"]
5008#[repr(C)]
5009#[derive(Debug, Copy, Clone)]
5010pub struct hipEventWaitNodeParams {
5011    #[doc = "< Event to wait on"]
5012    pub event: hipEvent_t,
5013}
5014#[doc = " Event record node params"]
5015#[repr(C)]
5016#[derive(Debug, Copy, Clone)]
5017pub struct hipEventRecordNodeParams {
5018    #[doc = "< The event to be recorded when node executes"]
5019    pub event: hipEvent_t,
5020}
5021#[doc = " Memory free node params"]
5022#[repr(C)]
5023#[derive(Debug, Copy, Clone)]
5024pub struct hipMemFreeNodeParams {
5025    #[doc = "< the pointer to be freed"]
5026    pub dptr: *mut ::std::os::raw::c_void,
5027}
5028#[doc = " Params for different graph nodes"]
5029#[repr(C)]
5030#[derive(Copy, Clone)]
5031pub struct hipGraphNodeParams {
5032    pub type_: hipGraphNodeType,
5033    pub reserved0: [::std::os::raw::c_int; 3usize],
5034    pub __bindgen_anon_1: hipGraphNodeParams__bindgen_ty_1,
5035    pub reserved2: ::std::os::raw::c_longlong,
5036}
5037#[repr(C)]
5038#[derive(Copy, Clone)]
5039pub union hipGraphNodeParams__bindgen_ty_1 {
5040    pub reserved1: [::std::os::raw::c_longlong; 29usize],
5041    pub kernel: hipKernelNodeParams,
5042    pub memcpy: hipMemcpyNodeParams,
5043    pub memset: hipMemsetParams,
5044    pub host: hipHostNodeParams,
5045    pub graph: hipChildGraphNodeParams,
5046    pub eventWait: hipEventWaitNodeParams,
5047    pub eventRecord: hipEventRecordNodeParams,
5048    pub extSemSignal: hipExternalSemaphoreSignalNodeParams,
5049    pub extSemWait: hipExternalSemaphoreWaitNodeParams,
5050    pub alloc: hipMemAllocNodeParams,
5051    pub free: hipMemFreeNodeParams,
5052}
5053pub const hipGraphDependencyType_hipGraphDependencyTypeDefault: hipGraphDependencyType = 0;
5054pub const hipGraphDependencyType_hipGraphDependencyTypeProgrammatic: hipGraphDependencyType = 1;
5055pub type hipGraphDependencyType = ::std::os::raw::c_uint;
5056#[repr(C)]
5057#[derive(Debug, Copy, Clone)]
5058pub struct hipGraphEdgeData {
5059    #[doc = "< This indicates when the dependency is triggered from the upstream node on the\n< edge. The meaning is specfic to the node type. A value of 0 in all cases\n< means full completion of the upstream node, with memory visibility to the\n< downstream node or portion thereof (indicated by to_port). Only kernel nodes\n< define non-zero ports. A kernel node can use the following output port types:\n< hipGraphKernelNodePortDefault, hipGraphKernelNodePortProgrammatic, or\n< hipGraphKernelNodePortLaunchCompletion."]
5060    pub from_port: ::std::os::raw::c_uchar,
5061    #[doc = "< These bytes are unused and must be zeroed"]
5062    pub reserved: [::std::os::raw::c_uchar; 5usize],
5063    #[doc = "< Currently no node types define non-zero ports. This field must be set to zero."]
5064    pub to_port: ::std::os::raw::c_uchar,
5065    #[doc = "< This should be populated with a value from hipGraphDependencyType"]
5066    pub type_: ::std::os::raw::c_uchar,
5067}
5068extern "C" {
5069    #[doc = " @}\n/\n/**\n  @defgroup API HIP API\n  @{\n\n  Defines the HIP API.  See the individual sections for more information.\n/\n/**\n  @defgroup Driver Initialization and Version\n  @{\n  This section describes the initializtion and version functions of HIP runtime API.\n\n/\n/**\n @brief Explicitly initializes the HIP runtime.\n\n @param [in] flags  Initialization flag, should be zero.\n\n Most HIP APIs implicitly initialize the HIP runtime.\n This API provides control over the timing of the initialization.\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
5070    pub fn hipInit(flags: ::std::os::raw::c_uint) -> hipError_t;
5071}
5072extern "C" {
5073    #[doc = " @brief Returns the approximate HIP driver version.\n\n @param [out] driverVersion driver version\n\n HIP driver version shows up in the format:\n HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning The HIP driver version does not correspond to an exact CUDA driver revision.\n On AMD platform, the API returns the HIP driver version, while on NVIDIA platform, it calls\n the corresponding CUDA runtime API and returns the CUDA driver version.\n There is no mapping/correlation between HIP driver version and CUDA driver version.\n\n @see hipRuntimeGetVersion"]
5074    pub fn hipDriverGetVersion(driverVersion: *mut ::std::os::raw::c_int) -> hipError_t;
5075}
5076extern "C" {
5077    #[doc = " @brief Returns the approximate HIP Runtime version.\n\n @param [out] runtimeVersion HIP runtime version\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning The version definition of HIP runtime is different from CUDA.\n On AMD platform, the function returns HIP runtime version,\n while on NVIDIA platform, it returns CUDA runtime version.\n And there is no mapping/correlation between HIP version and CUDA version.\n\n @see hipDriverGetVersion"]
5078    pub fn hipRuntimeGetVersion(runtimeVersion: *mut ::std::os::raw::c_int) -> hipError_t;
5079}
5080extern "C" {
5081    #[doc = " @brief Returns a handle to a compute device\n @param [out] device Handle of device\n @param [in] ordinal Device ordinal\n\n @returns #hipSuccess, #hipErrorInvalidDevice"]
5082    pub fn hipDeviceGet(device: *mut hipDevice_t, ordinal: ::std::os::raw::c_int) -> hipError_t;
5083}
5084extern "C" {
5085    #[doc = " @brief Returns the compute capability of the device\n @param [out] major Major compute capability version number\n @param [out] minor Minor compute capability version number\n @param [in] device Device ordinal\n\n @returns #hipSuccess, #hipErrorInvalidDevice"]
5086    pub fn hipDeviceComputeCapability(
5087        major: *mut ::std::os::raw::c_int,
5088        minor: *mut ::std::os::raw::c_int,
5089        device: hipDevice_t,
5090    ) -> hipError_t;
5091}
5092extern "C" {
5093    #[doc = " @brief Returns an identifer string for the device.\n @param [out] name String of the device name\n @param [in] len Maximum length of string to store in device name\n @param [in] device Device ordinal\n\n @returns #hipSuccess, #hipErrorInvalidDevice"]
5094    pub fn hipDeviceGetName(
5095        name: *mut ::std::os::raw::c_char,
5096        len: ::std::os::raw::c_int,
5097        device: hipDevice_t,
5098    ) -> hipError_t;
5099}
5100extern "C" {
5101    #[doc = " @brief Returns an UUID for the device.[BETA]\n @param [out] uuid UUID for the device\n @param [in] device device ordinal\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, #hipErrorNotInitialized,\n #hipErrorDeinitialized"]
5102    pub fn hipDeviceGetUuid(uuid: *mut hipUUID, device: hipDevice_t) -> hipError_t;
5103}
5104extern "C" {
5105    #[doc = " @brief Returns a value for attribute of link between two devices\n @param [out] value Pointer of the value for the attrubute\n @param [in] attr enum of hipDeviceP2PAttr to query\n @param [in] srcDevice The source device of the link\n @param [in] dstDevice The destination device of the link\n\n @returns #hipSuccess, #hipErrorInvalidDevice"]
5106    pub fn hipDeviceGetP2PAttribute(
5107        value: *mut ::std::os::raw::c_int,
5108        attr: hipDeviceP2PAttr,
5109        srcDevice: ::std::os::raw::c_int,
5110        dstDevice: ::std::os::raw::c_int,
5111    ) -> hipError_t;
5112}
5113extern "C" {
5114    #[doc = " @brief Returns a PCI Bus Id string for the device, overloaded to take int device ID.\n @param [out] pciBusId The string of PCI Bus Id format for the device\n @param [in] len Maximum length of string\n @param [in] device The device ordinal\n\n @returns #hipSuccess, #hipErrorInvalidDevice"]
5115    pub fn hipDeviceGetPCIBusId(
5116        pciBusId: *mut ::std::os::raw::c_char,
5117        len: ::std::os::raw::c_int,
5118        device: ::std::os::raw::c_int,
5119    ) -> hipError_t;
5120}
5121extern "C" {
5122    #[doc = " @brief Returns a handle to a compute device.\n @param [out] device The handle of the device\n @param [in] pciBusId The string of PCI Bus Id for the device\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue"]
5123    pub fn hipDeviceGetByPCIBusId(
5124        device: *mut ::std::os::raw::c_int,
5125        pciBusId: *const ::std::os::raw::c_char,
5126    ) -> hipError_t;
5127}
5128extern "C" {
5129    #[doc = " @brief Returns the total amount of memory on the device.\n @param [out] bytes The size of memory in bytes, on the device\n @param [in] device The ordinal of the device\n\n @returns #hipSuccess, #hipErrorInvalidDevice"]
5130    pub fn hipDeviceTotalMem(bytes: *mut usize, device: hipDevice_t) -> hipError_t;
5131}
5132extern "C" {
5133    #[doc = " @}\n/\n/**\n  @defgroup Device Device Management\n  @{\n  This section describes the device management functions of HIP runtime API.\n/\n/**\n @brief Waits on all active streams on current device\n\n When this command is invoked, the host thread gets blocked until all the commands associated\n with streams associated with the device. HIP does not support multiple blocking modes (yet!).\n\n @returns #hipSuccess\n\n @see hipSetDevice, hipDeviceReset"]
5134    pub fn hipDeviceSynchronize() -> hipError_t;
5135}
5136extern "C" {
5137    #[doc = " @brief The state of current device is discarded and updated to a fresh state.\n\n Calling this function deletes all streams created, memory allocated, kernels running, events\n created. Make sure that no other thread is using the device or streams, memory, kernels, events\n associated with the current device.\n\n @returns #hipSuccess\n\n @see hipDeviceSynchronize"]
5138    pub fn hipDeviceReset() -> hipError_t;
5139}
5140extern "C" {
5141    #[doc = " @brief Set default device to be used for subsequent hip API calls from this thread.\n\n @param[in] deviceId Valid device in range 0...hipGetDeviceCount().\n\n Sets @p device as the default device for the calling host thread.  Valid device id's are 0...\n (hipGetDeviceCount()-1).\n\n Many HIP APIs implicitly use the \"default device\" :\n\n - Any device memory subsequently allocated from this host thread (using hipMalloc) will be\n allocated on device.\n - Any streams or events created from this host thread will be associated with device.\n - Any kernels launched from this host thread (using hipLaunchKernel) will be executed on device\n (unless a specific stream is specified, in which case the device associated with that stream will\n be used).\n\n This function may be called from any host thread.  Multiple host threads may use the same device.\n This function does no synchronization with the previous or new device, and has very little\n runtime overhead. Applications can use hipSetDevice to quickly switch the default device before\n making a HIP runtime call which uses the default device.\n\n The default device is stored in thread-local-storage for each thread.\n Thread-pool implementations may inherit the default device of the previous thread.  A good\n practice is to always call hipSetDevice at the start of HIP coding sequency to establish a known\n standard device.\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorNoDevice\n\n @see #hipGetDevice, #hipGetDeviceCount"]
5142    pub fn hipSetDevice(deviceId: ::std::os::raw::c_int) -> hipError_t;
5143}
5144extern "C" {
5145    #[doc = " @brief Set a list of devices that can be used.\n\n @param[in] device_arr List of devices to try\n @param[in] len Number of devices in specified list\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n @see #hipGetDevice, #hipGetDeviceCount. #hipSetDevice. #hipGetDeviceProperties. #hipSetDeviceFlags. #hipChooseDevice\n"]
5146    pub fn hipSetValidDevices(
5147        device_arr: *mut ::std::os::raw::c_int,
5148        len: ::std::os::raw::c_int,
5149    ) -> hipError_t;
5150}
5151extern "C" {
5152    #[doc = " @brief Return the default device id for the calling host thread.\n\n @param [out] deviceId *device is written with the default device\n\n HIP maintains an default device for each thread using thread-local-storage.\n This device is used implicitly for HIP runtime APIs called by this thread.\n hipGetDevice returns in * @p device the default device for the calling host thread.\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n @see hipSetDevice, hipGetDevicesizeBytes"]
5153    pub fn hipGetDevice(deviceId: *mut ::std::os::raw::c_int) -> hipError_t;
5154}
5155extern "C" {
5156    #[doc = " @brief Return number of compute-capable devices.\n\n @param [out] count Returns number of compute-capable devices.\n\n @returns #hipSuccess, #hipErrorNoDevice\n\n\n Returns in @p *count the number of devices that have ability to run compute commands.  If there\n are no such devices, then @ref hipGetDeviceCount will return #hipErrorNoDevice. If 1 or more\n devices can be found, then hipGetDeviceCount returns #hipSuccess."]
5157    pub fn hipGetDeviceCount(count: *mut ::std::os::raw::c_int) -> hipError_t;
5158}
5159extern "C" {
5160    #[doc = " @brief Query for a specific device attribute.\n\n @param [out] pi pointer to value to return\n @param [in] attr attribute to query\n @param [in] deviceId which device to query for information\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue"]
5161    pub fn hipDeviceGetAttribute(
5162        pi: *mut ::std::os::raw::c_int,
5163        attr: hipDeviceAttribute_t,
5164        deviceId: ::std::os::raw::c_int,
5165    ) -> hipError_t;
5166}
5167extern "C" {
5168    #[doc = " @brief Returns the default memory pool of the specified device\n\n @param [out] mem_pool Default memory pool to return\n @param [in] device    Device index for query the default memory pool\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @see hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute,\n hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
5169    pub fn hipDeviceGetDefaultMemPool(
5170        mem_pool: *mut hipMemPool_t,
5171        device: ::std::os::raw::c_int,
5172    ) -> hipError_t;
5173}
5174extern "C" {
5175    #[doc = " @brief Sets the current memory pool of a device\n\n The memory pool must be local to the specified device.\n @p hipMallocAsync allocates from the current mempool of the provided stream's device.\n By default, a device's current memory pool is its default memory pool.\n\n @note Use @p hipMallocFromPoolAsync for asynchronous memory allocations from a device\n different than the one the stream runs on.\n\n @param [in] device   Device index for the update\n @param [in] mem_pool Memory pool for update as the current on the specified device\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice, #hipErrorNotSupported\n\n @see hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute,\n hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
5176    pub fn hipDeviceSetMemPool(device: ::std::os::raw::c_int, mem_pool: hipMemPool_t)
5177        -> hipError_t;
5178}
5179extern "C" {
5180    #[doc = " @brief Gets the current memory pool for the specified device\n\n Returns the last pool provided to @p hipDeviceSetMemPool for this device\n or the device's default memory pool if @p hipDeviceSetMemPool has never been called.\n By default the current mempool is the default mempool for a device,\n otherwise the returned pool must have been set with @p hipDeviceSetMemPool.\n\n @param [out] mem_pool Current memory pool on the specified device\n @param [in] device    Device index to query the current memory pool\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @see hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute,\n hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
5181    pub fn hipDeviceGetMemPool(
5182        mem_pool: *mut hipMemPool_t,
5183        device: ::std::os::raw::c_int,
5184    ) -> hipError_t;
5185}
5186extern "C" {
5187    #[doc = " @brief Returns device properties.\n\n @param [out] prop written with device properties\n @param [in]  deviceId which device to query for information\n\n @returns #hipSuccess, #hipErrorInvalidDevice\n @bug HCC always returns 0 for maxThreadsPerMultiProcessor\n @bug HCC always returns 0 for regsPerBlock\n @bug HCC always returns 0 for l2CacheSize\n\n Populates hipGetDeviceProperties with information for the specified device."]
5188    pub fn hipGetDevicePropertiesR0600(
5189        prop: *mut hipDeviceProp_tR0600,
5190        deviceId: ::std::os::raw::c_int,
5191    ) -> hipError_t;
5192}
5193extern "C" {
5194    #[doc = " @brief Gets the maximum width for 1D linear textures on the specified device\n\n This function queries the maximum width, in elements, of 1D linear textures that can be allocated\n on the specified device. The maximum width depends on the texture element size and the hardware\n limitations of the device.\n\n @param [out] max_width Maximum width, in elements, of 1D linear textures that the device can support\n @param [in] device     Device index to query for maximum 1D texture width\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice\n\n @see hipDeviceGetAttribute, hipMalloc, hipTexRefSetAddressMode"]
5195    pub fn hipDeviceGetTexture1DLinearMaxWidth(
5196        mem_pool: *mut hipMemPool_t,
5197        device: ::std::os::raw::c_int,
5198    ) -> hipError_t;
5199}
5200extern "C" {
5201    #[doc = " @brief Set L1/Shared cache partition.\n\n @param [in] cacheConfig Cache configuration\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorNotSupported\n\n Note: AMD devices do not support reconfigurable cache. This API is not implemented\n on AMD platform. If the function is called, it will return hipErrorNotSupported.\n"]
5202    pub fn hipDeviceSetCacheConfig(cacheConfig: hipFuncCache_t) -> hipError_t;
5203}
5204extern "C" {
5205    #[doc = " @brief Get Cache configuration for a specific Device\n\n @param [out] cacheConfig Pointer of cache configuration\n\n @returns #hipSuccess, #hipErrorNotInitialized\n Note: AMD devices do not support reconfigurable cache. This hint is ignored\n on these architectures.\n"]
5206    pub fn hipDeviceGetCacheConfig(cacheConfig: *mut hipFuncCache_t) -> hipError_t;
5207}
5208extern "C" {
5209    #[doc = " @brief Gets resource limits of current device\n\n The function queries the size of limit value, as required by the input enum value hipLimit_t,\n which can be either #hipLimitStackSize, or #hipLimitMallocHeapSize. Any other input as\n default, the function will return #hipErrorUnsupportedLimit.\n\n @param [out] pValue Returns the size of the limit in bytes\n @param [in]  limit The limit to query\n\n @returns #hipSuccess, #hipErrorUnsupportedLimit, #hipErrorInvalidValue\n"]
5210    pub fn hipDeviceGetLimit(pValue: *mut usize, limit: hipLimit_t) -> hipError_t;
5211}
5212extern "C" {
5213    #[doc = " @brief Sets resource limits of current device.\n\n As the input enum limit,\n #hipLimitStackSize sets the limit value of the stack size on the current GPU device, per thread.\n The limit size can get via hipDeviceGetLimit. The size is in units of 256 dwords, up to the limit\n (128K - 16).\n\n #hipLimitMallocHeapSize sets the limit value of the heap used by the malloc()/free()\n calls. For limit size, use the #hipDeviceGetLimit API.\n\n Any other input as default, the funtion will return hipErrorUnsupportedLimit.\n\n @param [in] limit Enum of hipLimit_t to set\n @param [in] value The size of limit value in bytes\n\n @returns #hipSuccess, #hipErrorUnsupportedLimit, #hipErrorInvalidValue\n"]
5214    pub fn hipDeviceSetLimit(limit: hipLimit_t, value: usize) -> hipError_t;
5215}
5216extern "C" {
5217    #[doc = " @brief Returns bank width of shared memory for current device\n\n @param [out] pConfig The pointer of the bank width for shared memory\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized\n\n Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is\n ignored on those architectures.\n"]
5218    pub fn hipDeviceGetSharedMemConfig(pConfig: *mut hipSharedMemConfig) -> hipError_t;
5219}
5220extern "C" {
5221    #[doc = " @brief Gets the flags set for current device\n\n @param [out] flags Pointer of the flags\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue"]
5222    pub fn hipGetDeviceFlags(flags: *mut ::std::os::raw::c_uint) -> hipError_t;
5223}
5224extern "C" {
5225    #[doc = " @brief The bank width of shared memory on current device is set\n\n @param [in] config Configuration for the bank width of shared memory\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized\n\n Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is\n ignored on those architectures.\n"]
5226    pub fn hipDeviceSetSharedMemConfig(config: hipSharedMemConfig) -> hipError_t;
5227}
5228extern "C" {
5229    #[doc = " @brief The current device behavior is changed according to the flags passed.\n\n @param [in] flags Flag to set on the current device\n\n The schedule flags impact how HIP waits for the completion of a command running on a device.\n\n #hipDeviceScheduleSpin         : HIP runtime will actively spin in the thread which submitted\n the work until the command completes.  This offers the lowest latency, but will consume a CPU\n core and may increase power.\n\n #hipDeviceScheduleYield        : The HIP runtime will yield the CPU to system so that other\n tasks can use it. This may increase latency to detect the completion but will consume less\n power and is friendlier to other tasks in the system.\n\n #hipDeviceScheduleBlockingSync : On ROCm platform, this is a synonym for hipDeviceScheduleYield.\n\n #hipDeviceScheduleAuto         : This is the default value if the input 'flags' is zero.\n Uses a heuristic to select between Spin and Yield modes. If the number of HIP contexts is\n greater than the number of logical processors in the system, uses Spin scheduling, otherwise\n uses Yield scheduling.\n\n #hipDeviceMapHost              : Allows mapping host memory. On ROCm, this is always allowed and\n the flag is ignored.\n\n #hipDeviceLmemResizeToMax      : This flag is silently ignored on ROCm.\n\n @returns #hipSuccess, #hipErrorNoDevice, #hipErrorInvalidDevice, #hipErrorSetOnActiveProcess\n\n"]
5230    pub fn hipSetDeviceFlags(flags: ::std::os::raw::c_uint) -> hipError_t;
5231}
5232extern "C" {
5233    #[doc = " @brief Device which matches hipDeviceProp_t is returned\n\n @param [out] device Pointer of the device\n @param [in]  prop Pointer of the properties\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
5234    pub fn hipChooseDeviceR0600(
5235        device: *mut ::std::os::raw::c_int,
5236        prop: *const hipDeviceProp_tR0600,
5237    ) -> hipError_t;
5238}
5239extern "C" {
5240    #[doc = " @brief Returns the link type and hop count between two devices\n\n @param [in] device1 Ordinal for device1\n @param [in] device2 Ordinal for device2\n @param [out] linktype Returns the link type (See hsa_amd_link_info_type_t) between the two devices\n @param [out] hopcount Returns the hop count between the two devices\n\n Queries and returns the HSA link type and the hop count between the two specified devices.\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
5241    pub fn hipExtGetLinkTypeAndHopCount(
5242        device1: ::std::os::raw::c_int,
5243        device2: ::std::os::raw::c_int,
5244        linktype: *mut u32,
5245        hopcount: *mut u32,
5246    ) -> hipError_t;
5247}
5248extern "C" {
5249    #[doc = " @brief Gets an interprocess memory handle for an existing device memory allocation.\n\n Takes a pointer to the base of an existing device memory allocation created with ::hipMalloc\n and exports it for use in another process. This is a lightweight operation and may be called\n multiple times on an allocation without adverse effects.\n\n If a region of memory is freed with ::hipFree and a subsequent call to ::hipMalloc returns\n memory with the same device address, ::hipIpcGetMemHandle will return a unique handle for\n the new memory.\n\n @param handle - Pointer to user allocated hipIpcMemHandle to return the handle in.\n @param devPtr - Base pointer to previously allocated device memory.\n\n @returns #hipSuccess, #hipErrorInvalidHandle, #hipErrorOutOfMemory, #hipErrorMapFailed\n\n @note This IPC memory related feature API on Windows may behave differently from Linux.\n"]
5250    pub fn hipIpcGetMemHandle(
5251        handle: *mut hipIpcMemHandle_t,
5252        devPtr: *mut ::std::os::raw::c_void,
5253    ) -> hipError_t;
5254}
5255extern "C" {
5256    #[doc = " @brief Opens an interprocess memory handle exported from another process and returns a device\n pointer usable in the local process.\n\n Maps memory exported from another process with ::hipIpcGetMemHandle into the current device\n address space. For contexts on different devices ::hipIpcOpenMemHandle can attempt to enable\n peer access between the devices like the user called ::hipDeviceEnablePeerAccess.\n This behavior is controlled by the flag #hipIpcMemLazyEnablePeerAccess.\n The API ::hipDeviceCanAccessPeer can determine if a mapping is possible.\n\n hipIpcMemHandles from each device in a given process may only be opened by one context per\n device per other process.\n\n Memory returned from ::hipIpcOpenMemHandle must be freed with ::hipIpcCloseMemHandle.\n\n Calling ::hipFree on an exported memory region before calling ::hipIpcCloseMemHandle in the\n importing context will result in undefined behavior.\n\n @param devPtr - Returned device pointer\n @param handle - hipIpcMemHandle to open\n @param flags  - Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidContext,\n #hipErrorInvalidDevicePointer\n\n @note During multiple processes, using the same memory handle opened by the current context,\n there is no guarantee that the same device pointer will be returned in @p *devPtr.\n This is diffrent from CUDA.\n\n @note This IPC memory related feature API on Windows may behave differently from Linux.\n"]
5257    pub fn hipIpcOpenMemHandle(
5258        devPtr: *mut *mut ::std::os::raw::c_void,
5259        handle: hipIpcMemHandle_t,
5260        flags: ::std::os::raw::c_uint,
5261    ) -> hipError_t;
5262}
5263extern "C" {
5264    #[doc = " @brief Close memory mapped with ::hipIpcOpenMemHandle\n\n Unmaps memory returned by ::hipIpcOpenMemHandle. The original allocation in the exporting\n process as well as imported mappings in other processes will be unaffected.\n\n Any resources used to enable peer access will be freed if this is the last mapping using them.\n\n @param devPtr - Device pointer returned by ::hipIpcOpenMemHandle\n\n @returns #hipSuccess, #hipErrorMapFailed, #hipErrorInvalidHandle\n\n @note This IPC memory related feature API on Windows may behave differently from Linux.\n"]
5265    pub fn hipIpcCloseMemHandle(devPtr: *mut ::std::os::raw::c_void) -> hipError_t;
5266}
5267extern "C" {
5268    #[doc = " @brief Gets an opaque interprocess handle for an event.\n\n The event is previously allocated with #hipEventInterprocess and #hipEventDisableTiming flags.\n The opaque interprocess handle may be copied into other processes and opened with\n ::hipIpcOpenEventHandle. Then ::hipEventRecord, ::hipEventSynchronize, ::hipStreamWaitEvent and\n ::hipEventQuery may be used in either process. After the exported event has been freed with\n ::hipEventDestroy, operations on the imported event will result in undefined behavior.\n\n @param[out]  handle Pointer to #hipIpcEventHandle to return the opaque event handle\n @param[in]   event  Event allocated with #hipEventInterprocess and #hipEventDisableTiming flags\n\n @returns #hipSuccess, #hipErrorInvalidConfiguration, #hipErrorInvalidValue\n\n @note This IPC event related feature API is currently applicable on Linux.\n"]
5269    pub fn hipIpcGetEventHandle(handle: *mut hipIpcEventHandle_t, event: hipEvent_t) -> hipError_t;
5270}
5271extern "C" {
5272    #[doc = " @brief Opens an interprocess event handle.\n\n Opens an interprocess event handle exported from another process with ::hipIpcGetEventHandle.\n The returned #hipEvent_t behaves like a locally created event with the #hipEventDisableTiming\n flag specified. This event needs be freed with ::hipEventDestroy. After the exported event\n has been freed with ::hipEventDestroy, operations on the imported event will result in\n undefined behavior. If the input handle is from the same process, it will return\n #hipErrorInvalidContext.\n\n @param[out]  event  Pointer to hipEvent_t to return the imported event\n @param[in]   handle The opaque interprocess handle to open\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidContext\n\n @note This IPC event related feature API is currently applicable on Linux.\n"]
5273    pub fn hipIpcOpenEventHandle(event: *mut hipEvent_t, handle: hipIpcEventHandle_t)
5274        -> hipError_t;
5275}
5276extern "C" {
5277    #[doc = " @}\n/\n/**\n\n  @defgroup Execution Execution Control\n  @{\n  This section describes the execution control functions of HIP runtime API.\n\n/\n/**\n @brief Set attribute for a specific function\n\n @param [in] func Pointer of the function\n @param [in] attr Attribute to set\n @param [in] value Value to set\n\n @returns #hipSuccess, #hipErrorInvalidDeviceFunction, #hipErrorInvalidValue\n\n Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is\n ignored on those architectures.\n"]
5278    pub fn hipFuncSetAttribute(
5279        func: *const ::std::os::raw::c_void,
5280        attr: hipFuncAttribute,
5281        value: ::std::os::raw::c_int,
5282    ) -> hipError_t;
5283}
5284extern "C" {
5285    #[doc = " @brief Set Cache configuration for a specific function\n\n @param [in] func Pointer of the function.\n @param [in] config Configuration to set.\n\n @returns #hipSuccess, #hipErrorNotInitialized\n Note: AMD devices and some Nvidia GPUS do not support reconfigurable cache.  This hint is ignored\n on those architectures.\n"]
5286    pub fn hipFuncSetCacheConfig(
5287        func: *const ::std::os::raw::c_void,
5288        config: hipFuncCache_t,
5289    ) -> hipError_t;
5290}
5291extern "C" {
5292    #[doc = " @brief Set shared memory configuation for a specific function\n\n @param [in] func Pointer of the function\n @param [in] config Configuration\n\n @returns #hipSuccess, #hipErrorInvalidDeviceFunction, #hipErrorInvalidValue\n\n Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is\n ignored on those architectures.\n"]
5293    pub fn hipFuncSetSharedMemConfig(
5294        func: *const ::std::os::raw::c_void,
5295        config: hipSharedMemConfig,
5296    ) -> hipError_t;
5297}
5298extern "C" {
5299    #[doc = " @}\n/\n/**\n-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup Error Error Handling\n  @{\n  This section describes the error handling functions of HIP runtime API.\n/\n/**\n @brief Return last error returned by any HIP runtime API call and resets the stored error code to\n #hipSuccess\n\n @returns return code from last HIP called from the active host thread\n\n Returns the last error that has been returned by any of the runtime calls in the same host\n thread, and then resets the saved error to #hipSuccess.\n\n @see hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t"]
5300    pub fn hipGetLastError() -> hipError_t;
5301}
5302extern "C" {
5303    #[doc = " @brief Return last error returned by any HIP runtime API call and resets the stored error code to\n #hipSuccess\n\n @returns return code from last HIP called from the active host thread\n\n Returns the last error that has been returned by any of the runtime calls in the same host\n thread, and then resets the saved error to #hipSuccess.\n\n @see hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t"]
5304    pub fn hipExtGetLastError() -> hipError_t;
5305}
5306extern "C" {
5307    #[doc = " @brief Return last error returned by any HIP runtime API call.\n\n @returns #hipSuccess\n\n Returns the last error that has been returned by any of the runtime calls in the same host\n thread. Unlike hipGetLastError, this function does not reset the saved error code.\n\n @see hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t"]
5308    pub fn hipPeekAtLastError() -> hipError_t;
5309}
5310extern "C" {
5311    #[doc = " @brief Return hip error as text string form.\n\n @param hip_error Error code to convert to name.\n @returns const char pointer to the NULL-terminated error name\n\n @see hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t"]
5312    pub fn hipGetErrorName(hip_error: hipError_t) -> *const ::std::os::raw::c_char;
5313}
5314extern "C" {
5315    #[doc = " @brief Return handy text string message to explain the error which occurred\n\n @param hipError Error code to convert to string.\n @returns const char pointer to the NULL-terminated error string\n\n @see hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t"]
5316    pub fn hipGetErrorString(hipError: hipError_t) -> *const ::std::os::raw::c_char;
5317}
5318extern "C" {
5319    #[doc = " @brief Return hip error as text string form.\n\n @param [in] hipError Error code to convert to string.\n @param [out] errorString char pointer to the NULL-terminated error string\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t"]
5320    pub fn hipDrvGetErrorName(
5321        hipError: hipError_t,
5322        errorString: *mut *const ::std::os::raw::c_char,
5323    ) -> hipError_t;
5324}
5325extern "C" {
5326    #[doc = " @brief Return handy text string message to explain the error which occurred\n\n @param [in] hipError Error code to convert to string.\n @param [out] errorString char pointer to the NULL-terminated error string\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t"]
5327    pub fn hipDrvGetErrorString(
5328        hipError: hipError_t,
5329        errorString: *mut *const ::std::os::raw::c_char,
5330    ) -> hipError_t;
5331}
5332extern "C" {
5333    #[doc = " @brief Create an asynchronous stream.\n\n @param[in, out] stream Valid pointer to hipStream_t.  This function writes the memory with the\n newly created stream.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Create a new asynchronous stream.  @p stream returns an opaque handle that can be used to\n reference the newly created stream in subsequent hipStream* commands.  The stream is allocated on\n the heap and will remain allocated even if the handle goes out-of-scope.  To release the memory\n used by the stream, application must call hipStreamDestroy.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy"]
5334    pub fn hipStreamCreate(stream: *mut hipStream_t) -> hipError_t;
5335}
5336extern "C" {
5337    #[doc = " @brief Create an asynchronous stream.\n\n @param[in, out] stream Pointer to new stream\n @param[in ] flags to control stream creation.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Create a new asynchronous stream.  @p stream returns an opaque handle that can be used to\n reference the newly created stream in subsequent hipStream* commands.  The stream is allocated on\n the heap and will remain allocated even if the handle goes out-of-scope.  To release the memory\n used by the stream, application must call hipStreamDestroy. Flags controls behavior of the\n stream.  See #hipStreamDefault, #hipStreamNonBlocking.\n\n\n @see hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy"]
5338    pub fn hipStreamCreateWithFlags(
5339        stream: *mut hipStream_t,
5340        flags: ::std::os::raw::c_uint,
5341    ) -> hipError_t;
5342}
5343extern "C" {
5344    #[doc = " @brief Create an asynchronous stream with the specified priority.\n\n @param[in, out] stream Pointer to new stream\n @param[in ] flags to control stream creation.\n @param[in ] priority of the stream. Lower numbers represent higher priorities.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Create a new asynchronous stream with the specified priority.  @p stream returns an opaque handle\n that can be used to reference the newly created stream in subsequent hipStream* commands.  The\n stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope.\n To release the memory used by the stream, application must call hipStreamDestroy. Flags controls\n behavior of the stream.  See #hipStreamDefault, #hipStreamNonBlocking.\n\n\n @see hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy"]
5345    pub fn hipStreamCreateWithPriority(
5346        stream: *mut hipStream_t,
5347        flags: ::std::os::raw::c_uint,
5348        priority: ::std::os::raw::c_int,
5349    ) -> hipError_t;
5350}
5351extern "C" {
5352    #[doc = " @brief Returns numerical values that correspond to the least and greatest stream priority.\n\n @param[in, out] leastPriority pointer in which value corresponding to least priority is returned.\n @param[in, out] greatestPriority pointer in which value corresponding to greatest priority is returned.\n @returns #hipSuccess\n\n Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least\n and greatest stream priority respectively. Stream priorities follow a convention where lower numbers\n imply greater priorities. The range of meaningful stream priorities is given by\n [*greatestPriority, *leastPriority]. If the user attempts to create a stream with a priority value\n that is outside the meaningful range as specified by this API, the priority is automatically\n clamped to within the valid range."]
5353    pub fn hipDeviceGetStreamPriorityRange(
5354        leastPriority: *mut ::std::os::raw::c_int,
5355        greatestPriority: *mut ::std::os::raw::c_int,
5356    ) -> hipError_t;
5357}
5358extern "C" {
5359    #[doc = " @brief Destroys the specified stream.\n\n @param[in] stream stream identifier.\n @returns #hipSuccess #hipErrorInvalidHandle\n\n Destroys the specified stream.\n\n If commands are still executing on the specified stream, some may complete execution before the\n queue is deleted.\n\n The queue may be destroyed while some commands are still inflight, or may wait for all commands\n queued to the stream before destroying it.\n\n @see hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamQuery,\n hipStreamWaitEvent, hipStreamSynchronize"]
5360    pub fn hipStreamDestroy(stream: hipStream_t) -> hipError_t;
5361}
5362extern "C" {
5363    #[doc = " @brief Return #hipSuccess if all of the operations in the specified @p stream have completed, or\n #hipErrorNotReady if not.\n\n @param[in] stream stream to query\n\n @returns #hipSuccess, #hipErrorNotReady, #hipErrorInvalidHandle\n\n This is thread-safe and returns a snapshot of the current state of the queue.  However, if other\n host threads are sending work to the stream, the status may change immediately after the function\n is called.  It is typically used for debug.\n\n @see hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent,\n hipStreamSynchronize, hipStreamDestroy"]
5364    pub fn hipStreamQuery(stream: hipStream_t) -> hipError_t;
5365}
5366extern "C" {
5367    #[doc = " @brief Wait for all commands in stream to complete.\n\n @param[in] stream stream identifier.\n\n @returns #hipSuccess, #hipErrorInvalidHandle\n\n This command is host-synchronous : the host will block until the specified stream is empty.\n\n This command follows standard null-stream semantics.  Specifically, specifying the null stream\n will cause the command to wait for other streams on the same device to complete all pending\n operations.\n\n This command honors the hipDeviceLaunchBlocking flag, which controls whether the wait is active\n or blocking.\n\n @see hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent,\n hipStreamDestroy\n"]
5368    pub fn hipStreamSynchronize(stream: hipStream_t) -> hipError_t;
5369}
5370extern "C" {
5371    #[doc = " @brief Make the specified compute stream wait for an event\n\n @param[in] stream stream to make wait.\n @param[in] event event to wait on\n @param[in] flags control operation [must be 0]\n\n @returns #hipSuccess, #hipErrorInvalidHandle\n\n This function inserts a wait operation into the specified stream.\n All future work submitted to @p stream will wait until @p event reports completion before\n beginning execution.\n\n This function only waits for commands in the current stream to complete.  Notably, this function\n does not implicitly wait for commands in the default stream to complete, even if the specified\n stream is created with hipStreamNonBlocking = 0.\n\n @see hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamDestroy"]
5372    pub fn hipStreamWaitEvent(
5373        stream: hipStream_t,
5374        event: hipEvent_t,
5375        flags: ::std::os::raw::c_uint,
5376    ) -> hipError_t;
5377}
5378extern "C" {
5379    #[doc = " @brief Return flags associated with this stream.\n\n @param[in] stream stream to be queried\n @param[in,out] flags Pointer to an unsigned integer in which the stream's flags are returned\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidHandle\n\n @returns #hipSuccess #hipErrorInvalidValue #hipErrorInvalidHandle\n\n Return flags associated with this stream in *@p flags.\n\n @see hipStreamCreateWithFlags"]
5380    pub fn hipStreamGetFlags(stream: hipStream_t, flags: *mut ::std::os::raw::c_uint)
5381        -> hipError_t;
5382}
5383extern "C" {
5384    #[doc = " @brief Query the priority of a stream.\n\n @param[in] stream stream to be queried\n @param[in,out] priority Pointer to an unsigned integer in which the stream's priority is returned\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidHandle\n\n @returns #hipSuccess #hipErrorInvalidValue #hipErrorInvalidHandle\n\n Query the priority of a stream. The priority is returned in in priority.\n\n @see hipStreamCreateWithFlags"]
5385    pub fn hipStreamGetPriority(
5386        stream: hipStream_t,
5387        priority: *mut ::std::os::raw::c_int,
5388    ) -> hipError_t;
5389}
5390extern "C" {
5391    #[doc = " @brief Get the device assocaited with the stream\n\n @param[in] stream stream to be queried\n @param[out] device device associated with the stream\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorContextIsDestroyed, #hipErrorInvalidHandle,\n #hipErrorNotInitialized, #hipErrorDeinitialized, #hipErrorInvalidContext\n\n @see hipStreamCreate, hipStreamDestroy, hipDeviceGetStreamPriorityRange"]
5392    pub fn hipStreamGetDevice(stream: hipStream_t, device: *mut hipDevice_t) -> hipError_t;
5393}
5394extern "C" {
5395    #[doc = " @brief Create an asynchronous stream with the specified CU mask.\n\n @param[in, out] stream Pointer to new stream\n @param[in ] cuMaskSize Size of CU mask bit array passed in.\n @param[in ] cuMask Bit-vector representing the CU mask. Each active bit represents using one CU.\n The first 32 bits represent the first 32 CUs, and so on. If its size is greater than physical\n CU number (i.e., multiProcessorCount member of hipDeviceProp_t), the extra elements are ignored.\n It is user's responsibility to make sure the input is meaningful.\n @returns #hipSuccess, #hipErrorInvalidHandle, #hipErrorInvalidValue\n\n Create a new asynchronous stream with the specified CU mask.  @p stream returns an opaque handle\n that can be used to reference the newly created stream in subsequent hipStream* commands.  The\n stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope.\n To release the memory used by the stream, application must call hipStreamDestroy.\n\n\n @see hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy"]
5396    pub fn hipExtStreamCreateWithCUMask(
5397        stream: *mut hipStream_t,
5398        cuMaskSize: u32,
5399        cuMask: *const u32,
5400    ) -> hipError_t;
5401}
5402extern "C" {
5403    #[doc = " @brief Get CU mask associated with an asynchronous stream\n\n @param[in] stream stream to be queried\n @param[in] cuMaskSize number of the block of memories (uint32_t *) allocated by user\n @param[out] cuMask Pointer to a pre-allocated block of memories (uint32_t *) in which\n the stream's CU mask is returned. The CU mask is returned in a chunck of 32 bits where\n each active bit represents one active CU\n @returns #hipSuccess, #hipErrorInvalidHandle, #hipErrorInvalidValue\n\n @see hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy"]
5404    pub fn hipExtStreamGetCUMask(
5405        stream: hipStream_t,
5406        cuMaskSize: u32,
5407        cuMask: *mut u32,
5408    ) -> hipError_t;
5409}
5410#[doc = " Stream CallBack struct"]
5411pub type hipStreamCallback_t = ::std::option::Option<
5412    unsafe extern "C" fn(
5413        stream: hipStream_t,
5414        status: hipError_t,
5415        userData: *mut ::std::os::raw::c_void,
5416    ),
5417>;
5418extern "C" {
5419    #[doc = " @brief Adds a callback to be called on the host after all currently enqueued\n items in the stream have completed.  For each\n hipStreamAddCallback call, a callback will be executed exactly once.\n The callback will block later work in the stream until it is finished.\n @param[in] stream   - Stream to add callback to\n @param[in] callback - The function to call once preceding stream operations are complete\n @param[in] userData - User specified data to be passed to the callback function\n @param[in] flags    - Reserved for future use, must be 0\n @returns #hipSuccess, #hipErrorInvalidHandle, #hipErrorNotSupported\n\n @see hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamSynchronize,\n hipStreamWaitEvent, hipStreamDestroy, hipStreamCreateWithPriority\n"]
5420    pub fn hipStreamAddCallback(
5421        stream: hipStream_t,
5422        callback: hipStreamCallback_t,
5423        userData: *mut ::std::os::raw::c_void,
5424        flags: ::std::os::raw::c_uint,
5425    ) -> hipError_t;
5426}
5427extern "C" {
5428    #[doc = " @brief Enqueues a wait command to the stream.[BETA]\n\n @param [in] stream - Stream identifier\n @param [in] ptr    - Pointer to memory object allocated using #hipMallocSignalMemory flag\n @param [in] value  - Value to be used in compare operation\n @param [in] flags  - Defines the compare operation, supported values are #hipStreamWaitValueGte\n #hipStreamWaitValueEq, #hipStreamWaitValueAnd and #hipStreamWaitValueNor\n @param [in] mask   - Mask to be applied on value at memory before it is compared with value,\n default value is set to enable every bit\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Enqueues a wait command to the stream, all operations enqueued  on this stream after this, will\n not execute until the defined wait condition is true.\n\n #hipStreamWaitValueGte: waits until *ptr&mask >= value\n\n #hipStreamWaitValueEq : waits until *ptr&mask == value\n\n #hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0\n\n #hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0\n\n @note when using #hipStreamWaitValueNor, mask is applied on both 'value' and '*ptr'.\n\n @note Support for #hipStreamWaitValue32 can be queried using 'hipDeviceGetAttribute()' and\n 'hipDeviceAttributeCanUseStreamWaitValue' flag.\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @see hipExtMallocWithFlags, hipFree, hipStreamWaitValue64, hipStreamWriteValue64,\n hipStreamWriteValue32, hipDeviceGetAttribute"]
5429    pub fn hipStreamWaitValue32(
5430        stream: hipStream_t,
5431        ptr: *mut ::std::os::raw::c_void,
5432        value: u32,
5433        flags: ::std::os::raw::c_uint,
5434        mask: u32,
5435    ) -> hipError_t;
5436}
5437extern "C" {
5438    #[doc = " @brief Enqueues a wait command to the stream.[BETA]\n\n @param [in] stream - Stream identifier\n @param [in] ptr    - Pointer to memory object allocated using 'hipMallocSignalMemory' flag\n @param [in] value  - Value to be used in compare operation\n @param [in] flags  - Defines the compare operation, supported values are #hipStreamWaitValueGte\n #hipStreamWaitValueEq, #hipStreamWaitValueAnd and #hipStreamWaitValueNor.\n @param [in] mask   - Mask to be applied on value at memory before it is compared with value\n default value is set to enable every bit\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Enqueues a wait command to the stream, all operations enqueued  on this stream after this, will\n not execute until the defined wait condition is true.\n\n #hipStreamWaitValueGte: waits until *ptr&mask >= value\n\n #hipStreamWaitValueEq : waits until *ptr&mask == value\n\n #hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0\n\n #hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0\n\n @note when using #hipStreamWaitValueNor, mask is applied on both 'value' and '*ptr'.\n\n @note Support for hipStreamWaitValue64 can be queried using 'hipDeviceGetAttribute()' and\n 'hipDeviceAttributeCanUseStreamWaitValue' flag.\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @see hipExtMallocWithFlags, hipFree, hipStreamWaitValue32, hipStreamWriteValue64,\n hipStreamWriteValue32, hipDeviceGetAttribute"]
5439    pub fn hipStreamWaitValue64(
5440        stream: hipStream_t,
5441        ptr: *mut ::std::os::raw::c_void,
5442        value: u64,
5443        flags: ::std::os::raw::c_uint,
5444        mask: u64,
5445    ) -> hipError_t;
5446}
5447extern "C" {
5448    #[doc = " @brief Enqueues a write command to the stream.[BETA]\n\n @param [in] stream - Stream identifier\n @param [in] ptr    - Pointer to a GPU accessible memory object\n @param [in] value  - Value to be written\n @param [in] flags  - reserved, ignored for now, will be used in future releases\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Enqueues a write command to the stream, write operation is performed after all earlier commands\n on this stream have completed the execution.\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @see hipExtMallocWithFlags, hipFree, hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64"]
5449    pub fn hipStreamWriteValue32(
5450        stream: hipStream_t,
5451        ptr: *mut ::std::os::raw::c_void,
5452        value: u32,
5453        flags: ::std::os::raw::c_uint,
5454    ) -> hipError_t;
5455}
5456extern "C" {
5457    #[doc = " @brief Enqueues a write command to the stream.[BETA]\n\n @param [in] stream - Stream identifier\n @param [in] ptr    - Pointer to a GPU accessible memory object\n @param [in] value  - Value to be written\n @param [in] flags  - reserved, ignored for now, will be used in future releases\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Enqueues a write command to the stream, write operation is performed after all earlier commands\n on this stream have completed the execution.\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @see hipExtMallocWithFlags, hipFree, hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64"]
5458    pub fn hipStreamWriteValue64(
5459        stream: hipStream_t,
5460        ptr: *mut ::std::os::raw::c_void,
5461        value: u64,
5462        flags: ::std::os::raw::c_uint,
5463    ) -> hipError_t;
5464}
5465extern "C" {
5466    #[doc = " @brief Enqueues an array of stream memory operations in the stream.[BETA]\n\n @param [in] stream      - Stream identifier\n @param [in] count       - The number of operations in the array. Must be less than 256\n @param [in] paramArray  - The types and parameters of the individual operations.\n @param [in] flags       - Reserved for future expansion; must be 0.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Batch operations to synchronize the stream via memory operations.\n\n @warning This API is marked as beta, meaning, while this is feature complete,\n it is still open to changes and may have outstanding issues.\n\n @see hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64. hipStreamWriteValue64"]
5467    pub fn hipStreamBatchMemOp(
5468        stream: hipStream_t,
5469        count: ::std::os::raw::c_uint,
5470        paramArray: *mut hipStreamBatchMemOpParams,
5471        flags: ::std::os::raw::c_uint,
5472    ) -> hipError_t;
5473}
5474extern "C" {
5475    #[doc = " @brief Creates a batch memory operation node and adds it to a graph.[BETA]\n\n @param [in] phGraphNode      - Returns the newly created node\n @param [in] hGraph           - Graph to which to add the node\n @param [in] dependencies     -  Dependencies of the node\n @param [in] numDependencies  - Number of dependencies\n @param [in] nodeParams       - Parameters for the node\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as beta, meaning, while this is feature complete,\n it is still open to changes and may have outstanding issues.\n\n @see hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64. hipStreamWriteValue64, hipStreamBatchMemOp"]
5476    pub fn hipGraphAddBatchMemOpNode(
5477        phGraphNode: *mut hipGraphNode_t,
5478        hGraph: hipGraph_t,
5479        dependencies: *const hipGraphNode_t,
5480        numDependencies: usize,
5481        nodeParams: *const hipBatchMemOpNodeParams,
5482    ) -> hipError_t;
5483}
5484extern "C" {
5485    #[doc = " @brief Returns a batch mem op node's parameters.[BETA]\n\n @param [in] hNode           - Node to get the parameters for\n @param [in] nodeParams_out  - Pointer to return the parameters\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Returns the parameters of batch mem op node hNode in nodeParams_out.\n The paramArray returned in nodeParams_out is owned by the node.\n This memory remains valid until the node is destroyed or its parameters are modified,\n and should not be modified directly.\n\n @warning This API is marked as beta, meaning, while this is feature complete,\n it is still open to changes and may have outstanding issues.\n\n @see hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64. hipStreamWriteValue64. hipGraphBatchMemOpNodeSetParams"]
5486    pub fn hipGraphBatchMemOpNodeGetParams(
5487        hNode: hipGraphNode_t,
5488        nodeParams_out: *mut hipBatchMemOpNodeParams,
5489    ) -> hipError_t;
5490}
5491extern "C" {
5492    #[doc = " @brief Sets the batch mem op node's parameters.[BETA]\n\n @param [in] hNode       - Node to set the parameters for\n @param [in] nodeParams  - Parameters to copy\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Sets the parameters of batch mem op node hNode to nodeParams.\n\n @warning This API is marked as beta, meaning, while this is feature complete,\n it is still open to changes and may have outstanding issues.\n\n @see hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64. hipStreamWriteValue64, hipGraphBatchMemOpNodeGetParams"]
5493    pub fn hipGraphBatchMemOpNodeSetParams(
5494        hNode: hipGraphNode_t,
5495        nodeParams: *mut hipBatchMemOpNodeParams,
5496    ) -> hipError_t;
5497}
5498extern "C" {
5499    #[doc = " @brief Sets the parameters for a batch mem op node in the given graphExec.[BETA]\n\n @param [in] hGraphExec  - The executable graph in which to set the specified node\n @param [in] hNode       - Batch mem op node from the graph from which graphExec was instantiated\n @param [in] nodeParams  - Updated Parameters to set\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n Sets the parameters of a batch mem op node in an executable graph hGraphExec.\n The node is identified by the corresponding node hNode in the non-executable graph,\n from which the executable graph was instantiated.\n\n @warning This API is marked as beta, meaning, while this is feature complete,\n it is still open to changes and may have outstanding issues.\n\n @see hipStreamWriteValue32, hipStreamWaitValue32,\n hipStreamWaitValue64. hipStreamWriteValue64, hipStreamBatchMemOp"]
5500    pub fn hipGraphExecBatchMemOpNodeSetParams(
5501        hGraphExec: hipGraphExec_t,
5502        hNode: hipGraphNode_t,
5503        nodeParams: *const hipBatchMemOpNodeParams,
5504    ) -> hipError_t;
5505}
5506extern "C" {
5507    #[doc = " @}\n/\n/**\n-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup Event Event Management\n  @{\n  This section describes the event management functions of HIP runtime API.\n/\n/**\n @brief Create an event with the specified flags\n\n @param[in,out] event Returns the newly created event.\n @param[in] flags     Flags to control event behavior.  Valid values are #hipEventDefault,\n#hipEventBlockingSync, #hipEventDisableTiming, #hipEventInterprocess\n #hipEventDefault : Default flag.  The event will use active synchronization and will support\ntiming.  Blocking synchronization provides lowest possible latency at the expense of dedicating a\nCPU to poll on the event.\n #hipEventBlockingSync : The event will use blocking synchronization : if hipEventSynchronize is\ncalled on this event, the thread will block until the event completes.  This can increase latency\nfor the synchroniation but can result in lower power and more resources for other CPU threads.\n #hipEventDisableTiming : Disable recording of timing information. Events created with this flag\nwould not record profiling data and provide best performance if used for synchronization.\n #hipEventInterprocess : The event can be used as an interprocess event. hipEventDisableTiming\nflag also must be set when hipEventInterprocess flag is set.\n #hipEventDisableSystemFence : Disable acquire and release system scope fence. This may\nimprove performance but device memory may not be visible to the host and other devices\nif this flag is set.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue,\n#hipErrorLaunchFailure, #hipErrorOutOfMemory\n\n @see hipEventCreate, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime"]
5508    pub fn hipEventCreateWithFlags(
5509        event: *mut hipEvent_t,
5510        flags: ::std::os::raw::c_uint,
5511    ) -> hipError_t;
5512}
5513extern "C" {
5514    #[doc = "  Create an event\n\n @param[in,out] event Returns the newly created event.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue,\n #hipErrorLaunchFailure, #hipErrorOutOfMemory\n\n @see hipEventCreateWithFlags, hipEventRecord, hipEventQuery, hipEventSynchronize,\n hipEventDestroy, hipEventElapsedTime"]
5515    pub fn hipEventCreate(event: *mut hipEvent_t) -> hipError_t;
5516}
5517extern "C" {
5518    #[doc = " @brief Record an event in the specified stream.\n\n @param[in] event event to record.\n @param[in] stream stream in which to record event.\n @param[in] flags parameter for operations\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized,\n #hipErrorInvalidHandle, #hipErrorLaunchFailure\n\n hipEventQuery() or hipEventSynchronize() must be used to determine when the event\n transitions from \"recording\" (after hipEventRecord() is called) to \"recorded\"\n (when timestamps are set, if requested).\n\n Events which are recorded in a non-NULL stream will transition to\n from recording to \"recorded\" state when they reach the head of\n the specified stream, after all previous\n commands in that stream have completed executing.\n\n Flags include:\n   hipEventRecordDefault: Default event creation flag.\n   hipEventRecordExternal: Event is captured in the graph as an external event node when\n                           performing stream capture\n\n If hipEventRecord() has been previously called on this event, then this call will overwrite any\n existing state in event.\n\n If this function is called on an event that is currently being recorded, results are undefined\n - either outstanding recording may save state into the event, and the order is not guaranteed.\n\n @note: If this function is not called before use hipEventQuery() or hipEventSynchronize(),\n #hipSuccess is returned, meaning no pending event in the stream.\n\n @see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize,\n hipEventDestroy, hipEventElapsedTime\n"]
5519    pub fn hipEventRecordWithFlags(
5520        event: hipEvent_t,
5521        stream: hipStream_t,
5522        flags: ::std::os::raw::c_uint,
5523    ) -> hipError_t;
5524}
5525extern "C" {
5526    pub fn hipEventRecord(event: hipEvent_t, stream: hipStream_t) -> hipError_t;
5527}
5528extern "C" {
5529    #[doc = "  @brief Destroy the specified event.\n\n  @param[in] event Event to destroy.\n  @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue,\n #hipErrorLaunchFailure\n\n  Releases memory associated with the event.  If the event is recording but has not completed\n recording when hipEventDestroy() is called, the function will return immediately and the\n completion_future resources will be released later, when the hipDevice is synchronized.\n\n @see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventRecord,\n hipEventElapsedTime\n\n @returns #hipSuccess"]
5530    pub fn hipEventDestroy(event: hipEvent_t) -> hipError_t;
5531}
5532extern "C" {
5533    #[doc = "  @brief Wait for an event to complete.\n\n  This function will block until the event is ready, waiting for all previous work in the stream\n specified when event was recorded with hipEventRecord().\n\n  If hipEventRecord() has not been called on @p event, this function returns #hipSuccess when no\n  event is captured.\n\n\n  @param[in] event Event on which to wait.\n\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized,\n #hipErrorInvalidHandle, #hipErrorLaunchFailure\n\n  @see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord,\n hipEventElapsedTime"]
5534    pub fn hipEventSynchronize(event: hipEvent_t) -> hipError_t;
5535}
5536extern "C" {
5537    #[doc = " @brief Return the elapsed time between two events.\n\n @param[out] ms : Return time between start and stop in ms.\n @param[in]   start : Start event.\n @param[in]   stop  : Stop event.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotReady, #hipErrorInvalidHandle,\n #hipErrorNotInitialized, #hipErrorLaunchFailure\n\n Computes the elapsed time between two events. Time is computed in ms, with\n a resolution of approximately 1 us.\n\n Events which are recorded in a NULL stream will block until all commands\n on all other streams complete execution, and then record the timestamp.\n\n Events which are recorded in a non-NULL stream will record their timestamp\n when they reach the head of the specified stream, after all previous\n commands in that stream have completed executing.  Thus the time that\n the event recorded may be significantly after the host calls hipEventRecord().\n\n If hipEventRecord() has not been called on either event, then #hipErrorInvalidHandle is\n returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been\n recorded on one or both events (that is, hipEventQuery() would return #hipErrorNotReady on at\n least one of the events), then #hipErrorNotReady is returned.\n\n @see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord,\n hipEventSynchronize"]
5538    pub fn hipEventElapsedTime(ms: *mut f32, start: hipEvent_t, stop: hipEvent_t) -> hipError_t;
5539}
5540extern "C" {
5541    #[doc = " @brief Query event status\n\n @param[in] event Event to query.\n @returns #hipSuccess, #hipErrorNotReady, #hipErrorInvalidHandle, #hipErrorInvalidValue,\n #hipErrorNotInitialized, #hipErrorLaunchFailure\n\n Query the status of the specified event.  This function will return #hipSuccess if all\n commands in the appropriate stream (specified to hipEventRecord()) have completed.  If any execution\n has not completed, then #hipErrorNotReady is returned.\n\n @note This API returns #hipSuccess, if hipEventRecord() is not called before this API.\n\n @see hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy,\n hipEventSynchronize, hipEventElapsedTime"]
5542    pub fn hipEventQuery(event: hipEvent_t) -> hipError_t;
5543}
5544extern "C" {
5545    #[doc = "  @brief Sets information on the specified pointer.[BETA]\n\n  @param [in]      value     Sets pointer attribute value\n  @param [in]      attribute  Attribute to set\n  @param [in]      ptr      Pointer to set attributes for\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @warning This API is marked as Beta. While this feature is complete, it can\n           change and might have outstanding issues.\n"]
5546    pub fn hipPointerSetAttribute(
5547        value: *const ::std::os::raw::c_void,
5548        attribute: hipPointer_attribute,
5549        ptr: hipDeviceptr_t,
5550    ) -> hipError_t;
5551}
5552extern "C" {
5553    #[doc = "  @brief Returns attributes for the specified pointer\n\n  @param [out]  attributes  attributes for the specified pointer\n  @param [in]   ptr         pointer to get attributes for\n\n  The output parameter 'attributes' has a member named 'type' that describes what memory the\n  pointer is associated with, such as device memory, host memory, managed memory, and others.\n  Otherwise, the API cannot handle the pointer and returns #hipErrorInvalidValue.\n\n  @note  The unrecognized memory type is unsupported to keep the HIP functionality backward\n  compatibility due to #hipMemoryType enum values.\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @note  The current behavior of this HIP API corresponds to the CUDA API before version 11.0.\n\n  @see hipPointerGetAttribute"]
5554    pub fn hipPointerGetAttributes(
5555        attributes: *mut hipPointerAttribute_t,
5556        ptr: *const ::std::os::raw::c_void,
5557    ) -> hipError_t;
5558}
5559extern "C" {
5560    #[doc = "  @brief Returns information about the specified pointer.[BETA]\n\n  @param [in, out] data     Returned pointer attribute value\n  @param [in]      attribute  Attribute to query for\n  @param [in]      ptr      Pointer to get attributes for\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @warning This API is marked as Beta. While this feature is complete, it can\n           change and might have outstanding issues.\n\n  @see hipPointerGetAttributes"]
5561    pub fn hipPointerGetAttribute(
5562        data: *mut ::std::os::raw::c_void,
5563        attribute: hipPointer_attribute,
5564        ptr: hipDeviceptr_t,
5565    ) -> hipError_t;
5566}
5567extern "C" {
5568    #[doc = "  @brief Returns information about the specified pointer.[BETA]\n\n  @param [in]  numAttributes   number of attributes to query for\n  @param [in]  attributes      attributes to query for\n  @param [in, out] data        a two-dimensional containing pointers to memory locations\n                               where the result of each attribute query will be written to\n  @param [in]  ptr             pointer to get attributes for\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @warning This API is marked as Beta. While this feature is complete, it can\n           change and might have outstanding issues.\n\n  @see hipPointerGetAttribute"]
5569    pub fn hipDrvPointerGetAttributes(
5570        numAttributes: ::std::os::raw::c_uint,
5571        attributes: *mut hipPointer_attribute,
5572        data: *mut *mut ::std::os::raw::c_void,
5573        ptr: hipDeviceptr_t,
5574    ) -> hipError_t;
5575}
5576extern "C" {
5577    #[doc = "-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup External External Resource Interoperability\n  @{\n  @ingroup API\n\n  This section describes the external resource interoperability functions of HIP runtime API.\n\n/\n/**\n  @brief Imports an external semaphore.\n\n  @param[out] extSem_out  External semaphores to be waited on\n  @param[in] semHandleDesc Semaphore import handle descriptor\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see\n\n  @note  This API is currently not supported on Linux.\n"]
5578    pub fn hipImportExternalSemaphore(
5579        extSem_out: *mut hipExternalSemaphore_t,
5580        semHandleDesc: *const hipExternalSemaphoreHandleDesc,
5581    ) -> hipError_t;
5582}
5583extern "C" {
5584    #[doc = "  @brief Signals a set of external semaphore objects.\n\n  @param[in] extSemArray  External semaphores to be waited on\n  @param[in] paramsArray Array of semaphore parameters\n  @param[in] numExtSems Number of semaphores to wait on\n  @param[in] stream Stream to enqueue the wait operations in\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see\n\n  @note  This API is currently not supported on Linux.\n"]
5585    pub fn hipSignalExternalSemaphoresAsync(
5586        extSemArray: *const hipExternalSemaphore_t,
5587        paramsArray: *const hipExternalSemaphoreSignalParams,
5588        numExtSems: ::std::os::raw::c_uint,
5589        stream: hipStream_t,
5590    ) -> hipError_t;
5591}
5592extern "C" {
5593    #[doc = "  @brief Waits on a set of external semaphore objects\n\n  @param[in] extSemArray  External semaphores to be waited on\n  @param[in] paramsArray Array of semaphore parameters\n  @param[in] numExtSems Number of semaphores to wait on\n  @param[in] stream Stream to enqueue the wait operations in\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see\n\n  @note  This API is currently not supported on Linux.\n"]
5594    pub fn hipWaitExternalSemaphoresAsync(
5595        extSemArray: *const hipExternalSemaphore_t,
5596        paramsArray: *const hipExternalSemaphoreWaitParams,
5597        numExtSems: ::std::os::raw::c_uint,
5598        stream: hipStream_t,
5599    ) -> hipError_t;
5600}
5601extern "C" {
5602    #[doc = "  @brief Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.\n\n  @param[in] extSem handle to an external memory object\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see\n\n  @note  This API is currently not supported on Linux.\n"]
5603    pub fn hipDestroyExternalSemaphore(extSem: hipExternalSemaphore_t) -> hipError_t;
5604}
5605extern "C" {
5606    #[doc = "  @brief Imports an external memory object.\n\n  @param[out] extMem_out  Returned handle to an external memory object\n  @param[in]  memHandleDesc Memory import handle descriptor\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see"]
5607    pub fn hipImportExternalMemory(
5608        extMem_out: *mut hipExternalMemory_t,
5609        memHandleDesc: *const hipExternalMemoryHandleDesc,
5610    ) -> hipError_t;
5611}
5612extern "C" {
5613    #[doc = "  @brief Maps a buffer onto an imported memory object.\n\n  @param[out] devPtr Returned device pointer to buffer\n  @param[in]  extMem  Handle to external memory object\n  @param[in]  bufferDesc  Buffer descriptor\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see"]
5614    pub fn hipExternalMemoryGetMappedBuffer(
5615        devPtr: *mut *mut ::std::os::raw::c_void,
5616        extMem: hipExternalMemory_t,
5617        bufferDesc: *const hipExternalMemoryBufferDesc,
5618    ) -> hipError_t;
5619}
5620extern "C" {
5621    #[doc = "  @brief Destroys an external memory object.\n\n  @param[in] extMem  External memory object to be destroyed\n\n  @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n\n  @see"]
5622    pub fn hipDestroyExternalMemory(extMem: hipExternalMemory_t) -> hipError_t;
5623}
5624extern "C" {
5625    #[doc = "  @brief Maps a mipmapped array onto an external memory object.\n\n  @param[out] mipmap mipmapped array to return\n  @param[in]  extMem external memory object handle\n  @param[in]  mipmapDesc external mipmapped array descriptor\n\n  Returned mipmapped array must be freed using hipFreeMipmappedArray.\n\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidResourceHandle\n\n  @see hipImportExternalMemory, hipDestroyExternalMemory, hipExternalMemoryGetMappedBuffer, hipFreeMipmappedArray"]
5626    pub fn hipExternalMemoryGetMappedMipmappedArray(
5627        mipmap: *mut hipMipmappedArray_t,
5628        extMem: hipExternalMemory_t,
5629        mipmapDesc: *const hipExternalMemoryMipmappedArrayDesc,
5630    ) -> hipError_t;
5631}
5632extern "C" {
5633    #[doc = " @}\n/\n/**\n  @brief Allocate memory on the default accelerator\n\n  @param[out] ptr Pointer to the allocated memory\n  @param[in]  size Requested memory size\n\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n\n  @returns #hipSuccess, #hipErrorOutOfMemory, #hipErrorInvalidValue (bad context, null *ptr)\n\n  @see hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray,\n hipHostFree, hipHostMalloc"]
5634    pub fn hipMalloc(ptr: *mut *mut ::std::os::raw::c_void, size: usize) -> hipError_t;
5635}
5636extern "C" {
5637    #[doc = "  @brief Allocate memory on the default accelerator\n\n  @param[out] ptr  Pointer to the allocated memory\n  @param[in]  sizeBytes  Requested memory size\n  @param[in]  flags  Type of memory allocation\n\n  If requested memory size is 0, no memory is allocated, *ptr returns nullptr, and #hipSuccess\n  is returned.\n\n  The memory allocation flag should be either #hipDeviceMallocDefault,\n  #hipDeviceMallocFinegrained, #hipDeviceMallocUncached, or #hipMallocSignalMemory.\n  If the flag is any other value, the API returns #hipErrorInvalidValue.\n\n  @returns #hipSuccess, #hipErrorOutOfMemory, #hipErrorInvalidValue (bad context, null *ptr)\n\n  @see hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray,\n hipHostFree, hiHostMalloc"]
5638    pub fn hipExtMallocWithFlags(
5639        ptr: *mut *mut ::std::os::raw::c_void,
5640        sizeBytes: usize,
5641        flags: ::std::os::raw::c_uint,
5642    ) -> hipError_t;
5643}
5644extern "C" {
5645    #[doc = "  @brief Allocate pinned host memory [Deprecated]\n\n  @param[out] ptr Pointer to the allocated host pinned memory\n  @param[in]  size Requested memory size\n\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n\n  @returns #hipSuccess, #hipErrorOutOfMemory\n\n  @warning  This API is deprecated, use hipHostMalloc() instead"]
5646    pub fn hipMallocHost(ptr: *mut *mut ::std::os::raw::c_void, size: usize) -> hipError_t;
5647}
5648extern "C" {
5649    #[doc = "  @brief Allocate pinned host memory [Deprecated]\n\n  @param[out] ptr Pointer to the allocated host pinned memory\n  @param[in]  size Requested memory size\n\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n\n  @returns #hipSuccess, #hipErrorOutOfMemory\n\n  @warning  This API is deprecated, use hipHostMalloc() instead"]
5650    pub fn hipMemAllocHost(ptr: *mut *mut ::std::os::raw::c_void, size: usize) -> hipError_t;
5651}
5652extern "C" {
5653    #[doc = "  @brief Allocates device accessible page locked (pinned) host memory\n\n  This API allocates pinned host memory which is mapped into the address space of all GPUs\n  in the system, the memory can be accessed directly by the GPU device, and can be read or\n  written with much higher bandwidth than pageable memory obtained with functions such as\n  malloc().\n\n  Using the pinned host memory, applications can implement faster data transfers for HostToDevice\n  and DeviceToHost. The runtime tracks the hipHostMalloc allocations and can avoid some of the\n  setup required for regular unpinned memory.\n\n  When the memory accesses are infrequent, zero-copy memory can be a good choice, for coherent\n  allocation. GPU can directly access the host memory over the CPU/GPU interconnect, without need\n  to copy the data.\n\n  Currently the allocation granularity is 4KB for the API.\n\n  Developers need to choose proper allocation flag with consideration of synchronization.\n\n  @param[out] ptr Pointer to the allocated host pinned memory\n  @param[in]  size Requested memory size in bytes\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n  @param[in]  flags Type of host memory allocation. See the description of flags in\n  hipSetDeviceFlags.\n\n  If no input for flags, it will be the default pinned memory allocation on the host.\n\n  @returns #hipSuccess, #hipErrorOutOfMemory\n\n\n  @see hipSetDeviceFlags, hiptHostFree"]
5654    pub fn hipHostMalloc(
5655        ptr: *mut *mut ::std::os::raw::c_void,
5656        size: usize,
5657        flags: ::std::os::raw::c_uint,
5658    ) -> hipError_t;
5659}
5660extern "C" {
5661    #[doc = "-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup MemoryM Managed Memory\n\n  @ingroup Memory\n @{\n  This section describes the managed memory management functions of HIP runtime API.\n\n  @note  The managed memory management APIs are implemented on Linux, under developement\n  on Windows.\n\n/\n/**\n @brief Allocates memory that will be automatically managed by HIP.\n\n This API is used for managed memory, allows data be shared and accessible to both CPU and\n GPU using a single pointer.\n\n The API returns the allocation pointer, managed by HMM, can be used further to execute kernels\n on device and fetch data between the host and device as needed.\n\n @note   It is recommend to do the capability check before call this API.\n\n @param [out] dev_ptr - pointer to allocated device memory\n @param [in]  size    - requested allocation size in bytes, it should be granularity of 4KB\n @param [in]  flags   - must be either hipMemAttachGlobal or hipMemAttachHost\n                        (defaults to hipMemAttachGlobal)\n\n @returns #hipSuccess, #hipErrorMemoryAllocation, #hipErrorNotSupported, #hipErrorInvalidValue\n"]
5662    pub fn hipMallocManaged(
5663        dev_ptr: *mut *mut ::std::os::raw::c_void,
5664        size: usize,
5665        flags: ::std::os::raw::c_uint,
5666    ) -> hipError_t;
5667}
5668extern "C" {
5669    #[doc = " @brief Prefetches memory to the specified destination device using HIP.\n\n @param [in] dev_ptr  pointer to be prefetched\n @param [in] count    size in bytes for prefetching\n @param [in] device   destination device to prefetch to\n @param [in] stream   stream to enqueue prefetch operation\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5670    pub fn hipMemPrefetchAsync(
5671        dev_ptr: *const ::std::os::raw::c_void,
5672        count: usize,
5673        device: ::std::os::raw::c_int,
5674        stream: hipStream_t,
5675    ) -> hipError_t;
5676}
5677extern "C" {
5678    #[doc = " @brief Advise about the usage of a given memory range to HIP.\n\n @param [in] dev_ptr  pointer to memory to set the advice for\n @param [in] count    size in bytes of the memory range, it should be CPU page size alligned.\n @param [in] advice   advice to be applied for the specified memory range\n @param [in] device   device to apply the advice for\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n This HIP API advises about the usage to be applied on unified memory allocation in the\n range starting from the pointer address devPtr, with the size of count bytes.\n The memory range must refer to managed memory allocated via the API hipMallocManaged, and the\n range will be handled with proper round down and round up respectively in the driver to\n be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0\n and afterwards.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5679    pub fn hipMemAdvise(
5680        dev_ptr: *const ::std::os::raw::c_void,
5681        count: usize,
5682        advice: hipMemoryAdvise,
5683        device: ::std::os::raw::c_int,
5684    ) -> hipError_t;
5685}
5686extern "C" {
5687    #[doc = " @brief Query an attribute of a given memory range in HIP.\n\n @param [in,out] data   a pointer to a memory location where the result of each\n                        attribute query will be written to\n @param [in] data_size  the size of data\n @param [in] attribute  the attribute to query\n @param [in] dev_ptr    start of the range to query\n @param [in] count      size of the range to query\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5688    pub fn hipMemRangeGetAttribute(
5689        data: *mut ::std::os::raw::c_void,
5690        data_size: usize,
5691        attribute: hipMemRangeAttribute,
5692        dev_ptr: *const ::std::os::raw::c_void,
5693        count: usize,
5694    ) -> hipError_t;
5695}
5696extern "C" {
5697    #[doc = " @brief Query attributes of a given memory range in HIP.\n\n @param [in,out] data     a two-dimensional array containing pointers to memory locations\n                          where the result of each attribute query will be written to\n @param [in] data_sizes   an array, containing the sizes of each result\n @param [in] attributes   the attribute to query\n @param [in] num_attributes  an array of attributes to query (numAttributes and the number\n                          of attributes in this array should match)\n @param [in] dev_ptr      start of the range to query\n @param [in] count        size of the range to query\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5698    pub fn hipMemRangeGetAttributes(
5699        data: *mut *mut ::std::os::raw::c_void,
5700        data_sizes: *mut usize,
5701        attributes: *mut hipMemRangeAttribute,
5702        num_attributes: usize,
5703        dev_ptr: *const ::std::os::raw::c_void,
5704        count: usize,
5705    ) -> hipError_t;
5706}
5707extern "C" {
5708    #[doc = " @brief Attach memory to a stream asynchronously in HIP.\n\n @param [in] stream     - stream in which to enqueue the attach operation\n @param [in] dev_ptr    - pointer to memory (must be a pointer to managed memory or\n                          to a valid host-accessible region of system-allocated memory)\n @param [in] length     - length of memory (defaults to zero)\n @param [in] flags      - must be one of hipMemAttachGlobal, hipMemAttachHost or\n                          hipMemAttachSingle (defaults to hipMemAttachSingle)\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is under development. Currently it is a no-operation (NOP)\n          function on AMD GPUs and returns #hipSuccess."]
5709    pub fn hipStreamAttachMemAsync(
5710        stream: hipStream_t,
5711        dev_ptr: *mut ::std::os::raw::c_void,
5712        length: usize,
5713        flags: ::std::os::raw::c_uint,
5714    ) -> hipError_t;
5715}
5716extern "C" {
5717    #[doc = " @brief Allocates memory with stream ordered semantics\n\n Inserts a memory allocation operation into @p stream.\n A pointer to the allocated memory is returned immediately in *dptr.\n The allocation must not be accessed until the allocation operation completes.\n The allocation comes from the memory pool associated with the stream's device.\n\n @note The default memory pool of a device contains device memory from that device.\n @note Basic stream ordering allows future work submitted into the same stream to use the\n  allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that\n  the allocation operation completes before work submitted in a separate stream runs.\n @note During stream capture, this function results in the creation of an allocation node.\n  In this case, the allocation is owned by the graph instead of the memory pool. The memory\n  pool's properties are used to set the node's creation parameters.\n\n @param [out] dev_ptr  Returned device pointer of memory allocation\n @param [in] size      Number of bytes to allocate\n @param [in] stream    The stream establishing the stream ordering contract and\n                       the memory pool to allocate from\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported, #hipErrorOutOfMemory\n\n @see hipMallocFromPoolAsync, hipFreeAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute,\n hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5718    pub fn hipMallocAsync(
5719        dev_ptr: *mut *mut ::std::os::raw::c_void,
5720        size: usize,
5721        stream: hipStream_t,
5722    ) -> hipError_t;
5723}
5724extern "C" {
5725    #[doc = " @brief Frees memory with stream ordered semantics\n\n Inserts a free operation into @p stream.\n The allocation must not be used after stream execution reaches the free.\n After this API returns, accessing the memory from any subsequent work launched on the GPU\n or querying its pointer attributes results in undefined behavior.\n\n @note During stream capture, this function results in the creation of a free node and\n must therefore be passed the address of a graph allocation.\n\n @param [in] dev_ptr Pointer to device memory to free\n @param [in] stream  The stream, where the destruciton will occur according to the execution order\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute,\n hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5726    pub fn hipFreeAsync(dev_ptr: *mut ::std::os::raw::c_void, stream: hipStream_t) -> hipError_t;
5727}
5728extern "C" {
5729    #[doc = " @brief Releases freed memory back to the OS\n\n Releases memory back to the OS until the pool contains fewer than @p min_bytes_to_keep\n reserved bytes, or there is no more memory that the allocator can safely release.\n The allocator cannot release OS allocations that back outstanding asynchronous allocations.\n The OS allocations may happen at different granularity from the user allocations.\n\n @note Allocations that have not been freed count as outstanding.\n @note Allocations that have been asynchronously freed but whose completion has\n not been observed on the host (eg. by a synchronize) can count as outstanding.\n\n @param[in] mem_pool          The memory pool to trim allocations\n @param[in] min_bytes_to_hold If the pool has less than min_bytes_to_hold reserved,\n then the TrimTo operation is a no-op.  Otherwise the memory pool will contain\n at least min_bytes_to_hold bytes reserved after the operation.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute,\n hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5730    pub fn hipMemPoolTrimTo(mem_pool: hipMemPool_t, min_bytes_to_hold: usize) -> hipError_t;
5731}
5732extern "C" {
5733    #[doc = " @brief Sets attributes of a memory pool\n\n Supported attributes are:\n - @p hipMemPoolAttrReleaseThreshold: (value type = cuuint64_t)\n                                  Amount of reserved memory in bytes to hold onto before trying\n                                  to release memory back to the OS. When more than the release\n                                  threshold bytes of memory are held by the memory pool, the\n                                  allocator will try to release memory back to the OS on the\n                                  next call to stream, event or context synchronize. (default 0)\n - @p hipMemPoolReuseFollowEventDependencies: (value type = int)\n                                  Allow @p hipMallocAsync to use memory asynchronously freed\n                                  in another stream as long as a stream ordering dependency\n                                  of the allocating stream on the free action exists.\n                                  HIP events and null stream interactions can create the required\n                                  stream ordered dependencies. (default enabled)\n - @p hipMemPoolReuseAllowOpportunistic: (value type = int)\n                                  Allow reuse of already completed frees when there is no dependency\n                                  between the free and allocation. (default enabled)\n - @p hipMemPoolReuseAllowInternalDependencies: (value type = int)\n                                  Allow @p hipMallocAsync to insert new stream dependencies\n                                  in order to establish the stream ordering required to reuse\n                                  a piece of memory released by @p hipFreeAsync (default enabled).\n\n @param [in] mem_pool The memory pool to modify\n @param [in] attr     The attribute to modify\n @param [in] value    Pointer to the value to assign\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute,\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5734    pub fn hipMemPoolSetAttribute(
5735        mem_pool: hipMemPool_t,
5736        attr: hipMemPoolAttr,
5737        value: *mut ::std::os::raw::c_void,
5738    ) -> hipError_t;
5739}
5740extern "C" {
5741    #[doc = " @brief Gets attributes of a memory pool\n\n Supported attributes are:\n - @p hipMemPoolAttrReleaseThreshold: (value type = cuuint64_t)\n                                  Amount of reserved memory in bytes to hold onto before trying\n                                  to release memory back to the OS. When more than the release\n                                  threshold bytes of memory are held by the memory pool, the\n                                  allocator will try to release memory back to the OS on the\n                                  next call to stream, event or context synchronize. (default 0)\n - @p hipMemPoolReuseFollowEventDependencies: (value type = int)\n                                  Allow @p hipMallocAsync to use memory asynchronously freed\n                                  in another stream as long as a stream ordering dependency\n                                  of the allocating stream on the free action exists.\n                                  HIP events and null stream interactions can create the required\n                                  stream ordered dependencies. (default enabled)\n - @p hipMemPoolReuseAllowOpportunistic: (value type = int)\n                                  Allow reuse of already completed frees when there is no dependency\n                                  between the free and allocation. (default enabled)\n - @p hipMemPoolReuseAllowInternalDependencies: (value type = int)\n                                  Allow @p hipMallocAsync to insert new stream dependencies\n                                  in order to establish the stream ordering required to reuse\n                                  a piece of memory released by @p hipFreeAsync (default enabled).\n\n @param [in] mem_pool The memory pool to get attributes of\n @param [in] attr     The attribute to get\n @param [in] value    Retrieved value\n\n @returns  #hipSuccess, #hipErrorInvalidValue\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync,\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5742    pub fn hipMemPoolGetAttribute(
5743        mem_pool: hipMemPool_t,
5744        attr: hipMemPoolAttr,
5745        value: *mut ::std::os::raw::c_void,
5746    ) -> hipError_t;
5747}
5748extern "C" {
5749    #[doc = " @brief Controls visibility of the specified pool between devices\n\n @param [in] mem_pool   Memory pool for acccess change\n @param [in] desc_list  Array of access descriptors. Each descriptor instructs the access to enable for a single gpu\n @param [in] count  Number of descriptors in the map array.\n\n @returns  #hipSuccess, #hipErrorInvalidValue\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute,\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5750    pub fn hipMemPoolSetAccess(
5751        mem_pool: hipMemPool_t,
5752        desc_list: *const hipMemAccessDesc,
5753        count: usize,
5754    ) -> hipError_t;
5755}
5756extern "C" {
5757    #[doc = " @brief Returns the accessibility of a pool from a device\n\n Returns the accessibility of the pool's memory from the specified location.\n\n @param [out] flags    Accessibility of the memory pool from the specified location/device\n @param [in] mem_pool   Memory pool being queried\n @param [in] location  Location/device for memory pool access\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute,\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5758    pub fn hipMemPoolGetAccess(
5759        flags: *mut hipMemAccessFlags,
5760        mem_pool: hipMemPool_t,
5761        location: *mut hipMemLocation,
5762    ) -> hipError_t;
5763}
5764extern "C" {
5765    #[doc = " @brief Creates a memory pool\n\n Creates a HIP memory pool and returns the handle in @p mem_pool. The @p pool_props determines\n the properties of the pool such as the backing device and IPC capabilities.\n\n By default, the memory pool will be accessible from the device it is allocated on.\n\n @param [out] mem_pool    Contains createed memory pool\n @param [in] pool_props   Memory pool properties\n\n @note Specifying hipMemHandleTypeNone creates a memory pool that will not support IPC.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolDestroy,\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5766    pub fn hipMemPoolCreate(
5767        mem_pool: *mut hipMemPool_t,
5768        pool_props: *const hipMemPoolProps,
5769    ) -> hipError_t;
5770}
5771extern "C" {
5772    #[doc = " @brief Destroys the specified memory pool\n\n If any pointers obtained from this pool haven't been freed or\n the pool has free operations that haven't completed\n when @p hipMemPoolDestroy is invoked, the function will return immediately and the\n resources associated with the pool will be released automatically\n once there are no more outstanding allocations.\n\n Destroying the current mempool of a device sets the default mempool of\n that device as the current mempool for that device.\n\n @param [in] mem_pool Memory pool for destruction\n\n @note A device's default memory pool cannot be destroyed.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolCreate\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5773    pub fn hipMemPoolDestroy(mem_pool: hipMemPool_t) -> hipError_t;
5774}
5775extern "C" {
5776    #[doc = " @brief Allocates memory from a specified pool with stream ordered semantics.\n\n Inserts an allocation operation into @p stream.\n A pointer to the allocated memory is returned immediately in @p dev_ptr.\n The allocation must not be accessed until the allocation operation completes.\n The allocation comes from the specified memory pool.\n\n @note The specified memory pool may be from a device different than that of the specified @p stream.\n\n Basic stream ordering allows future work submitted into the same stream to use the allocation.\n Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation\n operation completes before work submitted in a separate stream runs.\n\n @note During stream capture, this function results in the creation of an allocation node. In this case,\n the allocation is owned by the graph instead of the memory pool. The memory pool's properties\n are used to set the node's creation parameters.\n\n @param [out] dev_ptr Returned device pointer\n @param [in] size     Number of bytes to allocate\n @param [in] mem_pool The pool to allocate from\n @param [in] stream   The stream establishing the stream ordering semantic\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported, #hipErrorOutOfMemory\n\n @see hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolCreate\n hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess,\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5777    pub fn hipMallocFromPoolAsync(
5778        dev_ptr: *mut *mut ::std::os::raw::c_void,
5779        size: usize,
5780        mem_pool: hipMemPool_t,
5781        stream: hipStream_t,
5782    ) -> hipError_t;
5783}
5784extern "C" {
5785    #[doc = " @brief Exports a memory pool to the requested handle type.\n\n Given an IPC capable mempool, create an OS handle to share the pool with another process.\n A recipient process can convert the shareable handle into a mempool with @p hipMemPoolImportFromShareableHandle.\n Individual pointers can then be shared with the @p hipMemPoolExportPointer and @p hipMemPoolImportPointer APIs.\n The implementation of what the shareable handle is and how it can be transferred is defined by the requested\n handle type.\n\n @note To create an IPC capable mempool, create a mempool with a @p hipMemAllocationHandleType other\n than @p hipMemHandleTypeNone.\n\n @param [out] shared_handle Pointer to the location in which to store the requested handle\n @param [in] mem_pool       Pool to export\n @param [in] handle_type    The type of handle to create\n @param [in] flags          Must be 0\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory\n\n @see hipMemPoolImportFromShareableHandle\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5786    pub fn hipMemPoolExportToShareableHandle(
5787        shared_handle: *mut ::std::os::raw::c_void,
5788        mem_pool: hipMemPool_t,
5789        handle_type: hipMemAllocationHandleType,
5790        flags: ::std::os::raw::c_uint,
5791    ) -> hipError_t;
5792}
5793extern "C" {
5794    #[doc = " @brief Imports a memory pool from a shared handle.\n\n Specific allocations can be imported from the imported pool with @p hipMemPoolImportPointer.\n\n @note Imported memory pools do not support creating new allocations.\n As such imported memory pools may not be used in @p hipDeviceSetMemPool\n or @p hipMallocFromPoolAsync calls.\n\n @param [out] mem_pool     Returned memory pool\n @param [in] shared_handle OS handle of the pool to open\n @param [in] handle_type   The type of handle being imported\n @param [in] flags         Must be 0\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory\n\n @see hipMemPoolExportToShareableHandle\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5795    pub fn hipMemPoolImportFromShareableHandle(
5796        mem_pool: *mut hipMemPool_t,
5797        shared_handle: *mut ::std::os::raw::c_void,
5798        handle_type: hipMemAllocationHandleType,
5799        flags: ::std::os::raw::c_uint,
5800    ) -> hipError_t;
5801}
5802extern "C" {
5803    #[doc = " @brief Export data to share a memory pool allocation between processes.\n\n Constructs @p export_data for sharing a specific allocation from an already shared memory pool.\n The recipient process can import the allocation with the @p hipMemPoolImportPointer api.\n The data is not a handle and may be shared through any IPC mechanism.\n\n @param[out] export_data  Returned export data\n @param[in] dev_ptr       Pointer to memory being exported\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory\n\n @see hipMemPoolImportPointer\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5804    pub fn hipMemPoolExportPointer(
5805        export_data: *mut hipMemPoolPtrExportData,
5806        dev_ptr: *mut ::std::os::raw::c_void,
5807    ) -> hipError_t;
5808}
5809extern "C" {
5810    #[doc = " @brief Import a memory pool allocation from another process.\n\n Returns in @p dev_ptr a pointer to the imported memory.\n The imported memory must not be accessed before the allocation operation completes\n in the exporting process. The imported memory must be freed from all importing processes before\n being freed in the exporting process. The pointer may be freed with @p hipFree\n or @p hipFreeAsync. If @p hipFreeAsync is used, the free must be completed\n on the importing process before the free operation on the exporting process.\n\n @note The @p hipFreeAsync api may be used in the exporting process before\n the @p hipFreeAsync operation completes in its stream as long as the\n @p hipFreeAsync in the exporting process specifies a stream with\n a stream dependency on the importing process's @p hipFreeAsync.\n\n @param [out] dev_ptr     Pointer to imported memory\n @param [in] mem_pool     Memory pool from which to import a pointer\n @param [in] export_data  Data specifying the memory to import\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized, #hipErrorOutOfMemory\n\n @see hipMemPoolExportPointer\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
5811    pub fn hipMemPoolImportPointer(
5812        dev_ptr: *mut *mut ::std::os::raw::c_void,
5813        mem_pool: hipMemPool_t,
5814        export_data: *mut hipMemPoolPtrExportData,
5815    ) -> hipError_t;
5816}
5817extern "C" {
5818    #[doc = "  @brief Allocate device accessible page locked host memory\n\n  @param[out] ptr Pointer to the allocated host pinned memory\n  @param[in]  size Requested memory size in bytes\n  @param[in]  flags Type of host memory allocation see below\n\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n\n  Flags:\n  - #hipHostAllocDefault   Default pinned memory allocation on the host.\n  - #hipHostAllocPortable  Memory is considered allocated by all contexts.\n  - #hipHostAllocMapped    Map the allocation into the address space for the current device.\n  - #hipHostAllocWriteCombined  Allocates the memory as write-combined.\n\n  @return #hipSuccess, #hipErrorOutOfMemory, #hipErrorInvalidValue"]
5819    pub fn hipHostAlloc(
5820        ptr: *mut *mut ::std::os::raw::c_void,
5821        size: usize,
5822        flags: ::std::os::raw::c_uint,
5823    ) -> hipError_t;
5824}
5825extern "C" {
5826    #[doc = "  @brief Get Device pointer from Host Pointer allocated through hipHostMalloc\n\n  @param[out] devPtr Device Pointer mapped to passed host pointer\n  @param[in]  hstPtr Host Pointer allocated through hipHostMalloc\n  @param[in]  flags Flags to be passed for extension\n\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory\n\n  @see hipSetDeviceFlags, hipHostMalloc"]
5827    pub fn hipHostGetDevicePointer(
5828        devPtr: *mut *mut ::std::os::raw::c_void,
5829        hstPtr: *mut ::std::os::raw::c_void,
5830        flags: ::std::os::raw::c_uint,
5831    ) -> hipError_t;
5832}
5833extern "C" {
5834    #[doc = "  @brief Return flags associated with host pointer\n\n  @param[out] flagsPtr Memory location to store flags\n  @param[in]  hostPtr Host Pointer allocated through hipHostMalloc\n  @returns #hipSuccess, #hipErrorInvalidValue\n\n  @see hipHostMalloc"]
5835    pub fn hipHostGetFlags(
5836        flagsPtr: *mut ::std::os::raw::c_uint,
5837        hostPtr: *mut ::std::os::raw::c_void,
5838    ) -> hipError_t;
5839}
5840extern "C" {
5841    #[doc = "  @brief Register host memory so it can be accessed from the current device.\n\n  @param[out] hostPtr Pointer to host memory to be registered.\n  @param[in] sizeBytes Size of the host memory\n  @param[in] flags  See below.\n\n  Flags:\n  - #hipHostRegisterDefault   Memory is Mapped and Portable\n  - #hipHostRegisterPortable  Memory is considered registered by all contexts.  HIP only supports\n one context so this is always assumed true.\n  - #hipHostRegisterMapped    Map the allocation into the address space for the current device.\n The device pointer can be obtained with #hipHostGetDevicePointer.\n\n\n  After registering the memory, use #hipHostGetDevicePointer to obtain the mapped device pointer.\n  On many systems, the mapped device pointer will have a different value than the mapped host\n pointer.  Applications must use the device pointer in device code, and the host pointer in host\n code.\n\n  On some systems, registered memory is pinned.  On some systems, registered memory may not be\n actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.\n\n  Developers are strongly encouraged to register memory blocks which are aligned to the host\n cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).\n\n  If registering non-aligned pointers, the application must take care when register pointers from\n the same cache line on different devices.  HIP's coarse-grained synchronization model does not\n guarantee correct results if different devices write to different parts of the same cache block -\n typically one of the writes will \"win\" and overwrite data from the other registered memory\n region.\n\n  @returns #hipSuccess, #hipErrorOutOfMemory\n\n  @see hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer"]
5842    pub fn hipHostRegister(
5843        hostPtr: *mut ::std::os::raw::c_void,
5844        sizeBytes: usize,
5845        flags: ::std::os::raw::c_uint,
5846    ) -> hipError_t;
5847}
5848extern "C" {
5849    #[doc = "  @brief Un-register host pointer\n\n  @param[in] hostPtr Host pointer previously registered with #hipHostRegister\n  @returns Error code\n\n  @see hipHostRegister"]
5850    pub fn hipHostUnregister(hostPtr: *mut ::std::os::raw::c_void) -> hipError_t;
5851}
5852extern "C" {
5853    #[doc = "  Allocates at least width (in bytes) * height bytes of linear memory\n  Padding may occur to ensure alighnment requirements are met for the given row\n  The change in width size due to padding will be returned in *pitch.\n  Currently the alignment is set to 128 bytes\n\n  @param[out] ptr Pointer to the allocated device memory\n  @param[out] pitch Pitch for allocation (in bytes)\n  @param[in]  width Requested pitched allocation width (in bytes)\n  @param[in]  height Requested pitched allocation height\n\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n\n  @returns Error code\n\n  @see hipMalloc, hipFree, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D,\n hipMalloc3DArray, hipHostMalloc"]
5854    pub fn hipMallocPitch(
5855        ptr: *mut *mut ::std::os::raw::c_void,
5856        pitch: *mut usize,
5857        width: usize,
5858        height: usize,
5859    ) -> hipError_t;
5860}
5861extern "C" {
5862    #[doc = "  Allocates at least width (in bytes) * height bytes of linear memory\n  Padding may occur to ensure alighnment requirements are met for the given row\n  The change in width size due to padding will be returned in *pitch.\n  Currently the alignment is set to 128 bytes\n\n  @param[out] dptr  Pointer to the allocated device memory\n  @param[out] pitch  Pitch for allocation (in bytes)\n  @param[in]  widthInBytes  Requested pitched allocation width (in bytes)\n  @param[in]  height  Requested pitched allocation height\n  @param[in]  elementSizeBytes  The size of element bytes, should be 4, 8 or 16\n\n  If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.\n  The intended usage of pitch is as a separate parameter of the allocation, used to compute addresses within the 2D array.\n  Given the row and column of an array element of type T, the address is computed as:\n  T* pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;\n\n  @returns Error code\n\n  @see hipMalloc, hipFree, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D,\n hipMalloc3DArray, hipHostMalloc"]
5863    pub fn hipMemAllocPitch(
5864        dptr: *mut hipDeviceptr_t,
5865        pitch: *mut usize,
5866        widthInBytes: usize,
5867        height: usize,
5868        elementSizeBytes: ::std::os::raw::c_uint,
5869    ) -> hipError_t;
5870}
5871extern "C" {
5872    #[doc = "  @brief Free memory allocated by the hcc hip memory allocation API.\n  This API performs an implicit hipDeviceSynchronize() call.\n  If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.\n\n  @param[in] ptr Pointer to memory to be freed\n  @returns #hipSuccess\n  @returns #hipErrorInvalidDevicePointer (if pointer is invalid, including host pointers allocated\n with hipHostMalloc)\n\n  @see hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D,\n hipMalloc3DArray, hipHostMalloc"]
5873    pub fn hipFree(ptr: *mut ::std::os::raw::c_void) -> hipError_t;
5874}
5875extern "C" {
5876    #[doc = "  @brief Frees page-locked memory\n  This API performs an implicit hipDeviceSynchronize() call.\n  If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.\n\n  @param[in] ptr Pointer to memory to be freed\n  @returns #hipSuccess,\n          #hipErrorInvalidValue (if pointer is invalid, including device pointers allocated\n  with hipMalloc)\n"]
5877    pub fn hipFreeHost(ptr: *mut ::std::os::raw::c_void) -> hipError_t;
5878}
5879extern "C" {
5880    #[doc = "  @brief Free memory allocated by the hcc hip host memory allocation API\n  This API performs an implicit hipDeviceSynchronize() call.\n  If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.\n\n  @ingroup MemoryD\n\n  @param[in] ptr Pointer to memory to be freed\n  @returns #hipSuccess,\n          #hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with\n hipMalloc)\n\n  @see hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D,\n hipMalloc3DArray, hipHostMalloc\n"]
5881    pub fn hipHostFree(ptr: *mut ::std::os::raw::c_void) -> hipError_t;
5882}
5883extern "C" {
5884    #[doc = "  @brief Copy data from src to dst.\n\n  It supports memory from host to device,\n  device to host, device to device and host to host\n  The src and dst must not overlap.\n\n  For hipMemcpy, the copy is always performed by the current device (set by hipSetDevice).\n  For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the\n  device where the src data is physically located. For optimal peer-to-peer copies, the copy device\n  must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy\n  agent as the current device and src/dest as the peerDevice argument.  if this is not done, the\n  hipMemcpy will still work, but will perform the copy using a staging buffer on the host.\n  Calling hipMemcpy with dst and src pointers that do not match the hipMemcpyKind results in\n  undefined behavior.\n\n  @param[out]  dst Data being copy to\n  @param[in]  src Data being copy from\n  @param[in]  sizeBytes Data size in bytes\n  @param[in]  kind Kind of transfer\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5885    pub fn hipMemcpy(
5886        dst: *mut ::std::os::raw::c_void,
5887        src: *const ::std::os::raw::c_void,
5888        sizeBytes: usize,
5889        kind: hipMemcpyKind,
5890    ) -> hipError_t;
5891}
5892extern "C" {
5893    #[doc = "  @brief Memory copy on the stream.\n  It allows single or multiple devices to do memory copy on single or multiple streams.\n\n  @param[out]  dst Data being copy to\n  @param[in]  src Data being copy from\n  @param[in]  sizeBytes Data size in bytes\n  @param[in]  kind Kind of transfer\n  @param[in]  stream Valid stream\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown, #hipErrorContextIsDestroyed\n\n  @see hipMemcpy, hipStreamCreate, hipStreamSynchronize, hipStreamDestroy, hipSetDevice, hipLaunchKernelGGL\n"]
5894    pub fn hipMemcpyWithStream(
5895        dst: *mut ::std::os::raw::c_void,
5896        src: *const ::std::os::raw::c_void,
5897        sizeBytes: usize,
5898        kind: hipMemcpyKind,
5899        stream: hipStream_t,
5900    ) -> hipError_t;
5901}
5902extern "C" {
5903    #[doc = "  @brief Copy data from Host to Device\n\n  @param[out]  dst Data being copy to\n  @param[in]   src Data being copy from\n  @param[in]   sizeBytes Data size in bytes\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5904    pub fn hipMemcpyHtoD(
5905        dst: hipDeviceptr_t,
5906        src: *mut ::std::os::raw::c_void,
5907        sizeBytes: usize,
5908    ) -> hipError_t;
5909}
5910extern "C" {
5911    #[doc = "  @brief Copy data from Device to Host\n\n  @param[out]  dst Data being copy to\n  @param[in]   src Data being copy from\n  @param[in]   sizeBytes Data size in bytes\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5912    pub fn hipMemcpyDtoH(
5913        dst: *mut ::std::os::raw::c_void,
5914        src: hipDeviceptr_t,
5915        sizeBytes: usize,
5916    ) -> hipError_t;
5917}
5918extern "C" {
5919    #[doc = "  @brief Copy data from Device to Device\n\n  @param[out]  dst Data being copy to\n  @param[in]   src Data being copy from\n  @param[in]   sizeBytes Data size in bytes\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5920    pub fn hipMemcpyDtoD(dst: hipDeviceptr_t, src: hipDeviceptr_t, sizeBytes: usize) -> hipError_t;
5921}
5922extern "C" {
5923    #[doc = "  @brief Copies from one 1D array to device memory.\n\n  @param[out]  dstDevice Destination device pointer\n  @param[in]   srcArray Source array\n  @param[in]   srcOffset Offset in bytes of source array\n  @param[in]   ByteCount Size of memory copy in bytes\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5924    pub fn hipMemcpyAtoD(
5925        dstDevice: hipDeviceptr_t,
5926        srcArray: hipArray_t,
5927        srcOffset: usize,
5928        ByteCount: usize,
5929    ) -> hipError_t;
5930}
5931extern "C" {
5932    #[doc = "  @brief Copies from device memory to a 1D array.\n\n  @param[out]  dstArray Destination array\n  @param[in]   dstOffset Offset in bytes of destination array\n  @param[in]   srcDevice Source device pointer\n  @param[in]   ByteCount Size of memory copy in bytes\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5933    pub fn hipMemcpyDtoA(
5934        dstArray: hipArray_t,
5935        dstOffset: usize,
5936        srcDevice: hipDeviceptr_t,
5937        ByteCount: usize,
5938    ) -> hipError_t;
5939}
5940extern "C" {
5941    #[doc = "  @brief Copies from one 1D array to another.\n\n  @param[out]  dstArray Destination array\n  @param[in]   dstOffset Offset in bytes of destination array\n  @param[in]   srcArray Source array\n  @param[in]   srcOffset Offset in bytes of source array\n  @param[in]   ByteCount Size of memory copy in bytes\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5942    pub fn hipMemcpyAtoA(
5943        dstArray: hipArray_t,
5944        dstOffset: usize,
5945        srcArray: hipArray_t,
5946        srcOffset: usize,
5947        ByteCount: usize,
5948    ) -> hipError_t;
5949}
5950extern "C" {
5951    #[doc = "  @brief Copy data from Host to Device asynchronously\n\n  @param[out]  dst  Data being copy to\n  @param[in]   src  Data being copy from\n  @param[in]   sizeBytes  Data size in bytes\n  @param[in]   stream  Stream identifier\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5952    pub fn hipMemcpyHtoDAsync(
5953        dst: hipDeviceptr_t,
5954        src: *mut ::std::os::raw::c_void,
5955        sizeBytes: usize,
5956        stream: hipStream_t,
5957    ) -> hipError_t;
5958}
5959extern "C" {
5960    #[doc = "  @brief Copy data from Device to Host asynchronously\n\n  @param[out]  dst Data being copy to\n  @param[in]   src Data being copy from\n  @param[in]   sizeBytes Data size in bytes\n  @param[in]   stream  Stream identifier\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5961    pub fn hipMemcpyDtoHAsync(
5962        dst: *mut ::std::os::raw::c_void,
5963        src: hipDeviceptr_t,
5964        sizeBytes: usize,
5965        stream: hipStream_t,
5966    ) -> hipError_t;
5967}
5968extern "C" {
5969    #[doc = "  @brief Copy data from Device to Device asynchronously\n\n  @param[out]  dst  Data being copy to\n  @param[in]   src  Data being copy from\n  @param[in]   sizeBytes  Data size in bytes\n  @param[in]   stream  Stream identifier\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5970    pub fn hipMemcpyDtoDAsync(
5971        dst: hipDeviceptr_t,
5972        src: hipDeviceptr_t,
5973        sizeBytes: usize,
5974        stream: hipStream_t,
5975    ) -> hipError_t;
5976}
5977extern "C" {
5978    #[doc = " @brief Copies from one 1D array to host memory.\n\n  @param[out]  dstHost Destination pointer\n  @param[in]   srcArray Source array\n  @param[in]   srcOffset Offset in bytes of source array\n  @param[in]   ByteCount Size of memory copy in bytes\n  @param[in]   stream Stream identifier\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5979    pub fn hipMemcpyAtoHAsync(
5980        dstHost: *mut ::std::os::raw::c_void,
5981        srcArray: hipArray_t,
5982        srcOffset: usize,
5983        ByteCount: usize,
5984        stream: hipStream_t,
5985    ) -> hipError_t;
5986}
5987extern "C" {
5988    #[doc = " @brief Copies from host memory to a 1D array.\n\n  @param[out]  dstArray Destination array\n  @param[in]   dstOffset Offset in bytes of destination array\n  @param[in]   srcHost Source host pointer\n  @param[in]   ByteCount Size of memory copy in bytes\n  @param[in]   stream Stream identifier\n\n  @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,\n hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA,\n hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD,\n hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync,\n hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo,\n hipMemHostAlloc, hipMemHostGetDevicePointer"]
5989    pub fn hipMemcpyHtoAAsync(
5990        dstArray: hipArray_t,
5991        dstOffset: usize,
5992        srcHost: *const ::std::os::raw::c_void,
5993        ByteCount: usize,
5994        stream: hipStream_t,
5995    ) -> hipError_t;
5996}
5997extern "C" {
5998    #[doc = "  @brief Returns a global pointer from a module.\n  @ingroup Module\n\n  Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod.\n  If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional.\n  If one of them is NULL, it is ignored and hipSuccess is returned.\n\n  @param[out]  dptr  Returns global device pointer\n  @param[out]  bytes Returns global size in bytes\n  @param[in]   hmod  Module to retrieve global from\n  @param[in]   name  Name of global to retrieve\n\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotFound, #hipErrorInvalidContext\n"]
5999    pub fn hipModuleGetGlobal(
6000        dptr: *mut hipDeviceptr_t,
6001        bytes: *mut usize,
6002        hmod: hipModule_t,
6003        name: *const ::std::os::raw::c_char,
6004    ) -> hipError_t;
6005}
6006extern "C" {
6007    #[doc = "  @brief Gets device pointer associated with symbol on the device.\n\n  @param[out]  devPtr  pointer to the device associated the symbole\n  @param[in]   symbol  pointer to the symbole of the device\n\n  @returns #hipSuccess, #hipErrorInvalidValue\n"]
6008    pub fn hipGetSymbolAddress(
6009        devPtr: *mut *mut ::std::os::raw::c_void,
6010        symbol: *const ::std::os::raw::c_void,
6011    ) -> hipError_t;
6012}
6013extern "C" {
6014    #[doc = "  @brief Gets the size of the given symbol on the device.\n\n  @param[in]   symbol  pointer to the device symbole\n  @param[out]  size  pointer to the size\n\n  @returns #hipSuccess, #hipErrorInvalidValue\n"]
6015    pub fn hipGetSymbolSize(size: *mut usize, symbol: *const ::std::os::raw::c_void) -> hipError_t;
6016}
6017extern "C" {
6018    #[doc = " @brief Gets the pointer of requested HIP driver function.\n\n @param[in] symbol  The Symbol name of the driver function to request.\n @param[out] pfn  Output pointer to the requested driver function.\n @param[in] hipVersion  The HIP version for the requested driver function symbol.\n HIP version is defined as 100*version_major + version_minor. For example, in HIP 6.1, the\n hipversion is 601, for the symbol function \"hipGetDeviceProperties\", the specified hipVersion 601\n is greater or equal to the version 600, the symbol function will be handle properly as backend\n compatible function.\n\n @param[in] flags  Currently only default flag is suppported.\n @param[out] symbolStatus  Optional enumeration for returned status of searching for symbol driver\n function based on the input hipVersion.\n\n Returns hipSuccess if the returned pfn is addressed to the pointer of found driver function.\n\n @returns #hipSuccess, #hipErrorInvalidValue."]
6019    pub fn hipGetProcAddress(
6020        symbol: *const ::std::os::raw::c_char,
6021        pfn: *mut *mut ::std::os::raw::c_void,
6022        hipVersion: ::std::os::raw::c_int,
6023        flags: u64,
6024        symbolStatus: *mut hipDriverProcAddressQueryResult,
6025    ) -> hipError_t;
6026}
6027extern "C" {
6028    #[doc = "  @brief Copies data to the given symbol on the device.\n Symbol HIP APIs allow a kernel to define a device-side data symbol which can be accessed on\n the host side. The symbol can be in __constant or device space.\n Note that the symbol name needs to be encased in the HIP_SYMBOL macro.\n This also applies to hipMemcpyFromSymbol, hipGetSymbolAddress, and hipGetSymbolSize.\n For detailed usage, see the\n <a href=\"https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_porting_guide.html#memcpytosymbol\">memcpyToSymbol example</a>\n in the HIP Porting Guide.\n\n\n  @param[out]  symbol  pointer to the device symbole\n  @param[in]   src  pointer to the source address\n  @param[in]   sizeBytes  size in bytes to copy\n  @param[in]   offset  offset in bytes from start of symbole\n  @param[in]   kind  type of memory transfer\n\n  @returns #hipSuccess, #hipErrorInvalidValue\n"]
6029    pub fn hipMemcpyToSymbol(
6030        symbol: *const ::std::os::raw::c_void,
6031        src: *const ::std::os::raw::c_void,
6032        sizeBytes: usize,
6033        offset: usize,
6034        kind: hipMemcpyKind,
6035    ) -> hipError_t;
6036}
6037extern "C" {
6038    #[doc = "  @brief Copies data to the given symbol on the device asynchronously.\n\n  @param[out]  symbol  pointer to the device symbole\n  @param[in]   src  pointer to the source address\n  @param[in]   sizeBytes  size in bytes to copy\n  @param[in]   offset  offset in bytes from start of symbole\n  @param[in]   kind  type of memory transfer\n  @param[in]   stream  stream identifier\n\n  @returns #hipSuccess, #hipErrorInvalidValue\n"]
6039    pub fn hipMemcpyToSymbolAsync(
6040        symbol: *const ::std::os::raw::c_void,
6041        src: *const ::std::os::raw::c_void,
6042        sizeBytes: usize,
6043        offset: usize,
6044        kind: hipMemcpyKind,
6045        stream: hipStream_t,
6046    ) -> hipError_t;
6047}
6048extern "C" {
6049    #[doc = "  @brief Copies data from the given symbol on the device.\n\n  @param[out]  dst  Returns pointer to destinition memory address\n  @param[in]   symbol  Pointer to the symbole address on the device\n  @param[in]   sizeBytes  Size in bytes to copy\n  @param[in]   offset  Offset in bytes from the start of symbole\n  @param[in]   kind  Type of memory transfer\n\n  @returns #hipSuccess, #hipErrorInvalidValue\n"]
6050    pub fn hipMemcpyFromSymbol(
6051        dst: *mut ::std::os::raw::c_void,
6052        symbol: *const ::std::os::raw::c_void,
6053        sizeBytes: usize,
6054        offset: usize,
6055        kind: hipMemcpyKind,
6056    ) -> hipError_t;
6057}
6058extern "C" {
6059    #[doc = "  @brief Copies data from the given symbol on the device asynchronously.\n\n  @param[out]  dst  Returns pointer to destinition memory address\n  @param[in]   symbol  pointer to the symbole address on the device\n  @param[in]   sizeBytes  size in bytes to copy\n  @param[in]   offset  offset in bytes from the start of symbole\n  @param[in]   kind  type of memory transfer\n  @param[in]   stream  stream identifier\n\n  @returns #hipSuccess, #hipErrorInvalidValue\n"]
6060    pub fn hipMemcpyFromSymbolAsync(
6061        dst: *mut ::std::os::raw::c_void,
6062        symbol: *const ::std::os::raw::c_void,
6063        sizeBytes: usize,
6064        offset: usize,
6065        kind: hipMemcpyKind,
6066        stream: hipStream_t,
6067    ) -> hipError_t;
6068}
6069extern "C" {
6070    #[doc = "  @brief Copy data from src to dst asynchronously.\n\n  @warning If host or dest are not pinned, the memory copy will be performed synchronously.  For\n best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.\n\n  @warning on HCC hipMemcpyAsync does not support overlapped H2D and D2H copies.\n  For hipMemcpy, the copy is always performed by the device associated with the specified stream.\n\n  For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is a\n attached to the device where the src data is physically located. For optimal peer-to-peer copies,\n the copy device must be able to access the src and dst pointers (by calling\n hipDeviceEnablePeerAccess with copy agent as the current device and src/dest as the peerDevice\n argument.  if this is not done, the hipMemcpy will still work, but will perform the copy using a\n staging buffer on the host.\n\n  @param[out] dst Data being copy to\n  @param[in]  src Data being copy from\n  @param[in]  sizeBytes Data size in bytes\n  @param[in]  kind  Type of memory transfer\n  @param[in]  stream  Stream identifier\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown\n\n  @see hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray,\n hipMemcpy2DFromArray, hipMemcpyArrayToArray, hipMemcpy2DArrayToArray, hipMemcpyToSymbol,\n hipMemcpyFromSymbol, hipMemcpy2DAsync, hipMemcpyToArrayAsync, hipMemcpy2DToArrayAsync,\n hipMemcpyFromArrayAsync, hipMemcpy2DFromArrayAsync, hipMemcpyToSymbolAsync,\n hipMemcpyFromSymbolAsync"]
6071    pub fn hipMemcpyAsync(
6072        dst: *mut ::std::os::raw::c_void,
6073        src: *const ::std::os::raw::c_void,
6074        sizeBytes: usize,
6075        kind: hipMemcpyKind,
6076        stream: hipStream_t,
6077    ) -> hipError_t;
6078}
6079extern "C" {
6080    #[doc = "  @brief Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant\n byte value value.\n\n  @param[out] dst  Data being filled\n  @param[in]  value  Value to be set\n  @param[in]  sizeBytes  Data size in bytes\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized"]
6081    pub fn hipMemset(
6082        dst: *mut ::std::os::raw::c_void,
6083        value: ::std::os::raw::c_int,
6084        sizeBytes: usize,
6085    ) -> hipError_t;
6086}
6087extern "C" {
6088    #[doc = "  @brief Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant\n byte value value.\n\n  @param[out] dest  Data ptr to be filled\n  @param[in]  value  Value to be set\n  @param[in]  count  Number of values to be set\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized"]
6089    pub fn hipMemsetD8(
6090        dest: hipDeviceptr_t,
6091        value: ::std::os::raw::c_uchar,
6092        count: usize,
6093    ) -> hipError_t;
6094}
6095extern "C" {
6096    #[doc = "  @brief Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant\n byte value value.\n\n hipMemsetD8Async() is asynchronous with respect to the host, so the call may return before the\n memset is complete. The operation can optionally be associated to a stream by passing a non-zero\n stream argument. If stream is non-zero, the operation may overlap with operations in other\n streams.\n\n  @param[out] dest  Data ptr to be filled\n  @param[in]  value  Constant value to be set\n  @param[in]  count  Number of values to be set\n  @param[in]  stream  Stream identifier\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized"]
6097    pub fn hipMemsetD8Async(
6098        dest: hipDeviceptr_t,
6099        value: ::std::os::raw::c_uchar,
6100        count: usize,
6101        stream: hipStream_t,
6102    ) -> hipError_t;
6103}
6104extern "C" {
6105    #[doc = "  @brief Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant\n short value value.\n\n  @param[out] dest  Data ptr to be filled\n  @param[in]  value  Constant value to be set\n  @param[in]  count  Number of values to be set\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized"]
6106    pub fn hipMemsetD16(
6107        dest: hipDeviceptr_t,
6108        value: ::std::os::raw::c_ushort,
6109        count: usize,
6110    ) -> hipError_t;
6111}
6112extern "C" {
6113    #[doc = "  @brief Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant\n short value value.\n\n hipMemsetD16Async() is asynchronous with respect to the host, so the call may return before the\n memset is complete. The operation can optionally be associated to a stream by passing a non-zero\n stream argument. If stream is non-zero, the operation may overlap with operations in other\n streams.\n\n  @param[out] dest  Data ptr to be filled\n  @param[in]  value  Constant value to be set\n  @param[in]  count  Number of values to be set\n  @param[in]  stream  Stream identifier\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized"]
6114    pub fn hipMemsetD16Async(
6115        dest: hipDeviceptr_t,
6116        value: ::std::os::raw::c_ushort,
6117        count: usize,
6118        stream: hipStream_t,
6119    ) -> hipError_t;
6120}
6121extern "C" {
6122    #[doc = "  @brief Fills the memory area pointed to by dest with the constant integer\n value for specified number of times.\n\n  @param[out] dest  Data being filled\n  @param[in]  value  Constant value to be set\n  @param[in]  count  Number of values to be set\n  @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized"]
6123    pub fn hipMemsetD32(
6124        dest: hipDeviceptr_t,
6125        value: ::std::os::raw::c_int,
6126        count: usize,
6127    ) -> hipError_t;
6128}
6129extern "C" {
6130    #[doc = "  @brief Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant\n byte value value.\n\n hipMemsetAsync() is asynchronous with respect to the host, so the call may return before the\n memset is complete. The operation can optionally be associated to a stream by passing a non-zero\n stream argument. If stream is non-zero, the operation may overlap with operations in other\n streams.\n\n  @param[out] dst Pointer to device memory\n  @param[in]  value  Value to set for each byte of specified memory\n  @param[in]  sizeBytes  Size in bytes to set\n  @param[in]  stream  Stream identifier\n  @return #hipSuccess, #hipErrorInvalidValue"]
6131    pub fn hipMemsetAsync(
6132        dst: *mut ::std::os::raw::c_void,
6133        value: ::std::os::raw::c_int,
6134        sizeBytes: usize,
6135        stream: hipStream_t,
6136    ) -> hipError_t;
6137}
6138extern "C" {
6139    #[doc = "  @brief Fills the memory area pointed to by dev with the constant integer\n value for specified number of times.\n\n  hipMemsetD32Async() is asynchronous with respect to the host, so the call may return before the\n memset is complete. The operation can optionally be associated to a stream by passing a non-zero\n stream argument. If stream is non-zero, the operation may overlap with operations in other\n streams.\n\n  @param[out] dst Pointer to device memory\n  @param[in]  value  Value to set for each byte of specified memory\n  @param[in]  count  Number of values to be set\n  @param[in]  stream  Stream identifier\n  @return #hipSuccess, #hipErrorInvalidValue"]
6140    pub fn hipMemsetD32Async(
6141        dst: hipDeviceptr_t,
6142        value: ::std::os::raw::c_int,
6143        count: usize,
6144        stream: hipStream_t,
6145    ) -> hipError_t;
6146}
6147extern "C" {
6148    #[doc = "  @brief Fills the memory area pointed to by dst with the constant value.\n\n  @param[out] dst Pointer to device memory\n  @param[in]  pitch  Data size in bytes\n  @param[in]  value  Constant value to be set\n  @param[in]  width\n  @param[in]  height\n  @returns #hipSuccess, #hipErrorInvalidValue"]
6149    pub fn hipMemset2D(
6150        dst: *mut ::std::os::raw::c_void,
6151        pitch: usize,
6152        value: ::std::os::raw::c_int,
6153        width: usize,
6154        height: usize,
6155    ) -> hipError_t;
6156}
6157extern "C" {
6158    #[doc = "  @brief Fills asynchronously the memory area pointed to by dst with the constant value.\n\n  @param[in]  dst Pointer to 2D device memory\n  @param[in]  pitch  Pitch size in bytes\n  @param[in]  value  Value to be set for each byte of specified memory\n  @param[in]  width  Width of matrix set columns in bytes\n  @param[in]  height  Height of matrix set rows in bytes\n  @param[in]  stream  Stream identifier\n  @returns #hipSuccess, #hipErrorInvalidValue"]
6159    pub fn hipMemset2DAsync(
6160        dst: *mut ::std::os::raw::c_void,
6161        pitch: usize,
6162        value: ::std::os::raw::c_int,
6163        width: usize,
6164        height: usize,
6165        stream: hipStream_t,
6166    ) -> hipError_t;
6167}
6168extern "C" {
6169    #[doc = "  @brief Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.\n\n  @param[in] pitchedDevPtr  Pointer to pitched device memory\n  @param[in]  value  Value to set for each byte of specified memory\n  @param[in]  extent  Size parameters for width field in bytes in device memory\n  @returns #hipSuccess, #hipErrorInvalidValue"]
6170    pub fn hipMemset3D(
6171        pitchedDevPtr: hipPitchedPtr,
6172        value: ::std::os::raw::c_int,
6173        extent: hipExtent,
6174    ) -> hipError_t;
6175}
6176extern "C" {
6177    #[doc = "  @brief Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.\n\n  @param[in] pitchedDevPtr  Pointer to pitched device memory\n  @param[in]  value  Value to set for each byte of specified memory\n  @param[in]  extent  Size parameters for width field in bytes in device memory\n  @param[in]  stream  Stream identifier\n  @returns #hipSuccess, #hipErrorInvalidValue"]
6178    pub fn hipMemset3DAsync(
6179        pitchedDevPtr: hipPitchedPtr,
6180        value: ::std::os::raw::c_int,
6181        extent: hipExtent,
6182        stream: hipStream_t,
6183    ) -> hipError_t;
6184}
6185extern "C" {
6186    #[doc = " @brief Query memory info.\n\n On ROCM, this function gets the actual free memory left on the current device, so supports\n the cases while running multi-workload (such as multiple processes, multiple threads, and\n multiple GPUs).\n\n @warning On Windows, the free memory only accounts for memory allocated by this process and may\n be optimistic.\n\n @param[out] free Returns free memory on the current device in bytes\n @param[out] total Returns total allocatable memory on the current device in bytes\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue\n"]
6187    pub fn hipMemGetInfo(free: *mut usize, total: *mut usize) -> hipError_t;
6188}
6189extern "C" {
6190    #[doc = " @brief Get allocated memory size via memory pointer.\n\n This function gets the allocated shared virtual memory size from memory pointer.\n\n @param[in] ptr Pointer to allocated memory\n @param[out] size Returns the allocated memory size in bytes\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6191    pub fn hipMemPtrGetInfo(ptr: *mut ::std::os::raw::c_void, size: *mut usize) -> hipError_t;
6192}
6193extern "C" {
6194    #[doc = "  @brief Allocate an array on the device.\n\n  @param[out]  array  Pointer to allocated array in device memory\n  @param[in]   desc   Requested channel format\n  @param[in]   width  Requested array allocation width\n  @param[in]   height Requested array allocation height\n  @param[in]   flags  Requested properties of allocated array\n  @returns     #hipSuccess, #hipErrorOutOfMemory\n\n  @see hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree"]
6195    pub fn hipMallocArray(
6196        array: *mut hipArray_t,
6197        desc: *const hipChannelFormatDesc,
6198        width: usize,
6199        height: usize,
6200        flags: ::std::os::raw::c_uint,
6201    ) -> hipError_t;
6202}
6203extern "C" {
6204    #[doc = "  @brief Create an array memory pointer on the device.\n\n  @param[out]  pHandle  Pointer to the array memory\n  @param[in]   pAllocateArray   Requested array desciptor\n\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n  @see hipMallocArray, hipArrayDestroy, hipFreeArray"]
6205    pub fn hipArrayCreate(
6206        pHandle: *mut hipArray_t,
6207        pAllocateArray: *const HIP_ARRAY_DESCRIPTOR,
6208    ) -> hipError_t;
6209}
6210extern "C" {
6211    #[doc = "  @brief Destroy an array memory pointer on the device.\n\n  @param[in]  array  Pointer to the array memory\n\n  @returns     #hipSuccess, #hipErrorInvalidValue\n\n  @see hipArrayCreate, hipArrayDestroy, hipFreeArray"]
6212    pub fn hipArrayDestroy(array: hipArray_t) -> hipError_t;
6213}
6214extern "C" {
6215    #[doc = "  @brief Create a 3D array memory pointer on the device.\n\n  @param[out]  array  Pointer to the 3D array memory\n  @param[in]   pAllocateArray   Requested array desciptor\n\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n  @see hipMallocArray, hipArrayDestroy, hipFreeArray"]
6216    pub fn hipArray3DCreate(
6217        array: *mut hipArray_t,
6218        pAllocateArray: *const HIP_ARRAY3D_DESCRIPTOR,
6219    ) -> hipError_t;
6220}
6221extern "C" {
6222    #[doc = "  @brief Create a 3D memory pointer on the device.\n\n  @param[out]  pitchedDevPtr  Pointer to the 3D memory\n  @param[in]   extent   Requested extent\n\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n  @see hipMallocPitch, hipMemGetInfo, hipFree"]
6223    pub fn hipMalloc3D(pitchedDevPtr: *mut hipPitchedPtr, extent: hipExtent) -> hipError_t;
6224}
6225extern "C" {
6226    #[doc = "  @brief Frees an array on the device.\n\n  @param[in]  array  Pointer to array to free\n  @returns    #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized\n\n  @see hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipHostMalloc, hipHostFree"]
6227    pub fn hipFreeArray(array: hipArray_t) -> hipError_t;
6228}
6229extern "C" {
6230    #[doc = "  @brief Allocate an array on the device.\n\n  @param[out]  array  Pointer to allocated array in device memory\n  @param[in]   desc   Requested channel format\n  @param[in]   extent Requested array allocation width, height and depth\n  @param[in]   flags  Requested properties of allocated array\n  @returns     #hipSuccess, #hipErrorOutOfMemory\n\n  @see hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree"]
6231    pub fn hipMalloc3DArray(
6232        array: *mut hipArray_t,
6233        desc: *const hipChannelFormatDesc,
6234        extent: hipExtent,
6235        flags: ::std::os::raw::c_uint,
6236    ) -> hipError_t;
6237}
6238extern "C" {
6239    #[doc = " @brief Gets info about the specified array\n\n @param[out] desc   - Returned array type\n @param[out] extent - Returned array shape. 2D arrays will have depth of zero\n @param[out] flags  - Returned array flags\n @param[in]  array  - The HIP array to get info for\n\n @returns #hipSuccess, #hipErrorInvalidValue #hipErrorInvalidHandle\n\n @see hipArrayGetDescriptor, hipArray3DGetDescriptor"]
6240    pub fn hipArrayGetInfo(
6241        desc: *mut hipChannelFormatDesc,
6242        extent: *mut hipExtent,
6243        flags: *mut ::std::os::raw::c_uint,
6244        array: hipArray_t,
6245    ) -> hipError_t;
6246}
6247extern "C" {
6248    #[doc = " @brief Gets a 1D or 2D array descriptor\n\n @param[out] pArrayDescriptor - Returned array descriptor\n @param[in]  array            - Array to get descriptor of\n\n @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue #hipErrorInvalidHandle\n\n @see hipArray3DCreate, hipArray3DGetDescriptor, hipArrayCreate, hipArrayDestroy, hipMemAlloc,\n hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned,\n hipMemcpy3D, hipMemcpy3DAsync, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync,\n hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync,\n hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync, hipMemFree,\n hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc,\n hipMemHostGetDevicePointer, hipMemsetD8, hipMemsetD16, hipMemsetD32, hipArrayGetInfo"]
6249    pub fn hipArrayGetDescriptor(
6250        pArrayDescriptor: *mut HIP_ARRAY_DESCRIPTOR,
6251        array: hipArray_t,
6252    ) -> hipError_t;
6253}
6254extern "C" {
6255    #[doc = " @brief Gets a 3D array descriptor\n\n @param[out] pArrayDescriptor - Returned 3D array descriptor\n @param[in]  array            - 3D array to get descriptor of\n\n @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidValue #hipErrorInvalidHandle, #hipErrorContextIsDestroyed\n\n @see hipArray3DCreate, hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc,\n hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned,\n hipMemcpy3D, hipMemcpy3DAsync, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync,\n hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync,\n hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync, hipMemFree,\n hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc,\n hipMemHostGetDevicePointer, hipMemsetD8, hipMemsetD16, hipMemsetD32, hipArrayGetInfo"]
6256    pub fn hipArray3DGetDescriptor(
6257        pArrayDescriptor: *mut HIP_ARRAY3D_DESCRIPTOR,
6258        array: hipArray_t,
6259    ) -> hipError_t;
6260}
6261extern "C" {
6262    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst    Destination memory address\n  @param[in]   dpitch Pitch of destination memory\n  @param[in]   src    Source memory address\n  @param[in]   spitch Pitch of source memory\n  @param[in]   width  Width of matrix transfer (columns in bytes)\n  @param[in]   height Height of matrix transfer (rows)\n  @param[in]   kind   Type of transfer\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6263    pub fn hipMemcpy2D(
6264        dst: *mut ::std::os::raw::c_void,
6265        dpitch: usize,
6266        src: *const ::std::os::raw::c_void,
6267        spitch: usize,
6268        width: usize,
6269        height: usize,
6270        kind: hipMemcpyKind,
6271    ) -> hipError_t;
6272}
6273extern "C" {
6274    #[doc = "  @brief Copies memory for 2D arrays.\n  @param[in]   pCopy Parameters for the memory copy\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n  #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray,\n hipMemcpyToSymbol, hipMemcpyAsync"]
6275    pub fn hipMemcpyParam2D(pCopy: *const hip_Memcpy2D) -> hipError_t;
6276}
6277extern "C" {
6278    #[doc = "  @brief Copies memory for 2D arrays.\n  @param[in]   pCopy Parameters for the memory copy\n  @param[in]   stream Stream to use\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray,\n hipMemcpyToSymbol, hipMemcpyAsync"]
6279    pub fn hipMemcpyParam2DAsync(pCopy: *const hip_Memcpy2D, stream: hipStream_t) -> hipError_t;
6280}
6281extern "C" {
6282    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst    Destination memory address\n  @param[in]   dpitch Pitch of destination memory\n  @param[in]   src    Source memory address\n  @param[in]   spitch Pitch of source memory\n  @param[in]   width  Width of matrix transfer (columns in bytes)\n  @param[in]   height Height of matrix transfer (rows)\n  @param[in]   kind   Type of transfer\n  @param[in]   stream Stream to use\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6283    pub fn hipMemcpy2DAsync(
6284        dst: *mut ::std::os::raw::c_void,
6285        dpitch: usize,
6286        src: *const ::std::os::raw::c_void,
6287        spitch: usize,
6288        width: usize,
6289        height: usize,
6290        kind: hipMemcpyKind,
6291        stream: hipStream_t,
6292    ) -> hipError_t;
6293}
6294extern "C" {
6295    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst     Destination memory address\n  @param[in]   wOffset Destination starting X offset\n  @param[in]   hOffset Destination starting Y offset\n  @param[in]   src     Source memory address\n  @param[in]   spitch  Pitch of source memory\n  @param[in]   width   Width of matrix transfer (columns in bytes)\n  @param[in]   height  Height of matrix transfer (rows)\n  @param[in]   kind    Type of transfer\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6296    pub fn hipMemcpy2DToArray(
6297        dst: hipArray_t,
6298        wOffset: usize,
6299        hOffset: usize,
6300        src: *const ::std::os::raw::c_void,
6301        spitch: usize,
6302        width: usize,
6303        height: usize,
6304        kind: hipMemcpyKind,
6305    ) -> hipError_t;
6306}
6307extern "C" {
6308    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst     Destination memory address\n  @param[in]   wOffset Destination starting X offset\n  @param[in]   hOffset Destination starting Y offset\n  @param[in]   src     Source memory address\n  @param[in]   spitch  Pitch of source memory\n  @param[in]   width   Width of matrix transfer (columns in bytes)\n  @param[in]   height  Height of matrix transfer (rows)\n  @param[in]   kind    Type of transfer\n  @param[in]   stream    Accelerator view which the copy is being enqueued\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6309    pub fn hipMemcpy2DToArrayAsync(
6310        dst: hipArray_t,
6311        wOffset: usize,
6312        hOffset: usize,
6313        src: *const ::std::os::raw::c_void,
6314        spitch: usize,
6315        width: usize,
6316        height: usize,
6317        kind: hipMemcpyKind,
6318        stream: hipStream_t,
6319    ) -> hipError_t;
6320}
6321extern "C" {
6322    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst Destination memory address\n  @param[in]   wOffsetDst Destination starting X offset\n  @param[in]   hOffsetDst Destination starting Y offset\n  @param[in]   src  Source memory address\n  @param[in]   wOffsetSrc Source starting X offset\n  @param[in]   hOffsetSrc Source starting Y offset (columns in bytes)\n  @param[in]   width  Width of matrix transfer (columns in bytes)\n  @param[in]   height  Height of matrix transfer (rows)\n  @param[in]   kind Type of transfer\n\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6323    pub fn hipMemcpy2DArrayToArray(
6324        dst: hipArray_t,
6325        wOffsetDst: usize,
6326        hOffsetDst: usize,
6327        src: hipArray_const_t,
6328        wOffsetSrc: usize,
6329        hOffsetSrc: usize,
6330        width: usize,
6331        height: usize,
6332        kind: hipMemcpyKind,
6333    ) -> hipError_t;
6334}
6335extern "C" {
6336    #[doc = "  @brief Copies data between host and device [Deprecated]\n\n  @ingroup MemoryD\n\n  @param[in]   dst     Destination memory address\n  @param[in]   wOffset Destination starting X offset\n  @param[in]   hOffset Destination starting Y offset\n  @param[in]   src     Source memory address\n  @param[in]   count   size in bytes to copy\n  @param[in]   kind    Type of transfer\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n  hipMemcpyAsync\n  @warning  This API is deprecated."]
6337    pub fn hipMemcpyToArray(
6338        dst: hipArray_t,
6339        wOffset: usize,
6340        hOffset: usize,
6341        src: *const ::std::os::raw::c_void,
6342        count: usize,
6343        kind: hipMemcpyKind,
6344    ) -> hipError_t;
6345}
6346extern "C" {
6347    #[doc = "  @brief Copies data between host and device [Deprecated]\n\n  @ingroup MemoryD\n\n  @param[in]   dst       Destination memory address\n  @param[in]   srcArray  Source memory address\n  @param[in]   wOffset   Source starting X offset\n  @param[in]   hOffset   Source starting Y offset\n  @param[in]   count     Size in bytes to copy\n  @param[in]   kind      Type of transfer\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync\n @warning  This API is deprecated."]
6348    pub fn hipMemcpyFromArray(
6349        dst: *mut ::std::os::raw::c_void,
6350        srcArray: hipArray_const_t,
6351        wOffset: usize,
6352        hOffset: usize,
6353        count: usize,
6354        kind: hipMemcpyKind,
6355    ) -> hipError_t;
6356}
6357extern "C" {
6358    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst       Destination memory address\n  @param[in]   dpitch    Pitch of destination memory\n  @param[in]   src       Source memory address\n  @param[in]   wOffset   Source starting X offset\n  @param[in]   hOffset   Source starting Y offset\n  @param[in]   width     Width of matrix transfer (columns in bytes)\n  @param[in]   height    Height of matrix transfer (rows)\n  @param[in]   kind      Type of transfer\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6359    pub fn hipMemcpy2DFromArray(
6360        dst: *mut ::std::os::raw::c_void,
6361        dpitch: usize,
6362        src: hipArray_const_t,
6363        wOffset: usize,
6364        hOffset: usize,
6365        width: usize,
6366        height: usize,
6367        kind: hipMemcpyKind,
6368    ) -> hipError_t;
6369}
6370extern "C" {
6371    #[doc = "  @brief Copies data between host and device asynchronously.\n\n  @param[in]   dst       Destination memory address\n  @param[in]   dpitch    Pitch of destination memory\n  @param[in]   src       Source memory address\n  @param[in]   wOffset   Source starting X offset\n  @param[in]   hOffset   Source starting Y offset\n  @param[in]   width     Width of matrix transfer (columns in bytes)\n  @param[in]   height    Height of matrix transfer (rows)\n  @param[in]   kind      Type of transfer\n  @param[in]   stream    Accelerator view which the copy is being enqueued\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6372    pub fn hipMemcpy2DFromArrayAsync(
6373        dst: *mut ::std::os::raw::c_void,
6374        dpitch: usize,
6375        src: hipArray_const_t,
6376        wOffset: usize,
6377        hOffset: usize,
6378        width: usize,
6379        height: usize,
6380        kind: hipMemcpyKind,
6381        stream: hipStream_t,
6382    ) -> hipError_t;
6383}
6384extern "C" {
6385    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dst       Destination memory address\n  @param[in]   srcArray  Source array\n  @param[in]   srcOffset Offset in bytes of source array\n  @param[in]   count     Size of memory copy in bytes\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6386    pub fn hipMemcpyAtoH(
6387        dst: *mut ::std::os::raw::c_void,
6388        srcArray: hipArray_t,
6389        srcOffset: usize,
6390        count: usize,
6391    ) -> hipError_t;
6392}
6393extern "C" {
6394    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   dstArray   Destination memory address\n  @param[in]   dstOffset  Offset in bytes of destination array\n  @param[in]   srcHost    Source host pointer\n  @param[in]   count      Size of memory copy in bytes\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6395    pub fn hipMemcpyHtoA(
6396        dstArray: hipArray_t,
6397        dstOffset: usize,
6398        srcHost: *const ::std::os::raw::c_void,
6399        count: usize,
6400    ) -> hipError_t;
6401}
6402extern "C" {
6403    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   p   3D memory copy parameters\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6404    pub fn hipMemcpy3D(p: *const hipMemcpy3DParms) -> hipError_t;
6405}
6406extern "C" {
6407    #[doc = "  @brief Copies data between host and device asynchronously.\n\n  @param[in]   p        3D memory copy parameters\n  @param[in]   stream   Stream to use\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6408    pub fn hipMemcpy3DAsync(p: *const hipMemcpy3DParms, stream: hipStream_t) -> hipError_t;
6409}
6410extern "C" {
6411    #[doc = "  @brief Copies data between host and device.\n\n  @param[in]   pCopy   3D memory copy parameters\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n  #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6412    pub fn hipDrvMemcpy3D(pCopy: *const HIP_MEMCPY3D) -> hipError_t;
6413}
6414extern "C" {
6415    #[doc = "  @brief Copies data between host and device asynchronously.\n\n  @param[in]   pCopy    3D memory copy parameters\n  @param[in]   stream   Stream to use\n  @returns     #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue,\n  #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection\n\n  @see hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol,\n hipMemcpyAsync"]
6416    pub fn hipDrvMemcpy3DAsync(pCopy: *const HIP_MEMCPY3D, stream: hipStream_t) -> hipError_t;
6417}
6418extern "C" {
6419    #[doc = " @}\n/\n/**\n-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup PeerToPeer PeerToPeer Device Memory Access\n  @{\n  @warning PeerToPeer support is experimental.\n  This section describes the PeerToPeer device memory access functions of HIP runtime API.\n/\n/**\n @brief Determine if a device can access a peer's memory.\n\n @param [out] canAccessPeer Returns the peer access capability (0 or 1)\n @param [in] deviceId - device from where memory may be accessed.\n @param [in] peerDeviceId - device where memory is physically located\n\n Returns \"1\" in @p canAccessPeer if the specified @p device is capable\n of directly accessing memory physically located on peerDevice , or \"0\" if not.\n\n Returns \"0\" in @p canAccessPeer if deviceId == peerDeviceId, and both are valid devices : a\n device is not a peer of itself.\n\n @returns #hipSuccess,\n @returns #hipErrorInvalidDevice if deviceId or peerDeviceId are not valid devices"]
6420    pub fn hipDeviceCanAccessPeer(
6421        canAccessPeer: *mut ::std::os::raw::c_int,
6422        deviceId: ::std::os::raw::c_int,
6423        peerDeviceId: ::std::os::raw::c_int,
6424    ) -> hipError_t;
6425}
6426extern "C" {
6427    #[doc = " @brief Enable direct access from current device's virtual address space to memory allocations\n physically located on a peer device.\n\n Memory which already allocated on peer device will be mapped into the address space of the\n current device.  In addition, all future memory allocations on peerDeviceId will be mapped into\n the address space of the current device when the memory is allocated. The peer memory remains\n accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.\n\n\n @param [in] peerDeviceId  Peer device to enable direct access to from the current device\n @param [in] flags  Reserved for future use, must be zero\n\n Returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue,\n @returns #hipErrorPeerAccessAlreadyEnabled if peer access is already enabled for this device."]
6428    pub fn hipDeviceEnablePeerAccess(
6429        peerDeviceId: ::std::os::raw::c_int,
6430        flags: ::std::os::raw::c_uint,
6431    ) -> hipError_t;
6432}
6433extern "C" {
6434    #[doc = " @brief Disable direct access from current device's virtual address space to memory allocations\n physically located on a peer device.\n\n Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been\n enabled from the current device.\n\n @param [in] peerDeviceId  Peer device to disable direct access to\n\n @returns #hipSuccess, #hipErrorPeerAccessNotEnabled"]
6435    pub fn hipDeviceDisablePeerAccess(peerDeviceId: ::std::os::raw::c_int) -> hipError_t;
6436}
6437extern "C" {
6438    #[doc = " @brief Get information on memory allocations.\n\n @param [out] pbase - BAse pointer address\n @param [out] psize - Size of allocation\n @param [in]  dptr- Device Pointer\n\n @returns #hipSuccess, #hipErrorNotFound\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice"]
6439    pub fn hipMemGetAddressRange(
6440        pbase: *mut hipDeviceptr_t,
6441        psize: *mut usize,
6442        dptr: hipDeviceptr_t,
6443    ) -> hipError_t;
6444}
6445extern "C" {
6446    #[doc = " @brief Copies memory from one device to memory on another device.\n\n @param [out] dst - Destination device pointer.\n @param [in] dstDeviceId - Destination device\n @param [in] src - Source device pointer\n @param [in] srcDeviceId - Source device\n @param [in] sizeBytes - Size of memory copy in bytes\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice"]
6447    pub fn hipMemcpyPeer(
6448        dst: *mut ::std::os::raw::c_void,
6449        dstDeviceId: ::std::os::raw::c_int,
6450        src: *const ::std::os::raw::c_void,
6451        srcDeviceId: ::std::os::raw::c_int,
6452        sizeBytes: usize,
6453    ) -> hipError_t;
6454}
6455extern "C" {
6456    #[doc = " @brief Copies memory from one device to memory on another device.\n\n @param [out] dst - Destination device pointer.\n @param [in] dstDeviceId - Destination device\n @param [in] src - Source device pointer\n @param [in] srcDevice - Source device\n @param [in] sizeBytes - Size of memory copy in bytes\n @param [in] stream - Stream identifier\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice"]
6457    pub fn hipMemcpyPeerAsync(
6458        dst: *mut ::std::os::raw::c_void,
6459        dstDeviceId: ::std::os::raw::c_int,
6460        src: *const ::std::os::raw::c_void,
6461        srcDevice: ::std::os::raw::c_int,
6462        sizeBytes: usize,
6463        stream: hipStream_t,
6464    ) -> hipError_t;
6465}
6466extern "C" {
6467    #[doc = " @brief Create a context and set it as current/default context\n\n @param [out] ctx  Context to create\n @param [in] flags  Context creation flags\n @param [in] device  device handle\n\n @returns #hipSuccess\n\n @see hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent,\n hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform.\n"]
6468    pub fn hipCtxCreate(
6469        ctx: *mut hipCtx_t,
6470        flags: ::std::os::raw::c_uint,
6471        device: hipDevice_t,
6472    ) -> hipError_t;
6473}
6474extern "C" {
6475    #[doc = " @brief Destroy a HIP context [Deprecated]\n\n @param [in] ctx Context to destroy\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @see hipCtxCreate, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,hipCtxSetCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6476    pub fn hipCtxDestroy(ctx: hipCtx_t) -> hipError_t;
6477}
6478extern "C" {
6479    #[doc = " @brief Pop the current/default context and return the popped context [Deprecated]\n\n @param [out] ctx  The current context to pop\n\n @returns #hipSuccess, #hipErrorInvalidContext\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxSetCurrent, hipCtxGetCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6480    pub fn hipCtxPopCurrent(ctx: *mut hipCtx_t) -> hipError_t;
6481}
6482extern "C" {
6483    #[doc = " @brief Push the context to be set as current/ default context [Deprecated]\n\n @param [in] ctx  The current context to push\n\n @returns #hipSuccess, #hipErrorInvalidContext\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6484    pub fn hipCtxPushCurrent(ctx: hipCtx_t) -> hipError_t;
6485}
6486extern "C" {
6487    #[doc = " @brief Set the passed context as current/default [Deprecated]\n\n @param [in] ctx The context to set as current\n\n @returns #hipSuccess, #hipErrorInvalidContext\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6488    pub fn hipCtxSetCurrent(ctx: hipCtx_t) -> hipError_t;
6489}
6490extern "C" {
6491    #[doc = " @brief Get the handle of the current/ default context [Deprecated]\n\n @param [out] ctx  The context to get as current\n\n @returns #hipSuccess, #hipErrorInvalidContext\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6492    pub fn hipCtxGetCurrent(ctx: *mut hipCtx_t) -> hipError_t;
6493}
6494extern "C" {
6495    #[doc = " @brief Get the handle of the device associated with current/default context [Deprecated]\n\n @param [out] device The device from the current context\n\n @returns #hipSuccess, #hipErrorInvalidContext\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6496    pub fn hipCtxGetDevice(device: *mut hipDevice_t) -> hipError_t;
6497}
6498extern "C" {
6499    #[doc = " @brief Returns the approximate HIP api version.\n\n @param [in]  ctx Context to check [Deprecated]\n @param [out] apiVersion API version to get\n\n @returns #hipSuccess\n\n @warning The HIP feature set does not correspond to an exact CUDA SDK api revision.\n This function always set *apiVersion to 4 as an approximation though HIP supports\n some features which were introduced in later CUDA SDK revisions.\n HIP apps code should not rely on the api revision number here and should\n use arch feature flags to test device capabilities or conditional compilation.\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent,\n hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6500    pub fn hipCtxGetApiVersion(ctx: hipCtx_t, apiVersion: *mut ::std::os::raw::c_int)
6501        -> hipError_t;
6502}
6503extern "C" {
6504    #[doc = " @brief Get Cache configuration for a specific function [Deprecated]\n\n @param [out] cacheConfig  Cache configuration\n\n @returns #hipSuccess\n\n @warning AMD devices and some Nvidia GPUS do not support reconfigurable cache.  This hint is\n ignored on those architectures.\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6505    pub fn hipCtxGetCacheConfig(cacheConfig: *mut hipFuncCache_t) -> hipError_t;
6506}
6507extern "C" {
6508    #[doc = " @brief Set L1/Shared cache partition [Deprecated]\n\n @param [in] cacheConfig  Cache configuration to set\n\n @return #hipSuccess\n\n @warning AMD devices and some Nvidia GPUS do not support reconfigurable cache.  This hint is\n ignored on those architectures.\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6509    pub fn hipCtxSetCacheConfig(cacheConfig: hipFuncCache_t) -> hipError_t;
6510}
6511extern "C" {
6512    #[doc = " @brief Set Shared memory bank configuration  [Deprecated]\n\n @param [in] config  Shared memory configuration to set\n\n @return #hipSuccess\n\n @warning AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is\n ignored on those architectures.\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6513    pub fn hipCtxSetSharedMemConfig(config: hipSharedMemConfig) -> hipError_t;
6514}
6515extern "C" {
6516    #[doc = " @brief Get Shared memory bank configuration [Deprecated]\n\n @param [out] pConfig  Pointer of shared memory configuration\n\n @return #hipSuccess\n\n @warning AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is\n ignored on those architectures.\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6517    pub fn hipCtxGetSharedMemConfig(pConfig: *mut hipSharedMemConfig) -> hipError_t;
6518}
6519extern "C" {
6520    #[doc = " @brief Blocks until the default context has completed all preceding requested tasks [Deprecated]\n\n @return #hipSuccess\n\n @warning This function waits for all streams on the default context to complete execution, and\n then returns.\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6521    pub fn hipCtxSynchronize() -> hipError_t;
6522}
6523extern "C" {
6524    #[doc = " @brief Return flags used for creating default context [Deprecated]\n\n @param [out] flags  Pointer of flags\n\n @returns #hipSuccess\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6525    pub fn hipCtxGetFlags(flags: *mut ::std::os::raw::c_uint) -> hipError_t;
6526}
6527extern "C" {
6528    #[doc = " @brief Enables direct access to memory allocations in a peer context [Deprecated]\n\n Memory which already allocated on peer device will be mapped into the address space of the\n current device.  In addition, all future memory allocations on peerDeviceId will be mapped into\n the address space of the current device when the memory is allocated. The peer memory remains\n accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.\n\n\n @param [in] peerCtx  Peer context\n @param [in] flags  flags, need to set as 0\n\n @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue,\n #hipErrorPeerAccessAlreadyEnabled\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n @warning PeerToPeer support is experimental.\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6529    pub fn hipCtxEnablePeerAccess(peerCtx: hipCtx_t, flags: ::std::os::raw::c_uint) -> hipError_t;
6530}
6531extern "C" {
6532    #[doc = " @brief Disable direct access from current context's virtual address space to memory allocations\n physically located on a peer context.Disables direct access to memory allocations in a peer\n context and unregisters any registered allocations [Deprecated]\n\n Returns #hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been\n enabled from the current device.\n\n @param [in] peerCtx  Peer context to be disabled\n\n @returns #hipSuccess, #hipErrorPeerAccessNotEnabled\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n @warning PeerToPeer support is experimental.\n\n @warning  This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the\n NVIDIA platform."]
6533    pub fn hipCtxDisablePeerAccess(peerCtx: hipCtx_t) -> hipError_t;
6534}
6535extern "C" {
6536    #[doc = " @brief Get the state of the primary context [Deprecated]\n\n @param [in] dev  Device to get primary context flags for\n @param [out] flags  Pointer to store flags\n @param [out] active  Pointer to store context state; 0 = inactive, 1 = active\n\n @returns #hipSuccess\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent driver API on the\n NVIDIA platform."]
6537    pub fn hipDevicePrimaryCtxGetState(
6538        dev: hipDevice_t,
6539        flags: *mut ::std::os::raw::c_uint,
6540        active: *mut ::std::os::raw::c_int,
6541    ) -> hipError_t;
6542}
6543extern "C" {
6544    #[doc = " @brief Release the primary context on the GPU.\n\n @param [in] dev  Device which primary context is released [Deprecated]\n\n @returns #hipSuccess\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n @warning This function return #hipSuccess though doesn't release the primaryCtx by design on\n HIP/HCC path.\n\n @warning  This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA\n platform."]
6545    pub fn hipDevicePrimaryCtxRelease(dev: hipDevice_t) -> hipError_t;
6546}
6547extern "C" {
6548    #[doc = " @brief Retain the primary context on the GPU [Deprecated]\n\n @param [out] pctx  Returned context handle of the new context\n @param [in] dev  Device which primary context is released\n\n @returns #hipSuccess\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA\n platform."]
6549    pub fn hipDevicePrimaryCtxRetain(pctx: *mut hipCtx_t, dev: hipDevice_t) -> hipError_t;
6550}
6551extern "C" {
6552    #[doc = " @brief Resets the primary context on the GPU [Deprecated]\n\n @param [in] dev  Device which primary context is reset\n\n @returns #hipSuccess\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA\n platform."]
6553    pub fn hipDevicePrimaryCtxReset(dev: hipDevice_t) -> hipError_t;
6554}
6555extern "C" {
6556    #[doc = " @brief Set flags for the primary context [Deprecated]\n\n @param [in] dev  Device for which the primary context flags are set\n @param [in] flags  New flags for the device\n\n @returns #hipSuccess, #hipErrorContextAlreadyInUse\n\n @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,\n hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice\n\n @warning  This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA\n platform."]
6557    pub fn hipDevicePrimaryCtxSetFlags(
6558        dev: hipDevice_t,
6559        flags: ::std::os::raw::c_uint,
6560    ) -> hipError_t;
6561}
6562extern "C" {
6563    #[doc = " @}\n/\n/**\n-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n\n  @defgroup Module Module Management\n  @{\n  @ingroup API\n  This section describes the module management functions of HIP runtime API.\n\n/\n/**\n @brief Loads code object from file into a module the currrent context.\n\n @param [in] fname  Filename of code object to load\n\n @param [out] module  Module\n\n @warning File/memory resources allocated in this function are released only in hipModuleUnload.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidContext, #hipErrorFileNotFound,\n #hipErrorOutOfMemory, #hipErrorSharedObjectInitFailed, #hipErrorNotInitialized\n"]
6564    pub fn hipModuleLoad(
6565        module: *mut hipModule_t,
6566        fname: *const ::std::os::raw::c_char,
6567    ) -> hipError_t;
6568}
6569extern "C" {
6570    #[doc = " @brief Frees the module\n\n @param [in] module  Module to free\n\n @returns #hipSuccess, #hipErrorInvalidResourceHandle\n\n The module is freed, and the code objects associated with it are destroyed."]
6571    pub fn hipModuleUnload(module: hipModule_t) -> hipError_t;
6572}
6573extern "C" {
6574    #[doc = " @brief Function with kname will be extracted if present in module\n\n @param [in] module  Module to get function from\n @param [in] kname  Pointer to the name of function\n @param [out] function  Pointer to function handle\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidContext, #hipErrorNotInitialized,\n #hipErrorNotFound,"]
6575    pub fn hipModuleGetFunction(
6576        function: *mut hipFunction_t,
6577        module: hipModule_t,
6578        kname: *const ::std::os::raw::c_char,
6579    ) -> hipError_t;
6580}
6581extern "C" {
6582    #[doc = " @brief Find out attributes for a given function.\n @ingroup Execution\n @param [out] attr  Attributes of funtion\n @param [in] func  Pointer to the function handle\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDeviceFunction"]
6583    pub fn hipFuncGetAttributes(
6584        attr: *mut hipFuncAttributes,
6585        func: *const ::std::os::raw::c_void,
6586    ) -> hipError_t;
6587}
6588extern "C" {
6589    #[doc = " @brief Find out a specific attribute for a given function.\n @ingroup Execution\n @param [out] value  Pointer to the value\n @param [in]  attrib  Attributes of the given funtion\n @param [in]  hfunc  Function to get attributes from\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDeviceFunction"]
6590    pub fn hipFuncGetAttribute(
6591        value: *mut ::std::os::raw::c_int,
6592        attrib: hipFunction_attribute,
6593        hfunc: hipFunction_t,
6594    ) -> hipError_t;
6595}
6596extern "C" {
6597    #[doc = " @brief Gets pointer to device entry function that matches entry function symbolPtr.\n\n @param [out] functionPtr  Device entry function\n @param [in]  symbolPtr  Pointer to device entry function to search for\n\n @returns #hipSuccess, #hipErrorInvalidDeviceFunction\n"]
6598    pub fn hipGetFuncBySymbol(
6599        functionPtr: *mut hipFunction_t,
6600        symbolPtr: *const ::std::os::raw::c_void,
6601    ) -> hipError_t;
6602}
6603extern "C" {
6604    #[doc = " @brief returns the handle of the texture reference with the name from the module.\n\n @param [in] hmod  Module\n @param [in] name  Pointer of name of texture reference\n @param [out] texRef  Pointer of texture reference\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorNotFound, #hipErrorInvalidValue"]
6605    pub fn hipModuleGetTexRef(
6606        texRef: *mut *mut textureReference,
6607        hmod: hipModule_t,
6608        name: *const ::std::os::raw::c_char,
6609    ) -> hipError_t;
6610}
6611extern "C" {
6612    #[doc = " @brief builds module from code object which resides in host memory. Image is pointer to that\n location.\n\n @param [in] image  The pointer to the location of data\n @param [out] module  Retuned module\n\n @returns hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitialized"]
6613    pub fn hipModuleLoadData(
6614        module: *mut hipModule_t,
6615        image: *const ::std::os::raw::c_void,
6616    ) -> hipError_t;
6617}
6618extern "C" {
6619    #[doc = " @brief builds module from code object which resides in host memory. Image is pointer to that\n location. Options are not used. hipModuleLoadData is called.\n\n @param [in] image  The pointer to the location of data\n @param [out] module  Retuned module\n @param [in] numOptions Number of options\n @param [in] options Options for JIT\n @param [in] optionValues  Option values for JIT\n\n @returns hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitialized"]
6620    pub fn hipModuleLoadDataEx(
6621        module: *mut hipModule_t,
6622        image: *const ::std::os::raw::c_void,
6623        numOptions: ::std::os::raw::c_uint,
6624        options: *mut hipJitOption,
6625        optionValues: *mut *mut ::std::os::raw::c_void,
6626    ) -> hipError_t;
6627}
6628extern "C" {
6629    #[doc = " @brief Completes the linking of the given program.\n @param [in] state hip link state\n @param [in] type  Type of the input data or bitcode\n @param [in] data  Input data which is null terminated\n @param [in] size  Size of the input data\n @param [in] name  Optional name for this input\n @param [in] numOptions  Size of the options\n @param [in] options  Array of options applied to this input\n @param [in] optionValues  Array of option values cast to void*\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidHandle\n\n If adding the file fails, it will\n @return #hipErrorInvalidConfiguration\n\n @see hipError_t"]
6630    pub fn hipLinkAddData(
6631        state: hipLinkState_t,
6632        type_: hipJitInputType,
6633        data: *mut ::std::os::raw::c_void,
6634        size: usize,
6635        name: *const ::std::os::raw::c_char,
6636        numOptions: ::std::os::raw::c_uint,
6637        options: *mut hipJitOption,
6638        optionValues: *mut *mut ::std::os::raw::c_void,
6639    ) -> hipError_t;
6640}
6641extern "C" {
6642    #[doc = " @brief Adds a file with bit code to be linked with options\n @param [in] state hip link state\n @param [in] type  Type of the input data or bitcode\n @param [in] path  Path to the input file where bitcode is present\n @param [in] numOptions  Size of the options\n @param [in] options  Array of options applied to this input\n @param [in] optionValues  Array of option values cast to void*\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n If adding the file fails, it will\n @return #hipErrorInvalidConfiguration\n\n @see hipError_t"]
6643    pub fn hipLinkAddFile(
6644        state: hipLinkState_t,
6645        type_: hipJitInputType,
6646        path: *const ::std::os::raw::c_char,
6647        numOptions: ::std::os::raw::c_uint,
6648        options: *mut hipJitOption,
6649        optionValues: *mut *mut ::std::os::raw::c_void,
6650    ) -> hipError_t;
6651}
6652extern "C" {
6653    #[doc = " @brief Completes the linking of the given program.\n @param [in]   state hip link state\n @param [out]  hipBinOut  Upon success, points to the output binary\n @param [out]  sizeOut  Size of the binary is stored (optional)\n\n @returns #hipSuccess #hipErrorInvalidValue\n\n If adding the data fails, it will\n @return #hipErrorInvalidConfiguration\n\n @see hipError_t"]
6654    pub fn hipLinkComplete(
6655        state: hipLinkState_t,
6656        hipBinOut: *mut *mut ::std::os::raw::c_void,
6657        sizeOut: *mut usize,
6658    ) -> hipError_t;
6659}
6660extern "C" {
6661    #[doc = " @brief Creates the link instance via hip APIs.\n @param [in] numOptions  Number of options\n @param [in] option  Array of options\n @param [in] optionValues  Array of option values cast to void*\n @param [out] stateOut  hip link state created upon success\n\n @returns #hipSuccess #hipErrorInvalidValue #hipErrorInvalidConfiguration\n\n @see hipSuccess"]
6662    pub fn hipLinkCreate(
6663        numOptions: ::std::os::raw::c_uint,
6664        options: *mut hipJitOption,
6665        optionValues: *mut *mut ::std::os::raw::c_void,
6666        stateOut: *mut hipLinkState_t,
6667    ) -> hipError_t;
6668}
6669extern "C" {
6670    #[doc = " @brief Deletes the link instance via hip APIs.\n @param [in] state link state instance\n\n @returns #hipSuccess #hipErrorInvalidValue\n\n @see hipSuccess"]
6671    pub fn hipLinkDestroy(state: hipLinkState_t) -> hipError_t;
6672}
6673extern "C" {
6674    #[doc = " @brief launches kernel f with launch parameters and shared memory on stream with arguments passed\n to kernelparams or extra\n @ingroup Execution\n @param [in] f         Kernel to launch.\n @param [in] gridDimX  X grid dimension specified as multiple of blockDimX.\n @param [in] gridDimY  Y grid dimension specified as multiple of blockDimY.\n @param [in] gridDimZ  Z grid dimension specified as multiple of blockDimZ.\n @param [in] blockDimX X block dimensions specified in work-items\n @param [in] blockDimY Y grid dimension specified in work-items\n @param [in] blockDimZ Z grid dimension specified in work-items\n @param [in] sharedMemBytes Amount of dynamic shared memory to allocate for this kernel. The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream    Stream where the kernel should be dispatched.  May be 0, in which case th\n default stream is used with associated synchronization rules.\n @param [in] kernelParams  Kernel parameters to launch\n @param [in] extra     Pointer to kernel arguments.   These are passed directly to the kernel and\n must be in the memory layout and alignment expected by the kernel.\n All passed arguments must be naturally aligned according to their type. The memory address of each\n argument should be a multiple of its size in bytes. Please refer to hip_porting_driver_api.md\n for sample usage.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32. So gridDim.x * blockDim.x, gridDim.y * blockDim.y\n and gridDim.z * blockDim.z are always less than 2^32.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue"]
6675    pub fn hipModuleLaunchKernel(
6676        f: hipFunction_t,
6677        gridDimX: ::std::os::raw::c_uint,
6678        gridDimY: ::std::os::raw::c_uint,
6679        gridDimZ: ::std::os::raw::c_uint,
6680        blockDimX: ::std::os::raw::c_uint,
6681        blockDimY: ::std::os::raw::c_uint,
6682        blockDimZ: ::std::os::raw::c_uint,
6683        sharedMemBytes: ::std::os::raw::c_uint,
6684        stream: hipStream_t,
6685        kernelParams: *mut *mut ::std::os::raw::c_void,
6686        extra: *mut *mut ::std::os::raw::c_void,
6687    ) -> hipError_t;
6688}
6689extern "C" {
6690    #[doc = " \\addtogroup ModuleCooperativeG Cooperative groups kernel launch of Module management.\n \\ingroup Module\n  @{ */\n/**\n @brief launches kernel f with launch parameters and shared memory on stream with arguments passed\n to kernelParams, where thread blocks can cooperate and synchronize as they execute\n\n @param [in] f              Kernel to launch.\n @param [in] gridDimX       X grid dimension specified as multiple of blockDimX.\n @param [in] gridDimY       Y grid dimension specified as multiple of blockDimY.\n @param [in] gridDimZ       Z grid dimension specified as multiple of blockDimZ.\n @param [in] blockDimX      X block dimension specified in work-items.\n @param [in] blockDimY      Y block dimension specified in work-items.\n @param [in] blockDimZ      Z block dimension specified in work-items.\n @param [in] sharedMemBytes Amount of dynamic shared memory to allocate for this kernel. The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream         Stream where the kernel should be dispatched. May be 0,\n in which case the default stream is used with associated synchronization rules.\n @param [in] kernelParams   A list of kernel arguments.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size \\f$ gridDim \\cdot blockDim \\geq 2^{32} \\f$.\n\n @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidHandle, #hipErrorInvalidImage, #hipErrorInvalidValue,\n #hipErrorInvalidConfiguration, #hipErrorLaunchFailure, #hipErrorLaunchOutOfResources,\n #hipErrorLaunchTimeOut, #hipErrorCooperativeLaunchTooLarge, #hipErrorSharedObjectInitFailed"]
6691    pub fn hipModuleLaunchCooperativeKernel(
6692        f: hipFunction_t,
6693        gridDimX: ::std::os::raw::c_uint,
6694        gridDimY: ::std::os::raw::c_uint,
6695        gridDimZ: ::std::os::raw::c_uint,
6696        blockDimX: ::std::os::raw::c_uint,
6697        blockDimY: ::std::os::raw::c_uint,
6698        blockDimZ: ::std::os::raw::c_uint,
6699        sharedMemBytes: ::std::os::raw::c_uint,
6700        stream: hipStream_t,
6701        kernelParams: *mut *mut ::std::os::raw::c_void,
6702    ) -> hipError_t;
6703}
6704extern "C" {
6705    #[doc = " @brief Launches kernels on multiple devices where thread blocks can cooperate and\n synchronize as they execute.\n\n @param [in] launchParamsList         List of launch parameters, one per device.\n @param [in] numDevices               Size of the launchParamsList array.\n @param [in] flags                    Flags to control launch behavior.\n\n @returns #hipSuccess, #hipErrorDeinitialized, #hipErrorNotInitialized, #hipErrorInvalidContext,\n #hipErrorInvalidHandle, #hipErrorInvalidImage, #hipErrorInvalidValue,\n #hipErrorInvalidConfiguration, #hipErrorInvalidResourceHandle, #hipErrorLaunchFailure,\n #hipErrorLaunchOutOfResources, #hipErrorLaunchTimeOut, #hipErrorCooperativeLaunchTooLarge,\n #hipErrorSharedObjectInitFailed"]
6706    pub fn hipModuleLaunchCooperativeKernelMultiDevice(
6707        launchParamsList: *mut hipFunctionLaunchParams,
6708        numDevices: ::std::os::raw::c_uint,
6709        flags: ::std::os::raw::c_uint,
6710    ) -> hipError_t;
6711}
6712extern "C" {
6713    #[doc = " @brief Launches kernel f with launch parameters and shared memory on stream with arguments passed\n to kernelparams or extra, where thread blocks can cooperate and synchronize as they execute.\n\n @param [in] f - Kernel to launch.\n @param [in] gridDim - Grid dimensions specified as multiple of blockDim.\n @param [in] blockDimX - Block dimensions specified in work-items\n @param [in] kernelParams - Pointer of arguments passed to the kernel. If the kernel has multiple\n parameters, 'kernelParams' should be array of pointers, each points the corresponding argument.\n @param [in] sharedMemBytes - Amount of dynamic shared memory to allocate for this kernel. The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream - Stream where the kernel should be dispatched.  May be 0, in which case th\n default stream is used with associated synchronization rules.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size \\f$ gridDim \\cdot blockDim \\geq 2^{32} \\f$.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue,\n #hipErrorCooperativeLaunchTooLarge"]
6714    pub fn hipLaunchCooperativeKernel(
6715        f: *const ::std::os::raw::c_void,
6716        gridDim: dim3,
6717        blockDimX: dim3,
6718        kernelParams: *mut *mut ::std::os::raw::c_void,
6719        sharedMemBytes: ::std::os::raw::c_uint,
6720        stream: hipStream_t,
6721    ) -> hipError_t;
6722}
6723extern "C" {
6724    #[doc = " @brief Launches kernels on multiple devices where thread blocks can cooperate and\n synchronize as they execute.\n\n @param [in] launchParamsList         List of launch parameters, one per device.\n @param [in] numDevices               Size of the launchParamsList array.\n @param [in] flags                    Flags to control launch behavior.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue,\n  #hipErrorCooperativeLaunchTooLarge"]
6725    pub fn hipLaunchCooperativeKernelMultiDevice(
6726        launchParamsList: *mut hipLaunchParams,
6727        numDevices: ::std::os::raw::c_int,
6728        flags: ::std::os::raw::c_uint,
6729    ) -> hipError_t;
6730}
6731extern "C" {
6732    #[doc = " @brief Launches kernels on multiple devices and guarantees all specified kernels are dispatched\n on respective streams before enqueuing any other work on the specified streams from any other threads\n @ingroup Execution\n @param [in] launchParamsList          List of launch parameters, one per device.\n @param [in] numDevices               Size of the launchParamsList array.\n @param [in] flags                    Flags to control launch behavior.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue"]
6733    pub fn hipExtLaunchMultiKernelMultiDevice(
6734        launchParamsList: *mut hipLaunchParams,
6735        numDevices: ::std::os::raw::c_int,
6736        flags: ::std::os::raw::c_uint,
6737    ) -> hipError_t;
6738}
6739extern "C" {
6740    #[doc = "-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup Occupancy Occupancy\n  @{\n  This section describes the occupancy functions of HIP runtime API.\n\n/\n/**\n @brief determine the grid and block sizes to achieves maximum occupancy for a kernel\n\n @param [out] gridSize           minimum grid size for maximum potential occupancy\n @param [out] blockSize          block size for maximum potential occupancy\n @param [in]  f                  kernel function for which occupancy is calulated\n @param [in]  dynSharedMemPerBlk dynamic shared memory usage (in bytes) intended for each block\n @param [in]  blockSizeLimit     the maximum block size for the kernel, use 0 for no limit\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
6741    pub fn hipModuleOccupancyMaxPotentialBlockSize(
6742        gridSize: *mut ::std::os::raw::c_int,
6743        blockSize: *mut ::std::os::raw::c_int,
6744        f: hipFunction_t,
6745        dynSharedMemPerBlk: usize,
6746        blockSizeLimit: ::std::os::raw::c_int,
6747    ) -> hipError_t;
6748}
6749extern "C" {
6750    #[doc = " @brief determine the grid and block sizes to achieves maximum occupancy for a kernel\n\n @param [out] gridSize           minimum grid size for maximum potential occupancy\n @param [out] blockSize          block size for maximum potential occupancy\n @param [in]  f                  kernel function for which occupancy is calulated\n @param [in]  dynSharedMemPerBlk dynamic shared memory usage (in bytes) intended for each block\n @param [in]  blockSizeLimit     the maximum block size for the kernel, use 0 for no limit\n @param [in]  flags            Extra flags for occupancy calculation (only default supported)\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
6751    pub fn hipModuleOccupancyMaxPotentialBlockSizeWithFlags(
6752        gridSize: *mut ::std::os::raw::c_int,
6753        blockSize: *mut ::std::os::raw::c_int,
6754        f: hipFunction_t,
6755        dynSharedMemPerBlk: usize,
6756        blockSizeLimit: ::std::os::raw::c_int,
6757        flags: ::std::os::raw::c_uint,
6758    ) -> hipError_t;
6759}
6760extern "C" {
6761    #[doc = " @brief Returns occupancy for a device function.\n\n @param [out] numBlocks        Returned occupancy\n @param [in]  f                Kernel function (hipFunction) for which occupancy is calulated\n @param [in]  blockSize        Block size the kernel is intended to be launched with\n @param [in]  dynSharedMemPerBlk Dynamic shared memory usage (in bytes) intended for each block\n @returns  #hipSuccess, #hipErrorInvalidValue"]
6762    pub fn hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(
6763        numBlocks: *mut ::std::os::raw::c_int,
6764        f: hipFunction_t,
6765        blockSize: ::std::os::raw::c_int,
6766        dynSharedMemPerBlk: usize,
6767    ) -> hipError_t;
6768}
6769extern "C" {
6770    #[doc = " @brief Returns occupancy for a device function.\n\n @param [out] numBlocks        Returned occupancy\n @param [in]  f                Kernel function(hipFunction_t) for which occupancy is calulated\n @param [in]  blockSize        Block size the kernel is intended to be launched with\n @param [in]  dynSharedMemPerBlk Dynamic shared memory usage (in bytes) intended for each block\n @param [in]  flags            Extra flags for occupancy calculation (only default supported)\n @returns  #hipSuccess, #hipErrorInvalidValue"]
6771    pub fn hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
6772        numBlocks: *mut ::std::os::raw::c_int,
6773        f: hipFunction_t,
6774        blockSize: ::std::os::raw::c_int,
6775        dynSharedMemPerBlk: usize,
6776        flags: ::std::os::raw::c_uint,
6777    ) -> hipError_t;
6778}
6779extern "C" {
6780    #[doc = " @brief Returns occupancy for a device function.\n\n @param [out] numBlocks        Returned occupancy\n @param [in]  f                Kernel function for which occupancy is calulated\n @param [in]  blockSize        Block size the kernel is intended to be launched with\n @param [in]  dynSharedMemPerBlk Dynamic shared memory usage (in bytes) intended for each block\n @returns  #hipSuccess, #hipErrorInvalidDeviceFunction, #hipErrorInvalidValue"]
6781    pub fn hipOccupancyMaxActiveBlocksPerMultiprocessor(
6782        numBlocks: *mut ::std::os::raw::c_int,
6783        f: *const ::std::os::raw::c_void,
6784        blockSize: ::std::os::raw::c_int,
6785        dynSharedMemPerBlk: usize,
6786    ) -> hipError_t;
6787}
6788extern "C" {
6789    #[doc = " @brief Returns occupancy for a device function.\n\n @param [out] numBlocks        Returned occupancy\n @param [in]  f                Kernel function for which occupancy is calulated\n @param [in]  blockSize        Block size the kernel is intended to be launched with\n @param [in]  dynSharedMemPerBlk Dynamic shared memory usage (in bytes) intended for each block\n @param [in]  flags            Extra flags for occupancy calculation (currently ignored)\n @returns  #hipSuccess, #hipErrorInvalidDeviceFunction, #hipErrorInvalidValue"]
6790    pub fn hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
6791        numBlocks: *mut ::std::os::raw::c_int,
6792        f: *const ::std::os::raw::c_void,
6793        blockSize: ::std::os::raw::c_int,
6794        dynSharedMemPerBlk: usize,
6795        flags: ::std::os::raw::c_uint,
6796    ) -> hipError_t;
6797}
6798extern "C" {
6799    #[doc = " @brief determine the grid and block sizes to achieves maximum occupancy for a kernel\n\n @param [out] gridSize           minimum grid size for maximum potential occupancy\n @param [out] blockSize          block size for maximum potential occupancy\n @param [in]  f                  kernel function for which occupancy is calulated\n @param [in]  dynSharedMemPerBlk dynamic shared memory usage (in bytes) intended for each block\n @param [in]  blockSizeLimit     the maximum block size for the kernel, use 0 for no limit\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
6800    pub fn hipOccupancyMaxPotentialBlockSize(
6801        gridSize: *mut ::std::os::raw::c_int,
6802        blockSize: *mut ::std::os::raw::c_int,
6803        f: *const ::std::os::raw::c_void,
6804        dynSharedMemPerBlk: usize,
6805        blockSizeLimit: ::std::os::raw::c_int,
6806    ) -> hipError_t;
6807}
6808extern "C" {
6809    #[doc = " @brief Start recording of profiling information [Deprecated]\n When using this API, start the profiler with profiling disabled.  (--startdisabled)\n @returns  #hipErrorNotSupported\n @warning hipProfilerStart API is deprecated, use roctracer/rocTX instead."]
6810    pub fn hipProfilerStart() -> hipError_t;
6811}
6812extern "C" {
6813    #[doc = " @brief Stop recording of profiling information [Deprecated]\n When using this API, start the profiler with profiling disabled.  (--startdisabled)\n @returns  #hipErrorNotSupported\n @warning  hipProfilerStart API is deprecated, use roctracer/rocTX instead."]
6814    pub fn hipProfilerStop() -> hipError_t;
6815}
6816extern "C" {
6817    #[doc = " @}\n/\n/**\n-------------------------------------------------------------------------------------------------\n-------------------------------------------------------------------------------------------------\n  @defgroup Clang Launch API to support the triple-chevron syntax\n  @{\n  This section describes the API to support the triple-chevron syntax.\n/\n/**\n @brief Configure a kernel launch.\n\n @param [in] gridDim   grid dimension specified as multiple of blockDim.\n @param [in] blockDim  block dimensions specified in work-items\n @param [in] sharedMem Amount of dynamic shared memory to allocate for this kernel. The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream    Stream where the kernel should be dispatched.  May be 0, in which case the\n default stream is used with associated synchronization rules.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue\n"]
6818    pub fn hipConfigureCall(
6819        gridDim: dim3,
6820        blockDim: dim3,
6821        sharedMem: usize,
6822        stream: hipStream_t,
6823    ) -> hipError_t;
6824}
6825extern "C" {
6826    #[doc = " @brief Set a kernel argument.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue\n\n @param [in] arg    Pointer the argument in host memory.\n @param [in] size   Size of the argument.\n @param [in] offset Offset of the argument on the argument stack.\n"]
6827    pub fn hipSetupArgument(
6828        arg: *const ::std::os::raw::c_void,
6829        size: usize,
6830        offset: usize,
6831    ) -> hipError_t;
6832}
6833extern "C" {
6834    #[doc = " @brief Launch a kernel.\n\n @param [in] func Kernel to launch.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue\n"]
6835    pub fn hipLaunchByPtr(func: *const ::std::os::raw::c_void) -> hipError_t;
6836}
6837extern "C" {
6838    #[doc = " @brief Push configuration of a kernel launch.\n\n @param [in] gridDim   grid dimension specified as multiple of blockDim.\n @param [in] blockDim  block dimensions specified in work-items\n @param [in] sharedMem Amount of dynamic shared memory to allocate for this kernel. The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream    Stream where the kernel should be dispatched.  May be 0, in which case the\n default stream is used with associated synchronization rules.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue\n"]
6839    pub fn __hipPushCallConfiguration(
6840        gridDim: dim3,
6841        blockDim: dim3,
6842        sharedMem: usize,
6843        stream: hipStream_t,
6844    ) -> hipError_t;
6845}
6846extern "C" {
6847    #[doc = " @brief Pop configuration of a kernel launch.\n\n @param [out] gridDim   grid dimension specified as multiple of blockDim.\n @param [out] blockDim  block dimensions specified in work-items\n @param [out] sharedMem Amount of dynamic shared memory to allocate for this kernel.  The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [out] stream    Stream where the kernel should be dispatched.  May be 0, in which case the\n default stream is used with associated synchronization rules.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n Please note, HIP does not support kernel launch with total work items defined in dimension with\n size gridDim x blockDim >= 2^32.\n\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue\n"]
6848    pub fn __hipPopCallConfiguration(
6849        gridDim: *mut dim3,
6850        blockDim: *mut dim3,
6851        sharedMem: *mut usize,
6852        stream: *mut hipStream_t,
6853    ) -> hipError_t;
6854}
6855extern "C" {
6856    #[doc = " @brief C compliant kernel launch API\n\n @param [in] function_address - Kernel stub function pointer.\n @param [in] numBlocks - Number of blocks.\n @param [in] dimBlocks - Dimension of a block\n @param [in] args - Pointer of arguments passed to the kernel. If the kernel has multiple\n parameters, 'args' should be array of pointers, each points the corresponding argument.\n @param [in] sharedMemBytes - Amount of dynamic shared memory to allocate for this kernel. The\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream - Stream where the kernel should be dispatched.  May be 0, in which case th\n  default stream is used with associated synchronization rules.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6857    pub fn hipLaunchKernel(
6858        function_address: *const ::std::os::raw::c_void,
6859        numBlocks: dim3,
6860        dimBlocks: dim3,
6861        args: *mut *mut ::std::os::raw::c_void,
6862        sharedMemBytes: usize,
6863        stream: hipStream_t,
6864    ) -> hipError_t;
6865}
6866extern "C" {
6867    #[doc = " @brief Enqueues a host function call in a stream.\n\n @param [in] stream - The stream to enqueue work in.\n @param [in] fn - The function to call once enqueued preceeding operations are complete.\n @param [in] userData - User-specified data to be passed to the function.\n\n @returns #hipSuccess, #hipErrorInvalidResourceHandle, #hipErrorInvalidValue,\n #hipErrorNotSupported\n\n The host function to call in this API will be executed after the preceding operations in\n the stream are complete. The function is a blocking operation that blocks operations in the\n stream that follow it, until the function is returned.\n Event synchronization and internal callback functions make sure enqueued operations will\n execute in order, in the stream.\n\n The host function must not make any HIP API calls. The host function is non-reentrant. It must\n not perform sychronization with any operation that may depend on other processing execution\n but is not enqueued to run earlier in the stream.\n\n Host functions that are enqueued respectively in different non-blocking streams can run concurrently.\n\n @warning  This API is marked as beta, meaning, while this is feature complete,\n it is still open to changes and may have outstanding issues."]
6868    pub fn hipLaunchHostFunc(
6869        stream: hipStream_t,
6870        fn_: hipHostFn_t,
6871        userData: *mut ::std::os::raw::c_void,
6872    ) -> hipError_t;
6873}
6874extern "C" {
6875    #[doc = " Copies memory for 2D arrays.\n\n @param pCopy           - Parameters for the memory copy\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
6876    pub fn hipDrvMemcpy2DUnaligned(pCopy: *const hip_Memcpy2D) -> hipError_t;
6877}
6878extern "C" {
6879    #[doc = " @brief Launches kernel from the pointer address, with arguments and shared memory on stream.\n\n @param [in] function_address - Pointer to the Kernel to launch.\n @param [in] numBlocks -  Number of blocks.\n @param [in] dimBlocks - Dimension of a block.\n @param [in] args - Pointer of arguments passed to the kernel. If the kernel has multiple\n parameters, 'args' should be array of pointers, each points the corresponding argument.\n @param [in] sharedMemBytes - Amount of dynamic shared memory to allocate for this kernel.\n HIP-Clang compiler provides support for extern shared declarations.\n @param [in] stream - Stream where the kernel should be dispatched.\n May be 0, in which case the default stream is used with associated synchronization rules.\n @param [in] startEvent - If non-null, specified event will be updated to track the start time of\n the kernel launch. The event must be created before calling this API.\n @param [in] stopEvent - If non-null, specified event will be updated to track the stop time of\n the kernel launch. The event must be created before calling this API.\n @param [in] flags - The value of hipExtAnyOrderLaunch, signifies if kernel can be\n launched in any order.\n @returns #hipSuccess, #hipErrorNotInitialized, #hipErrorInvalidValue.\n"]
6880    pub fn hipExtLaunchKernel(
6881        function_address: *const ::std::os::raw::c_void,
6882        numBlocks: dim3,
6883        dimBlocks: dim3,
6884        args: *mut *mut ::std::os::raw::c_void,
6885        sharedMemBytes: usize,
6886        stream: hipStream_t,
6887        startEvent: hipEvent_t,
6888        stopEvent: hipEvent_t,
6889        flags: ::std::os::raw::c_int,
6890    ) -> hipError_t;
6891}
6892extern "C" {
6893    #[doc = " @brief Creates a texture object.\n\n @param [out] pTexObject  pointer to the texture object to create\n @param [in] pResDesc  pointer to resource descriptor\n @param [in] pTexDesc  pointer to texture descriptor\n @param [in] pResViewDesc  pointer to resource view descriptor\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported, #hipErrorOutOfMemory\n\n @note 3D liner filter isn't supported on GFX90A boards, on which the API @p hipCreateTextureObject will\n return hipErrorNotSupported.\n"]
6894    pub fn hipCreateTextureObject(
6895        pTexObject: *mut hipTextureObject_t,
6896        pResDesc: *const hipResourceDesc,
6897        pTexDesc: *const hipTextureDesc,
6898        pResViewDesc: *const hipResourceViewDesc,
6899    ) -> hipError_t;
6900}
6901extern "C" {
6902    #[doc = " @brief Destroys a texture object.\n\n @param [in] textureObject  texture object to destroy\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6903    pub fn hipDestroyTextureObject(textureObject: hipTextureObject_t) -> hipError_t;
6904}
6905extern "C" {
6906    #[doc = " @brief Gets the channel descriptor in an array.\n\n @param [in] desc  pointer to channel format descriptor\n @param [out] array  memory array on the device\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6907    pub fn hipGetChannelDesc(
6908        desc: *mut hipChannelFormatDesc,
6909        array: hipArray_const_t,
6910    ) -> hipError_t;
6911}
6912extern "C" {
6913    #[doc = " @brief Gets resource descriptor for the texture object.\n\n @param [out] pResDesc  pointer to resource descriptor\n @param [in] textureObject  texture object\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6914    pub fn hipGetTextureObjectResourceDesc(
6915        pResDesc: *mut hipResourceDesc,
6916        textureObject: hipTextureObject_t,
6917    ) -> hipError_t;
6918}
6919extern "C" {
6920    #[doc = " @brief Gets resource view descriptor for the texture object.\n\n @param [out] pResViewDesc  pointer to resource view descriptor\n @param [in] textureObject  texture object\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6921    pub fn hipGetTextureObjectResourceViewDesc(
6922        pResViewDesc: *mut hipResourceViewDesc,
6923        textureObject: hipTextureObject_t,
6924    ) -> hipError_t;
6925}
6926extern "C" {
6927    #[doc = " @brief Gets texture descriptor for the texture object.\n\n @param [out] pTexDesc  pointer to texture descriptor\n @param [in] textureObject  texture object\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6928    pub fn hipGetTextureObjectTextureDesc(
6929        pTexDesc: *mut hipTextureDesc,
6930        textureObject: hipTextureObject_t,
6931    ) -> hipError_t;
6932}
6933extern "C" {
6934    #[doc = " @brief Creates a texture object.\n\n @param [out] pTexObject  pointer to texture object to create\n @param [in] pResDesc  pointer to resource descriptor\n @param [in] pTexDesc  pointer to texture descriptor\n @param [in] pResViewDesc  pointer to resource view descriptor\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6935    pub fn hipTexObjectCreate(
6936        pTexObject: *mut hipTextureObject_t,
6937        pResDesc: *const HIP_RESOURCE_DESC,
6938        pTexDesc: *const HIP_TEXTURE_DESC,
6939        pResViewDesc: *const HIP_RESOURCE_VIEW_DESC,
6940    ) -> hipError_t;
6941}
6942extern "C" {
6943    #[doc = " @brief Destroys a texture object.\n\n @param [in] texObject  texture object to destroy\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
6944    pub fn hipTexObjectDestroy(texObject: hipTextureObject_t) -> hipError_t;
6945}
6946extern "C" {
6947    #[doc = " @brief Gets resource descriptor of a texture object.\n\n @param [out] pResDesc  pointer to resource descriptor\n @param [in] texObject  texture object\n\n @returns #hipSuccess, #hipErrorNotSupported, #hipErrorInvalidValue\n"]
6948    pub fn hipTexObjectGetResourceDesc(
6949        pResDesc: *mut HIP_RESOURCE_DESC,
6950        texObject: hipTextureObject_t,
6951    ) -> hipError_t;
6952}
6953extern "C" {
6954    #[doc = " @brief Gets resource view descriptor of a texture object.\n\n @param [out] pResViewDesc  pointer to resource view descriptor\n @param [in] texObject  texture object\n\n @returns #hipSuccess, #hipErrorNotSupported, #hipErrorInvalidValue\n"]
6955    pub fn hipTexObjectGetResourceViewDesc(
6956        pResViewDesc: *mut HIP_RESOURCE_VIEW_DESC,
6957        texObject: hipTextureObject_t,
6958    ) -> hipError_t;
6959}
6960extern "C" {
6961    #[doc = " @brief Gets texture descriptor of a texture object.\n\n @param [out] pTexDesc  pointer to texture descriptor\n @param [in] texObject  texture object\n\n @returns #hipSuccess, #hipErrorNotSupported, #hipErrorInvalidValue\n"]
6962    pub fn hipTexObjectGetTextureDesc(
6963        pTexDesc: *mut HIP_TEXTURE_DESC,
6964        texObject: hipTextureObject_t,
6965    ) -> hipError_t;
6966}
6967extern "C" {
6968    #[doc = " @brief Allocate a mipmapped array on the device.\n\n @param[out] mipmappedArray  - Pointer to allocated mipmapped array in device memory\n @param[in]  desc            - Requested channel format\n @param[in]  extent          - Requested allocation size (width field in elements)\n @param[in]  numLevels       - Number of mipmap levels to allocate\n @param[in]  flags           - Flags for extensions\n\n @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryAllocation\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows.\n"]
6969    pub fn hipMallocMipmappedArray(
6970        mipmappedArray: *mut hipMipmappedArray_t,
6971        desc: *const hipChannelFormatDesc,
6972        extent: hipExtent,
6973        numLevels: ::std::os::raw::c_uint,
6974        flags: ::std::os::raw::c_uint,
6975    ) -> hipError_t;
6976}
6977extern "C" {
6978    #[doc = " @brief Frees a mipmapped array on the device.\n\n @param[in] mipmappedArray - Pointer to mipmapped array to free\n\n @return #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows.\n"]
6979    pub fn hipFreeMipmappedArray(mipmappedArray: hipMipmappedArray_t) -> hipError_t;
6980}
6981extern "C" {
6982    #[doc = " @brief Gets a mipmap level of a HIP mipmapped array.\n\n @param[out] levelArray     - Returned mipmap level HIP array\n @param[in]  mipmappedArray - HIP mipmapped array\n @param[in]  level          - Mipmap level\n\n @return #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows.\n"]
6983    pub fn hipGetMipmappedArrayLevel(
6984        levelArray: *mut hipArray_t,
6985        mipmappedArray: hipMipmappedArray_const_t,
6986        level: ::std::os::raw::c_uint,
6987    ) -> hipError_t;
6988}
6989extern "C" {
6990    #[doc = " @brief Create a mipmapped array.\n\n @param [out] pHandle  pointer to mipmapped array\n @param [in] pMipmappedArrayDesc  mipmapped array descriptor\n @param [in] numMipmapLevels  mipmap level\n\n @returns #hipSuccess, #hipErrorNotSupported, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
6991    pub fn hipMipmappedArrayCreate(
6992        pHandle: *mut hipMipmappedArray_t,
6993        pMipmappedArrayDesc: *mut HIP_ARRAY3D_DESCRIPTOR,
6994        numMipmapLevels: ::std::os::raw::c_uint,
6995    ) -> hipError_t;
6996}
6997extern "C" {
6998    #[doc = " @brief Destroy a mipmapped array.\n\n @param [out] hMipmappedArray  pointer to mipmapped array to destroy\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows.\n"]
6999    pub fn hipMipmappedArrayDestroy(hMipmappedArray: hipMipmappedArray_t) -> hipError_t;
7000}
7001extern "C" {
7002    #[doc = " @brief Get a mipmapped array on a mipmapped level.\n\n @param [in] pLevelArray Pointer of array\n @param [out] hMipMappedArray Pointer of mipmapped array on the requested mipmap level\n @param [out] level  Mipmap level\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows.\n"]
7003    pub fn hipMipmappedArrayGetLevel(
7004        pLevelArray: *mut hipArray_t,
7005        hMipMappedArray: hipMipmappedArray_t,
7006        level: ::std::os::raw::c_uint,
7007    ) -> hipError_t;
7008}
7009extern "C" {
7010    #[doc = " @brief  Binds a mipmapped array to a texture [Deprecated]\n\n @param [in] tex  pointer to the texture reference to bind\n @param [in] mipmappedArray memory mipmapped array on the device\n @param [in] desc  opointer to the channel format\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
7011    pub fn hipBindTextureToMipmappedArray(
7012        tex: *const textureReference,
7013        mipmappedArray: hipMipmappedArray_const_t,
7014        desc: *const hipChannelFormatDesc,
7015    ) -> hipError_t;
7016}
7017extern "C" {
7018    #[doc = " @brief Gets the texture reference related with the symbol [Deprecated]\n\n @param [out] texref  texture reference\n @param [in] symbol  pointer to the symbol related with the texture for the reference\n\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is deprecated.\n"]
7019    pub fn hipGetTextureReference(
7020        texref: *mut *const textureReference,
7021        symbol: *const ::std::os::raw::c_void,
7022    ) -> hipError_t;
7023}
7024extern "C" {
7025    #[doc = " @brief Gets the border color used by a texture reference [Deprecated]\n\n @param [out] pBorderColor  Returned Type and Value of RGBA color.\n @param [in] texRef  Texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is deprecated.\n"]
7026    pub fn hipTexRefGetBorderColor(
7027        pBorderColor: *mut f32,
7028        texRef: *const textureReference,
7029    ) -> hipError_t;
7030}
7031extern "C" {
7032    #[doc = " @brief Gets the array bound to a texture reference [Deprecated]\n\n\n @param [in] pArray  Returned array.\n @param [in] texRef  texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is deprecated.\n"]
7033    pub fn hipTexRefGetArray(
7034        pArray: *mut hipArray_t,
7035        texRef: *const textureReference,
7036    ) -> hipError_t;
7037}
7038extern "C" {
7039    #[doc = " @brief Sets address mode for a texture reference [Deprecated]\n\n @param [in] texRef  texture reference.\n @param [in] dim  Dimension of the texture.\n @param [in] am  Value of the texture address mode.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is deprecated.\n"]
7040    pub fn hipTexRefSetAddressMode(
7041        texRef: *mut textureReference,
7042        dim: ::std::os::raw::c_int,
7043        am: hipTextureAddressMode,
7044    ) -> hipError_t;
7045}
7046extern "C" {
7047    #[doc = " @brief Binds an array as a texture reference [Deprecated]\n\n @param [in] tex  Pointer texture reference.\n @param [in] array  Array to bind.\n @param [in] flags  Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is deprecated.\n"]
7048    pub fn hipTexRefSetArray(
7049        tex: *mut textureReference,
7050        array: hipArray_const_t,
7051        flags: ::std::os::raw::c_uint,
7052    ) -> hipError_t;
7053}
7054extern "C" {
7055    #[doc = " @brief Set filter mode for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer texture reference.\n @param [in] fm  Value of texture filter mode.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is deprecated.\n"]
7056    pub fn hipTexRefSetFilterMode(
7057        texRef: *mut textureReference,
7058        fm: hipTextureFilterMode,
7059    ) -> hipError_t;
7060}
7061extern "C" {
7062    #[doc = " @brief Set flags for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer texture reference.\n @param [in] Flags  Value of flags.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is deprecated.\n"]
7063    pub fn hipTexRefSetFlags(
7064        texRef: *mut textureReference,
7065        Flags: ::std::os::raw::c_uint,
7066    ) -> hipError_t;
7067}
7068extern "C" {
7069    #[doc = " @brief Set format for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer texture reference.\n @param [in] fmt  Value of format.\n @param [in] NumPackedComponents  Number of components per array.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is deprecated.\n"]
7070    pub fn hipTexRefSetFormat(
7071        texRef: *mut textureReference,
7072        fmt: hipArray_Format,
7073        NumPackedComponents: ::std::os::raw::c_int,
7074    ) -> hipError_t;
7075}
7076extern "C" {
7077    #[doc = " @brief Binds a memory area to a texture [Deprecated]\n\n @param [in] offset  Offset in bytes.\n @param [in] tex  Texture to bind.\n @param [in] devPtr  Pointer of memory on the device.\n @param [in] desc  Pointer of channel format descriptor.\n @param [in] size  Size of memory in bites.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7078    pub fn hipBindTexture(
7079        offset: *mut usize,
7080        tex: *const textureReference,
7081        devPtr: *const ::std::os::raw::c_void,
7082        desc: *const hipChannelFormatDesc,
7083        size: usize,
7084    ) -> hipError_t;
7085}
7086extern "C" {
7087    #[doc = " @brief Binds a 2D memory area to a texture [Deprecated]\n\n @param [in] offset  Offset in bytes.\n @param [in] tex  Texture to bind.\n @param [in] devPtr  Pointer of 2D memory area on the device.\n @param [in] desc  Pointer of channel format descriptor.\n @param [in] width  Width in texel units.\n @param [in] height  Height in texel units.\n @param [in] pitch  Pitch in bytes.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7088    pub fn hipBindTexture2D(
7089        offset: *mut usize,
7090        tex: *const textureReference,
7091        devPtr: *const ::std::os::raw::c_void,
7092        desc: *const hipChannelFormatDesc,
7093        width: usize,
7094        height: usize,
7095        pitch: usize,
7096    ) -> hipError_t;
7097}
7098extern "C" {
7099    #[doc = " @brief Binds a memory area to a texture [Deprecated]\n\n @param [in] tex  Pointer of texture reference.\n @param [in] array  Array to bind.\n @param [in] desc  Pointer of channel format descriptor.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7100    pub fn hipBindTextureToArray(
7101        tex: *const textureReference,
7102        array: hipArray_const_t,
7103        desc: *const hipChannelFormatDesc,
7104    ) -> hipError_t;
7105}
7106extern "C" {
7107    #[doc = " @brief Get the offset of the alignment in a texture [Deprecated]\n\n @param [in] offset  Offset in bytes.\n @param [in] texref  Pointer of texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7108    pub fn hipGetTextureAlignmentOffset(
7109        offset: *mut usize,
7110        texref: *const textureReference,
7111    ) -> hipError_t;
7112}
7113extern "C" {
7114    #[doc = " @brief Unbinds a texture [Deprecated]\n\n @param [in] tex  Texture to unbind.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7115    pub fn hipUnbindTexture(tex: *const textureReference) -> hipError_t;
7116}
7117extern "C" {
7118    #[doc = " @brief Gets the address for a texture reference [Deprecated]\n\n @param [out] dev_ptr  Pointer of device address.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7119    pub fn hipTexRefGetAddress(
7120        dev_ptr: *mut hipDeviceptr_t,
7121        texRef: *const textureReference,
7122    ) -> hipError_t;
7123}
7124extern "C" {
7125    #[doc = " @brief Gets the address mode for a texture reference [Deprecated]\n\n @param [out] pam  Pointer of address mode.\n @param [in] texRef  Pointer of texture reference.\n @param [in] dim  Dimension.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7126    pub fn hipTexRefGetAddressMode(
7127        pam: *mut hipTextureAddressMode,
7128        texRef: *const textureReference,
7129        dim: ::std::os::raw::c_int,
7130    ) -> hipError_t;
7131}
7132extern "C" {
7133    #[doc = " @brief Gets filter mode for a texture reference [Deprecated]\n\n @param [out] pfm  Pointer of filter mode.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7134    pub fn hipTexRefGetFilterMode(
7135        pfm: *mut hipTextureFilterMode,
7136        texRef: *const textureReference,
7137    ) -> hipError_t;
7138}
7139extern "C" {
7140    #[doc = " @brief Gets flags for a texture reference [Deprecated]\n\n @param [out] pFlags  Pointer of flags.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7141    pub fn hipTexRefGetFlags(
7142        pFlags: *mut ::std::os::raw::c_uint,
7143        texRef: *const textureReference,
7144    ) -> hipError_t;
7145}
7146extern "C" {
7147    #[doc = " @brief Gets texture format for a texture reference [Deprecated]\n\n @param [out] pFormat  Pointer of the format.\n @param [out] pNumChannels  Pointer of number of channels.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7148    pub fn hipTexRefGetFormat(
7149        pFormat: *mut hipArray_Format,
7150        pNumChannels: *mut ::std::os::raw::c_int,
7151        texRef: *const textureReference,
7152    ) -> hipError_t;
7153}
7154extern "C" {
7155    #[doc = " @brief Gets the maximum anisotropy for a texture reference [Deprecated]\n\n @param [out] pmaxAnsio  Pointer of the maximum anisotropy.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7156    pub fn hipTexRefGetMaxAnisotropy(
7157        pmaxAnsio: *mut ::std::os::raw::c_int,
7158        texRef: *const textureReference,
7159    ) -> hipError_t;
7160}
7161extern "C" {
7162    #[doc = " @brief Gets the mipmap filter mode for a texture reference [Deprecated]\n\n @param [out] pfm  Pointer of the mipmap filter mode.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7163    pub fn hipTexRefGetMipmapFilterMode(
7164        pfm: *mut hipTextureFilterMode,
7165        texRef: *const textureReference,
7166    ) -> hipError_t;
7167}
7168extern "C" {
7169    #[doc = " @brief Gets the mipmap level bias for a texture reference [Deprecated]\n\n @param [out] pbias  Pointer of the mipmap level bias.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7170    pub fn hipTexRefGetMipmapLevelBias(
7171        pbias: *mut f32,
7172        texRef: *const textureReference,
7173    ) -> hipError_t;
7174}
7175extern "C" {
7176    #[doc = " @brief Gets the minimum and maximum mipmap level clamps for a texture reference [Deprecated]\n\n @param [out] pminMipmapLevelClamp  Pointer of the minimum mipmap level clamp.\n @param [out] pmaxMipmapLevelClamp  Pointer of the maximum mipmap level clamp.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7177    pub fn hipTexRefGetMipmapLevelClamp(
7178        pminMipmapLevelClamp: *mut f32,
7179        pmaxMipmapLevelClamp: *mut f32,
7180        texRef: *const textureReference,
7181    ) -> hipError_t;
7182}
7183extern "C" {
7184    #[doc = " @brief Gets the mipmapped array bound to a texture reference [Deprecated]\n\n @param [out] pArray  Pointer of the mipmapped array.\n @param [in] texRef  Pointer of texture reference.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7185    pub fn hipTexRefGetMipMappedArray(
7186        pArray: *mut hipMipmappedArray_t,
7187        texRef: *const textureReference,
7188    ) -> hipError_t;
7189}
7190extern "C" {
7191    #[doc = " @brief Sets an bound address for a texture reference [Deprecated]\n\n @param [out] ByteOffset  Pointer of the offset in bytes.\n @param [in] texRef  Pointer of texture reference.\n @param [in] dptr  Pointer of device address to bind.\n @param [in] bytes  Size in bytes.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is deprecated.\n"]
7192    pub fn hipTexRefSetAddress(
7193        ByteOffset: *mut usize,
7194        texRef: *mut textureReference,
7195        dptr: hipDeviceptr_t,
7196        bytes: usize,
7197    ) -> hipError_t;
7198}
7199extern "C" {
7200    #[doc = " @brief Set a bind an address as a 2D texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference.\n @param [in] desc  Pointer of array descriptor.\n @param [in] dptr  Pointer of device address to bind.\n @param [in] Pitch  Pitch in bytes.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7201    pub fn hipTexRefSetAddress2D(
7202        texRef: *mut textureReference,
7203        desc: *const HIP_ARRAY_DESCRIPTOR,
7204        dptr: hipDeviceptr_t,
7205        Pitch: usize,
7206    ) -> hipError_t;
7207}
7208extern "C" {
7209    #[doc = " @brief Sets the maximum anisotropy for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference.\n @param [out] maxAniso  Value of the maximum anisotropy.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7210    pub fn hipTexRefSetMaxAnisotropy(
7211        texRef: *mut textureReference,
7212        maxAniso: ::std::os::raw::c_uint,
7213    ) -> hipError_t;
7214}
7215extern "C" {
7216    #[doc = " @brief Sets border color for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference.\n @param [in] pBorderColor  Pointer of border color.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7217    pub fn hipTexRefSetBorderColor(
7218        texRef: *mut textureReference,
7219        pBorderColor: *mut f32,
7220    ) -> hipError_t;
7221}
7222extern "C" {
7223    #[doc = " @brief Sets mipmap filter mode for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference.\n @param [in] fm  Value of filter mode.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7224    pub fn hipTexRefSetMipmapFilterMode(
7225        texRef: *mut textureReference,
7226        fm: hipTextureFilterMode,
7227    ) -> hipError_t;
7228}
7229extern "C" {
7230    #[doc = " @brief Sets mipmap level bias for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference.\n @param [in] bias  Value of mipmap bias.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7231    pub fn hipTexRefSetMipmapLevelBias(texRef: *mut textureReference, bias: f32) -> hipError_t;
7232}
7233extern "C" {
7234    #[doc = " @brief Sets mipmap level clamp for a texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference.\n @param [in] minMipMapLevelClamp  Value of minimum mipmap level clamp.\n @param [in] maxMipMapLevelClamp  Value of maximum mipmap level clamp.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n\n @warning This API is deprecated.\n"]
7235    pub fn hipTexRefSetMipmapLevelClamp(
7236        texRef: *mut textureReference,
7237        minMipMapLevelClamp: f32,
7238        maxMipMapLevelClamp: f32,
7239    ) -> hipError_t;
7240}
7241extern "C" {
7242    #[doc = " @brief Binds mipmapped array to a texture reference [Deprecated]\n\n @param [in] texRef  Pointer of texture reference to bind.\n @param [in] mipmappedArray  Pointer of mipmapped array to bind.\n @param [in] Flags  Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is deprecated.\n"]
7243    pub fn hipTexRefSetMipmappedArray(
7244        texRef: *mut textureReference,
7245        mipmappedArray: *mut hipMipmappedArray,
7246        Flags: ::std::os::raw::c_uint,
7247    ) -> hipError_t;
7248}
7249extern "C" {
7250    #[doc = "  @defgroup Callback Callback Activity APIs\n  @{\n  This section describes the callback/Activity of HIP runtime API.\n/\n/**\n @brief Returns HIP API name by ID.\n\n @param [in] id ID of HIP API\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
7251    pub fn hipApiName(id: u32) -> *const ::std::os::raw::c_char;
7252}
7253extern "C" {
7254    #[doc = " @brief Returns kernel name reference by function name.\n\n @param [in] f Name of function\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
7255    pub fn hipKernelNameRef(f: hipFunction_t) -> *const ::std::os::raw::c_char;
7256}
7257extern "C" {
7258    #[doc = " @brief Retrives kernel for a given host pointer, unless stated otherwise.\n\n @param [in] hostFunction Pointer of host function.\n @param [in] stream Stream the kernel is executed on.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
7259    pub fn hipKernelNameRefByPtr(
7260        hostFunction: *const ::std::os::raw::c_void,
7261        stream: hipStream_t,
7262    ) -> *const ::std::os::raw::c_char;
7263}
7264extern "C" {
7265    #[doc = " @brief Returns device ID on the stream.\n\n @param [in] stream Stream of device executed on.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
7266    pub fn hipGetStreamDeviceId(stream: hipStream_t) -> ::std::os::raw::c_int;
7267}
7268extern "C" {
7269    #[doc = " @brief Begins graph capture on a stream.\n\n @param [in] stream - Stream to initiate capture.\n @param [in] mode - Controls the interaction of this capture sequence with other API calls that\n are not safe.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7270    pub fn hipStreamBeginCapture(stream: hipStream_t, mode: hipStreamCaptureMode) -> hipError_t;
7271}
7272extern "C" {
7273    #[doc = " @brief Begins graph capture on a stream to an existing graph.\n\n @param [in] stream - Stream to initiate capture.\n @param [in] graph - Graph to capture into.\n @param [in] dependencies - Dependencies of the first node captured in the stream. Can be NULL if\n numDependencies is 0.\n @param [in] dependencyData - Optional array of data associated with each dependency.\n @param [in] numDependencies - Number of dependencies.\n @param [in] mode - Controls the interaction of this capture sequence with other API calls that\nare not safe.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning param \"const hipGraphEdgeData* dependencyData\" is currently not supported and has to be\npassed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still\nopen to changes and may have outstanding issues."]
7274    pub fn hipStreamBeginCaptureToGraph(
7275        stream: hipStream_t,
7276        graph: hipGraph_t,
7277        dependencies: *const hipGraphNode_t,
7278        dependencyData: *const hipGraphEdgeData,
7279        numDependencies: usize,
7280        mode: hipStreamCaptureMode,
7281    ) -> hipError_t;
7282}
7283extern "C" {
7284    #[doc = " @brief Ends capture on a stream, returning the captured graph.\n\n @param [in] stream - Stream to end capture.\n @param [out] pGraph - Captured graph.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7285    pub fn hipStreamEndCapture(stream: hipStream_t, pGraph: *mut hipGraph_t) -> hipError_t;
7286}
7287extern "C" {
7288    #[doc = " @brief Get capture status of a stream.\n\n @param [in] stream - Stream of which to get capture status from.\n @param [out] pCaptureStatus - Returns current capture status.\n @param [out] pId - Unique capture ID.\n\n @returns #hipSuccess, #hipErrorStreamCaptureImplicit\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7289    pub fn hipStreamGetCaptureInfo(
7290        stream: hipStream_t,
7291        pCaptureStatus: *mut hipStreamCaptureStatus,
7292        pId: *mut ::std::os::raw::c_ulonglong,
7293    ) -> hipError_t;
7294}
7295extern "C" {
7296    #[doc = " @brief Get stream's capture state\n\n @param [in] stream - Stream of which to get capture status from.\n @param [out] captureStatus_out - Returns current capture status.\n @param [out] id_out - Unique capture ID.\n @param [out] graph_out - Returns the graph being captured into.\n @param [out] dependencies_out - Pointer to an array of nodes representing the graphs dependencies.\n @param [out] numDependencies_out - Returns size of the array returned in dependencies_out.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorStreamCaptureImplicit\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7297    pub fn hipStreamGetCaptureInfo_v2(
7298        stream: hipStream_t,
7299        captureStatus_out: *mut hipStreamCaptureStatus,
7300        id_out: *mut ::std::os::raw::c_ulonglong,
7301        graph_out: *mut hipGraph_t,
7302        dependencies_out: *mut *const hipGraphNode_t,
7303        numDependencies_out: *mut usize,
7304    ) -> hipError_t;
7305}
7306extern "C" {
7307    #[doc = " @brief Get stream's capture state\n\n @param [in] stream - Stream of which to get capture status from.\n @param [out] pCaptureStatus - Returns current capture status.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorStreamCaptureImplicit\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7308    pub fn hipStreamIsCapturing(
7309        stream: hipStream_t,
7310        pCaptureStatus: *mut hipStreamCaptureStatus,
7311    ) -> hipError_t;
7312}
7313extern "C" {
7314    #[doc = " @brief Update the set of dependencies in a capturing stream\n\n @param [in] stream  Stream that is being captured.\n @param [in] dependencies  Pointer to an array of nodes to add/replace.\n @param [in] numDependencies  Size of the dependencies array.\n @param [in] flags  Flag to update dependency set. Should be one of the values\n in enum #hipStreamUpdateCaptureDependenciesFlags.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorIllegalState\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7315    pub fn hipStreamUpdateCaptureDependencies(
7316        stream: hipStream_t,
7317        dependencies: *mut hipGraphNode_t,
7318        numDependencies: usize,
7319        flags: ::std::os::raw::c_uint,
7320    ) -> hipError_t;
7321}
7322extern "C" {
7323    #[doc = " @brief Swaps the stream capture mode of a thread.\n\n @param [in] mode - Pointer to mode value to swap with the current mode.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7324    pub fn hipThreadExchangeStreamCaptureMode(mode: *mut hipStreamCaptureMode) -> hipError_t;
7325}
7326extern "C" {
7327    #[doc = " @brief Creates a graph\n\n @param [out] pGraph - pointer to graph to create.\n @param [in] flags - flags for graph creation, must be 0.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryAllocation\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7328    pub fn hipGraphCreate(pGraph: *mut hipGraph_t, flags: ::std::os::raw::c_uint) -> hipError_t;
7329}
7330extern "C" {
7331    #[doc = " @brief Destroys a graph\n\n @param [in] graph - instance of graph to destroy.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7332    pub fn hipGraphDestroy(graph: hipGraph_t) -> hipError_t;
7333}
7334extern "C" {
7335    #[doc = " @brief Adds dependency edges to a graph.\n\n @param [in] graph - Instance of the graph to add dependencies to.\n @param [in] from - Pointer to the graph nodes with dependencies to add from.\n @param [in] to - Pointer to the graph nodes to add dependencies to.\n @param [in] numDependencies - Number of dependencies to add.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7336    pub fn hipGraphAddDependencies(
7337        graph: hipGraph_t,
7338        from: *const hipGraphNode_t,
7339        to: *const hipGraphNode_t,
7340        numDependencies: usize,
7341    ) -> hipError_t;
7342}
7343extern "C" {
7344    #[doc = " @brief Removes dependency edges from a graph.\n\n @param [in] graph - Instance of the graph to remove dependencies from.\n @param [in] from - Array of nodes that provide the dependencies.\n @param [in] to - Array of dependent nodes.\n @param [in] numDependencies - Number of dependencies to remove.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7345    pub fn hipGraphRemoveDependencies(
7346        graph: hipGraph_t,
7347        from: *const hipGraphNode_t,
7348        to: *const hipGraphNode_t,
7349        numDependencies: usize,
7350    ) -> hipError_t;
7351}
7352extern "C" {
7353    #[doc = " @brief Returns a graph's dependency edges.\n\n @param [in] graph - Instance of the graph to get the edges from.\n @param [out] from - Pointer to the graph nodes to return edge endpoints.\n @param [out] to - Pointer to the graph nodes to return edge endpoints.\n @param [out] numEdges - Returns number of edges.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n from and to may both be NULL, in which case this function only returns the number of edges in\n numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual\n number of edges, the remaining entries in from and to will be set to NULL, and the number of\n edges actually returned will be written to numEdges.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7354    pub fn hipGraphGetEdges(
7355        graph: hipGraph_t,
7356        from: *mut hipGraphNode_t,
7357        to: *mut hipGraphNode_t,
7358        numEdges: *mut usize,
7359    ) -> hipError_t;
7360}
7361extern "C" {
7362    #[doc = " @brief Returns a graph's nodes.\n\n @param [in] graph - Instance of graph to get the nodes from.\n @param [out] nodes - Pointer to return the  graph nodes.\n @param [out] numNodes - Returns the number of graph nodes.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n nodes may be NULL, in which case this function will return the number of nodes in numNodes.\n Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of\n nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually\n obtained will be returned in numNodes.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7363    pub fn hipGraphGetNodes(
7364        graph: hipGraph_t,
7365        nodes: *mut hipGraphNode_t,
7366        numNodes: *mut usize,
7367    ) -> hipError_t;
7368}
7369extern "C" {
7370    #[doc = " @brief Returns a graph's root nodes.\n\n @param [in] graph - Instance of the graph to get the nodes from.\n @param [out] pRootNodes - Pointer to return the graph's root nodes.\n @param [out] pNumRootNodes - Returns the number of graph's root nodes.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n pRootNodes may be NULL, in which case this function will return the number of root nodes in\n pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher\n than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL,\n and the number of nodes actually obtained will be returned in pNumRootNodes.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7371    pub fn hipGraphGetRootNodes(
7372        graph: hipGraph_t,
7373        pRootNodes: *mut hipGraphNode_t,
7374        pNumRootNodes: *mut usize,
7375    ) -> hipError_t;
7376}
7377extern "C" {
7378    #[doc = " @brief Returns a node's dependencies.\n\n @param [in] node - Graph node to get the dependencies from.\n @param [out] pDependencies - Pointer to return the dependencies.\n @param [out] pNumDependencies -  Returns the number of graph node dependencies.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n pDependencies may be NULL, in which case this function will return the number of dependencies in\n pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is\n higher than the actual number of dependencies, the remaining entries in pDependencies will be set\n to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7379    pub fn hipGraphNodeGetDependencies(
7380        node: hipGraphNode_t,
7381        pDependencies: *mut hipGraphNode_t,
7382        pNumDependencies: *mut usize,
7383    ) -> hipError_t;
7384}
7385extern "C" {
7386    #[doc = " @brief Returns a node's dependent nodes.\n\n @param [in] node - Graph node to get the dependent nodes from.\n @param [out] pDependentNodes - Pointer to return the graph dependent nodes.\n @param [out] pNumDependentNodes - Returns the number of graph node dependent nodes.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n pDependentNodes may be NULL, in which case this function will return the number of dependent nodes\n in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If\n pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in\n pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned\n in pNumDependentNodes.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7387    pub fn hipGraphNodeGetDependentNodes(
7388        node: hipGraphNode_t,
7389        pDependentNodes: *mut hipGraphNode_t,
7390        pNumDependentNodes: *mut usize,
7391    ) -> hipError_t;
7392}
7393extern "C" {
7394    #[doc = " @brief Returns a node's type.\n\n @param [in] node - Node to get type of.\n @param [out] pType - Returns the node's type.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7395    pub fn hipGraphNodeGetType(node: hipGraphNode_t, pType: *mut hipGraphNodeType) -> hipError_t;
7396}
7397extern "C" {
7398    #[doc = " @brief Remove a node from the graph.\n\n @param [in] node - graph node to remove\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7399    pub fn hipGraphDestroyNode(node: hipGraphNode_t) -> hipError_t;
7400}
7401extern "C" {
7402    #[doc = " @brief Clones a graph.\n\n @param [out] pGraphClone - Returns newly created cloned graph.\n @param [in] originalGraph - original graph to clone from.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryAllocation\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7403    pub fn hipGraphClone(pGraphClone: *mut hipGraph_t, originalGraph: hipGraph_t) -> hipError_t;
7404}
7405extern "C" {
7406    #[doc = " @brief Finds a cloned version of a node.\n\n @param [out] pNode - Returns the cloned node.\n @param [in] originalNode - original node handle.\n @param [in] clonedGraph - Cloned graph to query.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7407    pub fn hipGraphNodeFindInClone(
7408        pNode: *mut hipGraphNode_t,
7409        originalNode: hipGraphNode_t,
7410        clonedGraph: hipGraph_t,
7411    ) -> hipError_t;
7412}
7413extern "C" {
7414    #[doc = " @brief Creates an executable graph from a graph\n\n @param [out] pGraphExec - Pointer to instantiated executable graph.\n @param [in] graph - Instance of graph to instantiate.\n @param [out] pErrorNode - Pointer to error node. In case an error occured during\n graph instantiation, it could modify the corresponding node.\n @param [out] pLogBuffer - Pointer to log buffer.\n @param [out] bufferSize - Size of the log buffer.\n\n @returns #hipSuccess, #hipErrorOutOfMemory\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n"]
7415    pub fn hipGraphInstantiate(
7416        pGraphExec: *mut hipGraphExec_t,
7417        graph: hipGraph_t,
7418        pErrorNode: *mut hipGraphNode_t,
7419        pLogBuffer: *mut ::std::os::raw::c_char,
7420        bufferSize: usize,
7421    ) -> hipError_t;
7422}
7423extern "C" {
7424    #[doc = " @brief Creates an executable graph from a graph.\n\n @param [out] pGraphExec - Pointer to instantiated executable graph.\n @param [in] graph - Instance of graph to instantiate.\n @param [in] flags - Flags to control instantiation.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues. It does not support any of\n          flag and is behaving as hipGraphInstantiate."]
7425    pub fn hipGraphInstantiateWithFlags(
7426        pGraphExec: *mut hipGraphExec_t,
7427        graph: hipGraph_t,
7428        flags: ::std::os::raw::c_ulonglong,
7429    ) -> hipError_t;
7430}
7431extern "C" {
7432    #[doc = " @brief Creates an executable graph from a graph.\n\n @param [out] pGraphExec - Pointer to instantiated executable graph.\n @param [in] graph - Instance of graph to instantiate.\n @param [in] instantiateParams - Graph instantiation Params\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7433    pub fn hipGraphInstantiateWithParams(
7434        pGraphExec: *mut hipGraphExec_t,
7435        graph: hipGraph_t,
7436        instantiateParams: *mut hipGraphInstantiateParams,
7437    ) -> hipError_t;
7438}
7439extern "C" {
7440    #[doc = " @brief Launches an executable graph in the specified stream.\n\n @param [in] graphExec - Instance of executable graph to launch.\n @param [in] stream - Instance of stream in which to launch executable graph.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7441    pub fn hipGraphLaunch(graphExec: hipGraphExec_t, stream: hipStream_t) -> hipError_t;
7442}
7443extern "C" {
7444    #[doc = " @brief Uploads an executable graph to a stream\n\n @param [in] graphExec - Instance of executable graph to be uploaded.\n @param [in] stream - Instance of stream to which the executable graph is uploaded to.\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7445    pub fn hipGraphUpload(graphExec: hipGraphExec_t, stream: hipStream_t) -> hipError_t;
7446}
7447extern "C" {
7448    #[doc = " @brief Creates a kernel execution node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to kernel graph node that is created.\n @param [in] graph - Instance of graph to add the created node to.\n @param [in] pDependencies - Pointer to the dependencies on the kernel execution node.\n @param [in] numDependencies - Number of dependencies.\n @param [in] nodeParams - Pointer to the node parameters.\n @returns #hipSuccess, #hipErrorInvalidValue.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7449    pub fn hipGraphAddNode(
7450        pGraphNode: *mut hipGraphNode_t,
7451        graph: hipGraph_t,
7452        pDependencies: *const hipGraphNode_t,
7453        numDependencies: usize,
7454        nodeParams: *mut hipGraphNodeParams,
7455    ) -> hipError_t;
7456}
7457extern "C" {
7458    #[doc = " @brief Return the flags of an executable graph.\n\n @param [in] graphExec - Executable graph to get the flags from.\n @param [out] flags - Flags used to instantiate this executable graph.\n @returns #hipSuccess, #hipErrorInvalidValue.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7459    pub fn hipGraphExecGetFlags(
7460        graphExec: hipGraphExec_t,
7461        flags: *mut ::std::os::raw::c_ulonglong,
7462    ) -> hipError_t;
7463}
7464extern "C" {
7465    #[doc = " @brief Updates parameters of a graph's node.\n\n @param [in] node - Instance of the node to set parameters for.\n @param [in] nodeParams - Pointer to the parameters to be set.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDeviceFunction, #hipErrorNotSupported.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7466    pub fn hipGraphNodeSetParams(
7467        node: hipGraphNode_t,
7468        nodeParams: *mut hipGraphNodeParams,
7469    ) -> hipError_t;
7470}
7471extern "C" {
7472    #[doc = " @brief Updates parameters of an executable graph's node.\n\n @param [in] graphExec - Instance of the executable graph.\n @param [in] node - Instance of the node to set parameters to.\n @param [in] nodeParams - Pointer to the parameters to be set.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDeviceFunction, #hipErrorNotSupported.\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7473    pub fn hipGraphExecNodeSetParams(
7474        graphExec: hipGraphExec_t,
7475        node: hipGraphNode_t,
7476        nodeParams: *mut hipGraphNodeParams,
7477    ) -> hipError_t;
7478}
7479extern "C" {
7480    #[doc = " @brief Destroys an executable graph\n\n @param [in] graphExec - Instance of executable graph to destroy.\n\n @returns #hipSuccess.\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7481    pub fn hipGraphExecDestroy(graphExec: hipGraphExec_t) -> hipError_t;
7482}
7483extern "C" {
7484    #[doc = " @brief Check whether an executable graph can be updated with a graph and perform the update if  *\n possible.\n\n @param [in] hGraphExec - instance of executable graph to update.\n @param [in] hGraph - graph that contains the updated parameters.\n @param [in] hErrorNode_out -  node which caused the permissibility check to forbid the update.\n @param [in] updateResult_out - Return code whether the graph update was performed.\n @returns #hipSuccess, #hipErrorGraphExecUpdateFailure\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7485    pub fn hipGraphExecUpdate(
7486        hGraphExec: hipGraphExec_t,
7487        hGraph: hipGraph_t,
7488        hErrorNode_out: *mut hipGraphNode_t,
7489        updateResult_out: *mut hipGraphExecUpdateResult,
7490    ) -> hipError_t;
7491}
7492extern "C" {
7493    #[doc = " @brief Creates a kernel execution node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created\n @param [in] graph - Instance of graph to add the created node to.\n @param [in] pDependencies - Pointer to the dependencies of the kernel execution node.\n @param [in] numDependencies - The number of the dependencies.\n @param [in] pNodeParams - Pointer to the parameters of the kernel execution node.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDeviceFunction\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7494    pub fn hipGraphAddKernelNode(
7495        pGraphNode: *mut hipGraphNode_t,
7496        graph: hipGraph_t,
7497        pDependencies: *const hipGraphNode_t,
7498        numDependencies: usize,
7499        pNodeParams: *const hipKernelNodeParams,
7500    ) -> hipError_t;
7501}
7502extern "C" {
7503    #[doc = " @brief Gets kernel node's parameters.\n\n @param [in] node - instance of the node to get parameters from.\n @param [out] pNodeParams - pointer to the parameters\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7504    pub fn hipGraphKernelNodeGetParams(
7505        node: hipGraphNode_t,
7506        pNodeParams: *mut hipKernelNodeParams,
7507    ) -> hipError_t;
7508}
7509extern "C" {
7510    #[doc = " @brief Sets a kernel node's parameters.\n\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - const pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7511    pub fn hipGraphKernelNodeSetParams(
7512        node: hipGraphNode_t,
7513        pNodeParams: *const hipKernelNodeParams,
7514    ) -> hipError_t;
7515}
7516extern "C" {
7517    #[doc = " @brief Sets the parameters for a kernel node in the given graphExec.\n\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - const pointer to the kernel node parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7518    pub fn hipGraphExecKernelNodeSetParams(
7519        hGraphExec: hipGraphExec_t,
7520        node: hipGraphNode_t,
7521        pNodeParams: *const hipKernelNodeParams,
7522    ) -> hipError_t;
7523}
7524extern "C" {
7525    #[doc = " @brief Creates a memcpy node and adds it to a graph.\n\n @param [out] phGraphNode - Pointer to graph node that is created.\n @param [in] hGraph - Instance of graph to add the created node to.\n @param [in] dependencies - const pointer to the dependencies of the memcpy execution node.\n @param [in] numDependencies - The number of dependencies.\n @param [in] copyParams - const pointer to the parameters for the memory copy.\n @param [in] ctx - context related to current device.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7526    pub fn hipDrvGraphAddMemcpyNode(
7527        phGraphNode: *mut hipGraphNode_t,
7528        hGraph: hipGraph_t,
7529        dependencies: *const hipGraphNode_t,
7530        numDependencies: usize,
7531        copyParams: *const HIP_MEMCPY3D,
7532        ctx: hipCtx_t,
7533    ) -> hipError_t;
7534}
7535extern "C" {
7536    #[doc = " @brief Creates a memcpy node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of graph to add the created node to.\n @param [in] pDependencies - const pointer to the dependencies of the memcpy execution node.\n @param [in] numDependencies - The number of dependencies.\n @param [in] pCopyParams - const pointer to the parameters for the memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7537    pub fn hipGraphAddMemcpyNode(
7538        pGraphNode: *mut hipGraphNode_t,
7539        graph: hipGraph_t,
7540        pDependencies: *const hipGraphNode_t,
7541        numDependencies: usize,
7542        pCopyParams: *const hipMemcpy3DParms,
7543    ) -> hipError_t;
7544}
7545extern "C" {
7546    #[doc = " @brief Gets a memcpy node's parameters.\n\n @param [in] node - instance of the node to get parameters from.\n @param [out] pNodeParams - pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7547    pub fn hipGraphMemcpyNodeGetParams(
7548        node: hipGraphNode_t,
7549        pNodeParams: *mut hipMemcpy3DParms,
7550    ) -> hipError_t;
7551}
7552extern "C" {
7553    #[doc = " @brief Sets a memcpy node's parameters.\n\n @param [in] node - instance of the node to set parameters to.\n @param [in] pNodeParams - const pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7554    pub fn hipGraphMemcpyNodeSetParams(
7555        node: hipGraphNode_t,
7556        pNodeParams: *const hipMemcpy3DParms,
7557    ) -> hipError_t;
7558}
7559extern "C" {
7560    #[doc = " @brief Sets a node's attribute.\n\n @param [in] hNode - Instance of the node to set parameters of.\n @param [in] attr - The attribute type to be set.\n @param [in] value - const pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7561    pub fn hipGraphKernelNodeSetAttribute(
7562        hNode: hipGraphNode_t,
7563        attr: hipLaunchAttributeID,
7564        value: *const hipLaunchAttributeValue,
7565    ) -> hipError_t;
7566}
7567extern "C" {
7568    #[doc = " @brief Gets a node's attribute.\n\n @param [in] hNode - Instance of the node to set parameters of.\n @param [in] attr - The attribute type to be set.\n @param [in] value - const pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7569    pub fn hipGraphKernelNodeGetAttribute(
7570        hNode: hipGraphNode_t,
7571        attr: hipLaunchAttributeID,
7572        value: *mut hipLaunchAttributeValue,
7573    ) -> hipError_t;
7574}
7575extern "C" {
7576    #[doc = " @brief Sets the parameters of a memcpy node in the given graphExec.\n\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - const pointer to the kernel node parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7577    pub fn hipGraphExecMemcpyNodeSetParams(
7578        hGraphExec: hipGraphExec_t,
7579        node: hipGraphNode_t,
7580        pNodeParams: *mut hipMemcpy3DParms,
7581    ) -> hipError_t;
7582}
7583extern "C" {
7584    #[doc = " @brief Creates a 1D memcpy node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of graph to add the created node to.\n @param [in] pDependencies - const pointer to the dependencies of the memcpy execution node.\n @param [in] numDependencies - The number of dependencies.\n @param [in] dst - Pointer to memory address of the destination.\n @param [in] src - Pointer to memory address of the source.\n @param [in] count - Size of the memory to copy.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7585    pub fn hipGraphAddMemcpyNode1D(
7586        pGraphNode: *mut hipGraphNode_t,
7587        graph: hipGraph_t,
7588        pDependencies: *const hipGraphNode_t,
7589        numDependencies: usize,
7590        dst: *mut ::std::os::raw::c_void,
7591        src: *const ::std::os::raw::c_void,
7592        count: usize,
7593        kind: hipMemcpyKind,
7594    ) -> hipError_t;
7595}
7596extern "C" {
7597    #[doc = " @brief Sets a memcpy node's parameters to perform a 1-dimensional copy.\n\n @param [in] node - Instance of the node to set parameters of.\n @param [in] dst - Pointer to memory address of the destination.\n @param [in] src - Pointer to memory address of the source.\n @param [in] count - Size of the memory to copy.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7598    pub fn hipGraphMemcpyNodeSetParams1D(
7599        node: hipGraphNode_t,
7600        dst: *mut ::std::os::raw::c_void,
7601        src: *const ::std::os::raw::c_void,
7602        count: usize,
7603        kind: hipMemcpyKind,
7604    ) -> hipError_t;
7605}
7606extern "C" {
7607    #[doc = " @brief Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional\n copy.\n\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] dst - Pointer to memory address of the destination.\n @param [in] src - Pointer to memory address of the source.\n @param [in] count - Size of the memory to copy.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7608    pub fn hipGraphExecMemcpyNodeSetParams1D(
7609        hGraphExec: hipGraphExec_t,
7610        node: hipGraphNode_t,
7611        dst: *mut ::std::os::raw::c_void,
7612        src: *const ::std::os::raw::c_void,
7613        count: usize,
7614        kind: hipMemcpyKind,
7615    ) -> hipError_t;
7616}
7617extern "C" {
7618    #[doc = " @brief Creates a memcpy node to copy from a symbol on the device and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of graph to add the created node to.\n @param [in] pDependencies - const pointer to the dependencies of the memcpy execution node.\n @param [in] numDependencies - Number of the dependencies.\n @param [in] dst - Pointer to memory address of the destination.\n @param [in] symbol - Device symbol address.\n @param [in] count - Size of the memory to copy.\n @param [in] offset - Offset from start of symbol in bytes.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7619    pub fn hipGraphAddMemcpyNodeFromSymbol(
7620        pGraphNode: *mut hipGraphNode_t,
7621        graph: hipGraph_t,
7622        pDependencies: *const hipGraphNode_t,
7623        numDependencies: usize,
7624        dst: *mut ::std::os::raw::c_void,
7625        symbol: *const ::std::os::raw::c_void,
7626        count: usize,
7627        offset: usize,
7628        kind: hipMemcpyKind,
7629    ) -> hipError_t;
7630}
7631extern "C" {
7632    #[doc = " @brief Sets a memcpy node's parameters to copy from a symbol on the device.\n\n @param [in] node - Instance of the node to set parameters of.\n @param [in] dst - Pointer to memory address of the destination.\n @param [in] symbol - Device symbol address.\n @param [in] count - Size of the memory to copy.\n @param [in] offset - Offset from start of symbol in bytes.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7633    pub fn hipGraphMemcpyNodeSetParamsFromSymbol(
7634        node: hipGraphNode_t,
7635        dst: *mut ::std::os::raw::c_void,
7636        symbol: *const ::std::os::raw::c_void,
7637        count: usize,
7638        offset: usize,
7639        kind: hipMemcpyKind,
7640    ) -> hipError_t;
7641}
7642extern "C" {
7643    #[doc = " @brief Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the\n * device.\n\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] dst - Pointer to memory address of the destination.\n @param [in] symbol - Device symbol address.\n @param [in] count - Size of the memory to copy.\n @param [in] offset - Offset from start of symbol in bytes.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7644    pub fn hipGraphExecMemcpyNodeSetParamsFromSymbol(
7645        hGraphExec: hipGraphExec_t,
7646        node: hipGraphNode_t,
7647        dst: *mut ::std::os::raw::c_void,
7648        symbol: *const ::std::os::raw::c_void,
7649        count: usize,
7650        offset: usize,
7651        kind: hipMemcpyKind,
7652    ) -> hipError_t;
7653}
7654extern "C" {
7655    #[doc = " @brief Creates a memcpy node to copy to a symbol on the device and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of graph to add the created node to.\n @param [in] pDependencies - const pointer to the dependencies on the memcpy execution node.\n @param [in] numDependencies - Number of dependencies.\n @param [in] symbol - Device symbol address.\n @param [in] src - Pointer to memory address of the src.\n @param [in] count - Size of the memory to copy.\n @param [in] offset - Offset from start of symbol in bytes.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7656    pub fn hipGraphAddMemcpyNodeToSymbol(
7657        pGraphNode: *mut hipGraphNode_t,
7658        graph: hipGraph_t,
7659        pDependencies: *const hipGraphNode_t,
7660        numDependencies: usize,
7661        symbol: *const ::std::os::raw::c_void,
7662        src: *const ::std::os::raw::c_void,
7663        count: usize,
7664        offset: usize,
7665        kind: hipMemcpyKind,
7666    ) -> hipError_t;
7667}
7668extern "C" {
7669    #[doc = " @brief Sets a memcpy node's parameters to copy to a symbol on the device.\n\n @param [in] node - Instance of the node to set parameters of.\n @param [in] symbol - Device symbol address.\n @param [in] src - Pointer to memory address of the src.\n @param [in] count - Size of the memory to copy.\n @param [in] offset - Offset from start of symbol in bytes.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7670    pub fn hipGraphMemcpyNodeSetParamsToSymbol(
7671        node: hipGraphNode_t,
7672        symbol: *const ::std::os::raw::c_void,
7673        src: *const ::std::os::raw::c_void,
7674        count: usize,
7675        offset: usize,
7676        kind: hipMemcpyKind,
7677    ) -> hipError_t;
7678}
7679extern "C" {
7680    #[doc = " @brief Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the\n device.\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] symbol - Device symbol address.\n @param [in] src - Pointer to memory address of the src.\n @param [in] count - Size of the memory to copy.\n @param [in] offset - Offset from start of symbol in bytes.\n @param [in] kind - Type of memory copy.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7681    pub fn hipGraphExecMemcpyNodeSetParamsToSymbol(
7682        hGraphExec: hipGraphExec_t,
7683        node: hipGraphNode_t,
7684        symbol: *const ::std::os::raw::c_void,
7685        src: *const ::std::os::raw::c_void,
7686        count: usize,
7687        offset: usize,
7688        kind: hipMemcpyKind,
7689    ) -> hipError_t;
7690}
7691extern "C" {
7692    #[doc = " @brief Creates a memset node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of the graph to add the created node to.\n @param [in] pDependencies - const pointer to the dependencies on the memset execution node.\n @param [in] numDependencies - Number of dependencies.\n @param [in] pMemsetParams - const pointer to the parameters for the memory set.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7693    pub fn hipGraphAddMemsetNode(
7694        pGraphNode: *mut hipGraphNode_t,
7695        graph: hipGraph_t,
7696        pDependencies: *const hipGraphNode_t,
7697        numDependencies: usize,
7698        pMemsetParams: *const hipMemsetParams,
7699    ) -> hipError_t;
7700}
7701extern "C" {
7702    #[doc = " @brief Gets a memset node's parameters.\n\n @param [in] node - Instance of the node to get parameters of.\n @param [out] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7703    pub fn hipGraphMemsetNodeGetParams(
7704        node: hipGraphNode_t,
7705        pNodeParams: *mut hipMemsetParams,
7706    ) -> hipError_t;
7707}
7708extern "C" {
7709    #[doc = " @brief Sets a memset node's parameters.\n\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7710    pub fn hipGraphMemsetNodeSetParams(
7711        node: hipGraphNode_t,
7712        pNodeParams: *const hipMemsetParams,
7713    ) -> hipError_t;
7714}
7715extern "C" {
7716    #[doc = " @brief Sets the parameters for a memset node in the given graphExec.\n\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7717    pub fn hipGraphExecMemsetNodeSetParams(
7718        hGraphExec: hipGraphExec_t,
7719        node: hipGraphNode_t,
7720        pNodeParams: *const hipMemsetParams,
7721    ) -> hipError_t;
7722}
7723extern "C" {
7724    #[doc = " @brief Creates a host execution node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of the graph to add the created node to.\n @param [in] pDependencies - const pointer to the dependencies of the memset execution node.\n @param [in] numDependencies - Number of dependencies.\n @param [in] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7725    pub fn hipGraphAddHostNode(
7726        pGraphNode: *mut hipGraphNode_t,
7727        graph: hipGraph_t,
7728        pDependencies: *const hipGraphNode_t,
7729        numDependencies: usize,
7730        pNodeParams: *const hipHostNodeParams,
7731    ) -> hipError_t;
7732}
7733extern "C" {
7734    #[doc = " @brief Returns a host node's parameters.\n\n @param [in] node - Instance of the node to get parameters of.\n @param [out] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7735    pub fn hipGraphHostNodeGetParams(
7736        node: hipGraphNode_t,
7737        pNodeParams: *mut hipHostNodeParams,
7738    ) -> hipError_t;
7739}
7740extern "C" {
7741    #[doc = " @brief Sets a host node's parameters.\n\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7742    pub fn hipGraphHostNodeSetParams(
7743        node: hipGraphNode_t,
7744        pNodeParams: *const hipHostNodeParams,
7745    ) -> hipError_t;
7746}
7747extern "C" {
7748    #[doc = " @brief Sets the parameters for a host node in the given graphExec.\n\n @param [in] hGraphExec - Instance of the executable graph with the node.\n @param [in] node - Instance of the node to set parameters of.\n @param [in] pNodeParams - Pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7749    pub fn hipGraphExecHostNodeSetParams(
7750        hGraphExec: hipGraphExec_t,
7751        node: hipGraphNode_t,
7752        pNodeParams: *const hipHostNodeParams,
7753    ) -> hipError_t;
7754}
7755extern "C" {
7756    #[doc = " @brief Creates a child graph node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of the graph to add the created node.\n @param [in] pDependencies - const pointer to the dependencies of the memset execution node.\n @param [in] numDependencies - Number of dependencies.\n @param [in] childGraph - Graph to clone into this node\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7757    pub fn hipGraphAddChildGraphNode(
7758        pGraphNode: *mut hipGraphNode_t,
7759        graph: hipGraph_t,
7760        pDependencies: *const hipGraphNode_t,
7761        numDependencies: usize,
7762        childGraph: hipGraph_t,
7763    ) -> hipError_t;
7764}
7765extern "C" {
7766    #[doc = " @brief Gets a handle to the embedded graph of a child graph node.\n\n @param [in] node - Instance of the node to get child graph of.\n @param [out] pGraph - Pointer to get the graph.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7767    pub fn hipGraphChildGraphNodeGetGraph(
7768        node: hipGraphNode_t,
7769        pGraph: *mut hipGraph_t,
7770    ) -> hipError_t;
7771}
7772extern "C" {
7773    #[doc = " @brief Updates node parameters in the child graph node in the given graphExec.\n\n @param [in] hGraphExec - instance of the executable graph with the node.\n @param [in] node - node from the graph which was used to instantiate graphExec.\n @param [in] childGraph - child graph with updated parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7774    pub fn hipGraphExecChildGraphNodeSetParams(
7775        hGraphExec: hipGraphExec_t,
7776        node: hipGraphNode_t,
7777        childGraph: hipGraph_t,
7778    ) -> hipError_t;
7779}
7780extern "C" {
7781    #[doc = " @brief Creates an empty node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of the graph the node is added to.\n @param [in] pDependencies - const pointer to the node dependencies.\n @param [in] numDependencies - Number of dependencies.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7782    pub fn hipGraphAddEmptyNode(
7783        pGraphNode: *mut hipGraphNode_t,
7784        graph: hipGraph_t,
7785        pDependencies: *const hipGraphNode_t,
7786        numDependencies: usize,
7787    ) -> hipError_t;
7788}
7789extern "C" {
7790    #[doc = " @brief Creates an event record node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of the graph the node is added to.\n @param [in] pDependencies - const pointer to the node dependencies.\n @param [in] numDependencies - Number of dependencies.\n @param [in] event - Event of the node.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7791    pub fn hipGraphAddEventRecordNode(
7792        pGraphNode: *mut hipGraphNode_t,
7793        graph: hipGraph_t,
7794        pDependencies: *const hipGraphNode_t,
7795        numDependencies: usize,
7796        event: hipEvent_t,
7797    ) -> hipError_t;
7798}
7799extern "C" {
7800    #[doc = " @brief Returns the event associated with an event record node.\n\n @param [in] node -  Instance of the node to get event of.\n @param [out] event_out - Pointer to return the event.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7801    pub fn hipGraphEventRecordNodeGetEvent(
7802        node: hipGraphNode_t,
7803        event_out: *mut hipEvent_t,
7804    ) -> hipError_t;
7805}
7806extern "C" {
7807    #[doc = " @brief Sets an event record node's event.\n\n @param [in] node - Instance of the node to set event to.\n @param [in] event - Pointer to the event.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7808    pub fn hipGraphEventRecordNodeSetEvent(node: hipGraphNode_t, event: hipEvent_t) -> hipError_t;
7809}
7810extern "C" {
7811    #[doc = " @brief Sets the event for an event record node in the given graphExec.\n\n @param [in] hGraphExec - instance of the executable graph with the node.\n @param [in] hNode - node from the graph which was used to instantiate graphExec.\n @param [in] event - pointer to the event.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7812    pub fn hipGraphExecEventRecordNodeSetEvent(
7813        hGraphExec: hipGraphExec_t,
7814        hNode: hipGraphNode_t,
7815        event: hipEvent_t,
7816    ) -> hipError_t;
7817}
7818extern "C" {
7819    #[doc = " @brief Creates an event wait node and adds it to a graph.\n\n @param [out] pGraphNode - Pointer to graph node that is created.\n @param [in] graph - Instance of the graph the node to be added.\n @param [in] pDependencies - const pointer to the node dependencies.\n @param [in] numDependencies - Number of dependencies.\n @param [in] event - Event for the node.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7820    pub fn hipGraphAddEventWaitNode(
7821        pGraphNode: *mut hipGraphNode_t,
7822        graph: hipGraph_t,
7823        pDependencies: *const hipGraphNode_t,
7824        numDependencies: usize,
7825        event: hipEvent_t,
7826    ) -> hipError_t;
7827}
7828extern "C" {
7829    #[doc = " @brief Returns the event associated with an event wait node.\n\n @param [in] node -  Instance of the node to get event of.\n @param [out] event_out - Pointer to return the event.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7830    pub fn hipGraphEventWaitNodeGetEvent(
7831        node: hipGraphNode_t,
7832        event_out: *mut hipEvent_t,
7833    ) -> hipError_t;
7834}
7835extern "C" {
7836    #[doc = " @brief Sets an event wait node's event.\n\n @param [in] node - Instance of the node to set event of.\n @param [in] event - Pointer to the event.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7837    pub fn hipGraphEventWaitNodeSetEvent(node: hipGraphNode_t, event: hipEvent_t) -> hipError_t;
7838}
7839extern "C" {
7840    #[doc = " @brief Sets the event for an event record node in the given graphExec.\n\n @param [in] hGraphExec - instance of the executable graph with the node.\n @param [in] hNode - node from the graph which was used to instantiate graphExec.\n @param [in] event - pointer to the event.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7841    pub fn hipGraphExecEventWaitNodeSetEvent(
7842        hGraphExec: hipGraphExec_t,
7843        hNode: hipGraphNode_t,
7844        event: hipEvent_t,
7845    ) -> hipError_t;
7846}
7847extern "C" {
7848    #[doc = " @brief Creates a memory allocation node and adds it to a graph\n\n @param [out] pGraphNode      - Pointer to the graph node to create and add to the graph\n @param [in] graph            - Instance of the graph node to be added\n @param [in] pDependencies    - Const pointer to the node dependencies\n @param [in] numDependencies  - The number of dependencies\n @param [in, out] pNodeParams - Node parameters for memory allocation, returns a pointer to the allocated memory.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7849    pub fn hipGraphAddMemAllocNode(
7850        pGraphNode: *mut hipGraphNode_t,
7851        graph: hipGraph_t,
7852        pDependencies: *const hipGraphNode_t,
7853        numDependencies: usize,
7854        pNodeParams: *mut hipMemAllocNodeParams,
7855    ) -> hipError_t;
7856}
7857extern "C" {
7858    #[doc = " @brief Returns parameters for memory allocation node\n\n @param [in] node         - Memory allocation node to query\n @param [out] pNodeParams - Parameters for the specified memory allocation node\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7859    pub fn hipGraphMemAllocNodeGetParams(
7860        node: hipGraphNode_t,
7861        pNodeParams: *mut hipMemAllocNodeParams,
7862    ) -> hipError_t;
7863}
7864extern "C" {
7865    #[doc = " @brief Creates a memory free node and adds it to a graph\n\n @param [out] pGraphNode      - Pointer to the graph node to create and add to the graph\n @param [in] graph            - Instance of the graph node to be added\n @param [in] pDependencies    - Const pointer to the node dependencies\n @param [in] numDependencies  - The number of dependencies\n @param [in] dev_ptr          - Pointer to the memory to be freed\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7866    pub fn hipGraphAddMemFreeNode(
7867        pGraphNode: *mut hipGraphNode_t,
7868        graph: hipGraph_t,
7869        pDependencies: *const hipGraphNode_t,
7870        numDependencies: usize,
7871        dev_ptr: *mut ::std::os::raw::c_void,
7872    ) -> hipError_t;
7873}
7874extern "C" {
7875    #[doc = " @brief Returns parameters for memory free node\n\n @param [in] node     - Memory free node to query\n @param [out] dev_ptr - Device pointer of the specified memory free node\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7876    pub fn hipGraphMemFreeNodeGetParams(
7877        node: hipGraphNode_t,
7878        dev_ptr: *mut ::std::os::raw::c_void,
7879    ) -> hipError_t;
7880}
7881extern "C" {
7882    #[doc = " @brief Get the mem attribute for graphs.\n\n @param [in] device - Device to get attributes from\n @param [in] attr - Attribute type to be queried\n @param [out] value - Value of the queried attribute\n @returns #hipSuccess, #hipErrorInvalidDevice\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7883    pub fn hipDeviceGetGraphMemAttribute(
7884        device: ::std::os::raw::c_int,
7885        attr: hipGraphMemAttributeType,
7886        value: *mut ::std::os::raw::c_void,
7887    ) -> hipError_t;
7888}
7889extern "C" {
7890    #[doc = " @brief Set the mem attribute for graphs.\n\n @param [in] device - Device to set attribute of.\n @param [in] attr - Attribute type to be set.\n @param [in] value - Value of the attribute.\n @returns #hipSuccess, #hipErrorInvalidDevice\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7891    pub fn hipDeviceSetGraphMemAttribute(
7892        device: ::std::os::raw::c_int,
7893        attr: hipGraphMemAttributeType,
7894        value: *mut ::std::os::raw::c_void,
7895    ) -> hipError_t;
7896}
7897extern "C" {
7898    #[doc = " @brief Free unused memory reserved for graphs on a specific device and return it back to the OS.\n\n @param [in] device - Device for which memory should be trimmed\n @returns #hipSuccess, #hipErrorInvalidDevice\n\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7899    pub fn hipDeviceGraphMemTrim(device: ::std::os::raw::c_int) -> hipError_t;
7900}
7901extern "C" {
7902    #[doc = " @brief Create an instance of userObject to manage lifetime of a resource.\n\n @param [out] object_out - pointer to instace of userobj.\n @param [in] ptr - pointer to pass to destroy function.\n @param [in] destroy - destroy callback to remove resource.\n @param [in] initialRefcount - reference to resource.\n @param [in] flags - flags passed to API.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7903    pub fn hipUserObjectCreate(
7904        object_out: *mut hipUserObject_t,
7905        ptr: *mut ::std::os::raw::c_void,
7906        destroy: hipHostFn_t,
7907        initialRefcount: ::std::os::raw::c_uint,
7908        flags: ::std::os::raw::c_uint,
7909    ) -> hipError_t;
7910}
7911extern "C" {
7912    #[doc = " @brief Release number of references to resource.\n\n @param [in] object - pointer to instace of userobj.\n @param [in] count - reference to resource to be retained.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7913    pub fn hipUserObjectRelease(
7914        object: hipUserObject_t,
7915        count: ::std::os::raw::c_uint,
7916    ) -> hipError_t;
7917}
7918extern "C" {
7919    #[doc = " @brief Retain number of references to resource.\n\n @param [in] object - pointer to instace of userobj.\n @param [in] count - reference to resource to be retained.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7920    pub fn hipUserObjectRetain(
7921        object: hipUserObject_t,
7922        count: ::std::os::raw::c_uint,
7923    ) -> hipError_t;
7924}
7925extern "C" {
7926    #[doc = " @brief Retain user object for graphs.\n\n @param [in] graph - pointer to graph to retain the user object for.\n @param [in] object - pointer to instace of userobj.\n @param [in] count - reference to resource to be retained.\n @param [in] flags - flags passed to API.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7927    pub fn hipGraphRetainUserObject(
7928        graph: hipGraph_t,
7929        object: hipUserObject_t,
7930        count: ::std::os::raw::c_uint,
7931        flags: ::std::os::raw::c_uint,
7932    ) -> hipError_t;
7933}
7934extern "C" {
7935    #[doc = " @brief Release user object from graphs.\n\n @param [in] graph - pointer to graph to retain the user object for.\n @param [in] object - pointer to instace of userobj.\n @param [in] count - reference to resource to be retained.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7936    pub fn hipGraphReleaseUserObject(
7937        graph: hipGraph_t,
7938        object: hipUserObject_t,
7939        count: ::std::os::raw::c_uint,
7940    ) -> hipError_t;
7941}
7942extern "C" {
7943    #[doc = " @brief Write a DOT file describing graph structure.\n\n @param [in] graph - graph object for which DOT file has to be generated.\n @param [in] path - path to write the DOT file.\n @param [in] flags - Flags from hipGraphDebugDotFlags to get additional node information.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOperatingSystem\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7944    pub fn hipGraphDebugDotPrint(
7945        graph: hipGraph_t,
7946        path: *const ::std::os::raw::c_char,
7947        flags: ::std::os::raw::c_uint,
7948    ) -> hipError_t;
7949}
7950extern "C" {
7951    #[doc = " @brief Copies attributes from source node to destination node.\n\n Copies attributes from source node to destination node.\n Both node must have the same context.\n\n @param [out] hDst - Destination node.\n @param [in] hSrc - Source node.\n For list of attributes see ::hipKernelNodeAttrID.\n\n @returns #hipSuccess, #hipErrorInvalidContext\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7952    pub fn hipGraphKernelNodeCopyAttributes(
7953        hSrc: hipGraphNode_t,
7954        hDst: hipGraphNode_t,
7955    ) -> hipError_t;
7956}
7957extern "C" {
7958    #[doc = " @brief Enables or disables the specified node in the given graphExec\n\n Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent\n to empty nodes until they are reenabled. Existing node parameters are not affected by\n disabling/enabling the node.\n\n The node is identified by the corresponding hNode in the non-executable graph, from which the\n executable graph was instantiated.\n\n hNode must not have been removed from the original graph.\n\n @note Currently only kernel, memset and memcpy nodes are supported.\n\n @param [in] hGraphExec - The executable graph in which to set the specified node.\n @param [in] hNode      - Node from the graph from which graphExec was instantiated.\n @param [in] isEnabled  - Node is enabled if != 0, otherwise the node is disabled.\n\n @returns #hipSuccess, #hipErrorInvalidValue,\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7959    pub fn hipGraphNodeSetEnabled(
7960        hGraphExec: hipGraphExec_t,
7961        hNode: hipGraphNode_t,
7962        isEnabled: ::std::os::raw::c_uint,
7963    ) -> hipError_t;
7964}
7965extern "C" {
7966    #[doc = " @brief Query whether a node in the given graphExec is enabled\n\n Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.\n\n The node is identified by the corresponding node in the non-executable graph, from which the\n executable graph was instantiated.\n\n hNode must not have been removed from the original graph.\n\n @note Currently only kernel, memset and memcpy nodes are supported.\n\n @param [in]  hGraphExec - The executable graph in which to set the specified node.\n @param [in]  hNode      - Node from the graph from which graphExec was instantiated.\n @param [out] isEnabled  - Location to return the enabled status of the node.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7967    pub fn hipGraphNodeGetEnabled(
7968        hGraphExec: hipGraphExec_t,
7969        hNode: hipGraphNode_t,
7970        isEnabled: *mut ::std::os::raw::c_uint,
7971    ) -> hipError_t;
7972}
7973extern "C" {
7974    #[doc = " @brief Creates a external semaphor wait node and adds it to a graph.\n\n @param [out] pGraphNode - pointer to the graph node to create.\n @param [in] graph - instance of the graph to add the created node.\n @param [in] pDependencies - const pointer to the dependencies on the memset execution node.\n @param [in] numDependencies - the number of the dependencies.\n @param [in] nodeParams -pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7975    pub fn hipGraphAddExternalSemaphoresWaitNode(
7976        pGraphNode: *mut hipGraphNode_t,
7977        graph: hipGraph_t,
7978        pDependencies: *const hipGraphNode_t,
7979        numDependencies: usize,
7980        nodeParams: *const hipExternalSemaphoreWaitNodeParams,
7981    ) -> hipError_t;
7982}
7983extern "C" {
7984    #[doc = " @brief Creates a external semaphor signal node and adds it to a graph.\n\n @param [out] pGraphNode - pointer to the graph node to create.\n @param [in] graph - instance of the graph to add the created node.\n @param [in] pDependencies - const pointer to the dependencies on the memset execution node.\n @param [in] numDependencies - the number of the dependencies.\n @param [in] nodeParams -pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7985    pub fn hipGraphAddExternalSemaphoresSignalNode(
7986        pGraphNode: *mut hipGraphNode_t,
7987        graph: hipGraph_t,
7988        pDependencies: *const hipGraphNode_t,
7989        numDependencies: usize,
7990        nodeParams: *const hipExternalSemaphoreSignalNodeParams,
7991    ) -> hipError_t;
7992}
7993extern "C" {
7994    #[doc = " @brief Updates node parameters in the external semaphore signal node.\n\n @param [in]  hNode      - Node from the graph from which graphExec was instantiated.\n @param [in]  nodeParams  - Pointer to the params to be set.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
7995    pub fn hipGraphExternalSemaphoresSignalNodeSetParams(
7996        hNode: hipGraphNode_t,
7997        nodeParams: *const hipExternalSemaphoreSignalNodeParams,
7998    ) -> hipError_t;
7999}
8000extern "C" {
8001    #[doc = " @brief Updates node parameters in the external semaphore wait node.\n\n @param [in]  hNode      - Node from the graph from which graphExec was instantiated.\n @param [in]  nodeParams  - Pointer to the params to be set.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8002    pub fn hipGraphExternalSemaphoresWaitNodeSetParams(
8003        hNode: hipGraphNode_t,
8004        nodeParams: *const hipExternalSemaphoreWaitNodeParams,
8005    ) -> hipError_t;
8006}
8007extern "C" {
8008    #[doc = " @brief Returns external semaphore signal node params.\n\n @param [in]   hNode       - Node from the graph from which graphExec was instantiated.\n @param [out]  params_out  - Pointer to params.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8009    pub fn hipGraphExternalSemaphoresSignalNodeGetParams(
8010        hNode: hipGraphNode_t,
8011        params_out: *mut hipExternalSemaphoreSignalNodeParams,
8012    ) -> hipError_t;
8013}
8014extern "C" {
8015    #[doc = " @brief Returns external semaphore wait node params.\n\n @param [in]   hNode       - Node from the graph from which graphExec was instantiated.\n @param [out]  params_out  - Pointer to params.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8016    pub fn hipGraphExternalSemaphoresWaitNodeGetParams(
8017        hNode: hipGraphNode_t,
8018        params_out: *mut hipExternalSemaphoreWaitNodeParams,
8019    ) -> hipError_t;
8020}
8021extern "C" {
8022    #[doc = " @brief Updates node parameters in the external semaphore signal node in the given graphExec.\n\n @param [in]  hGraphExec - The executable graph in which to set the specified node.\n @param [in]  hNode      - Node from the graph from which graphExec was instantiated.\n @param [in]  nodeParams  - Pointer to the params to be set.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8023    pub fn hipGraphExecExternalSemaphoresSignalNodeSetParams(
8024        hGraphExec: hipGraphExec_t,
8025        hNode: hipGraphNode_t,
8026        nodeParams: *const hipExternalSemaphoreSignalNodeParams,
8027    ) -> hipError_t;
8028}
8029extern "C" {
8030    #[doc = " @brief Updates node parameters in the external semaphore wait node in the given graphExec.\n\n @param [in]  hGraphExec - The executable graph in which to set the specified node.\n @param [in]  hNode      - Node from the graph from which graphExec was instantiated.\n @param [in]  nodeParams  - Pointer to the params to be set.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8031    pub fn hipGraphExecExternalSemaphoresWaitNodeSetParams(
8032        hGraphExec: hipGraphExec_t,
8033        hNode: hipGraphNode_t,
8034        nodeParams: *const hipExternalSemaphoreWaitNodeParams,
8035    ) -> hipError_t;
8036}
8037extern "C" {
8038    #[doc = " @brief Gets a memcpy node's parameters.\n\n @param [in] hNode - instance of the node to get parameters from.\n @param [out] nodeParams - pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8039    pub fn hipDrvGraphMemcpyNodeGetParams(
8040        hNode: hipGraphNode_t,
8041        nodeParams: *mut HIP_MEMCPY3D,
8042    ) -> hipError_t;
8043}
8044extern "C" {
8045    #[doc = " @brief Sets a memcpy node's parameters.\n\n @param [in] hNode - instance of the node to Set parameters for.\n @param [out] nodeParams - pointer to the parameters.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8046    pub fn hipDrvGraphMemcpyNodeSetParams(
8047        hNode: hipGraphNode_t,
8048        nodeParams: *const HIP_MEMCPY3D,
8049    ) -> hipError_t;
8050}
8051extern "C" {
8052    #[doc = " @brief Creates a memset node and adds it to a graph.\n\n @param [out] phGraphNode - pointer to graph node to create.\n @param [in] hGraph - instance of graph to add the created node to.\n @param [in] dependencies - const pointer to the dependencies on the memset execution node.\n @param [in] numDependencies - number of the dependencies.\n @param [in] memsetParams - const pointer to the parameters for the memory set.\n @param [in] ctx - cotext related to current device.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8053    pub fn hipDrvGraphAddMemsetNode(
8054        phGraphNode: *mut hipGraphNode_t,
8055        hGraph: hipGraph_t,
8056        dependencies: *const hipGraphNode_t,
8057        numDependencies: usize,
8058        memsetParams: *const HIP_MEMSET_NODE_PARAMS,
8059        ctx: hipCtx_t,
8060    ) -> hipError_t;
8061}
8062extern "C" {
8063    #[doc = " @brief Creates a memory free node and adds it to a graph\n\n @param [out] phGraphNode - Pointer to the graph node to create and add to the graph\n @param [in]  hGraph - Instance of the graph the node to be added\n @param [in]  dependencies - Const pointer to the node dependencies\n @param [in]  numDependencies - The number of dependencies\n @param [in]  dptr - Pointer to the memory to be freed\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8064    pub fn hipDrvGraphAddMemFreeNode(
8065        phGraphNode: *mut hipGraphNode_t,
8066        hGraph: hipGraph_t,
8067        dependencies: *const hipGraphNode_t,
8068        numDependencies: usize,
8069        dptr: hipDeviceptr_t,
8070    ) -> hipError_t;
8071}
8072extern "C" {
8073    #[doc = " @brief Sets the parameters for a memcpy node in the given graphExec.\n\n @param [in] hGraphExec - instance of the executable graph with the node.\n @param [in] hNode - instance of the node to set parameters to.\n @param [in] copyParams - const pointer to the memcpy node params.\n @param [in] ctx - cotext related to current device.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8074    pub fn hipDrvGraphExecMemcpyNodeSetParams(
8075        hGraphExec: hipGraphExec_t,
8076        hNode: hipGraphNode_t,
8077        copyParams: *const HIP_MEMCPY3D,
8078        ctx: hipCtx_t,
8079    ) -> hipError_t;
8080}
8081extern "C" {
8082    #[doc = " @brief Sets the parameters for a memset node in the given graphExec.\n\n @param [in] hGraphExec - instance of the executable graph with the node.\n @param [in] hNode - instance of the node to set parameters to.\n @param [in] memsetParams - pointer to the parameters.\n @param [in] ctx - cotext related to current device.\n @returns #hipSuccess, #hipErrorInvalidValue\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues."]
8083    pub fn hipDrvGraphExecMemsetNodeSetParams(
8084        hGraphExec: hipGraphExec_t,
8085        hNode: hipGraphNode_t,
8086        memsetParams: *const HIP_MEMSET_NODE_PARAMS,
8087        ctx: hipCtx_t,
8088    ) -> hipError_t;
8089}
8090extern "C" {
8091    #[doc = " @brief Frees an address range reservation made via hipMemAddressReserve\n\n @param [in] devPtr - starting address of the range.\n @param [in] size - size of the range.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8092    pub fn hipMemAddressFree(devPtr: *mut ::std::os::raw::c_void, size: usize) -> hipError_t;
8093}
8094extern "C" {
8095    #[doc = " @brief Reserves an address range\n\n @param [out] ptr - starting address of the reserved range.\n @param [in] size - size of the reservation.\n @param [in] alignment - alignment of the address.\n @param [in] addr - requested starting address of the range.\n @param [in] flags - currently unused, must be zero.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8096    pub fn hipMemAddressReserve(
8097        ptr: *mut *mut ::std::os::raw::c_void,
8098        size: usize,
8099        alignment: usize,
8100        addr: *mut ::std::os::raw::c_void,
8101        flags: ::std::os::raw::c_ulonglong,
8102    ) -> hipError_t;
8103}
8104extern "C" {
8105    #[doc = " @brief Creates a memory allocation described by the properties and size\n\n @param [out] handle - value of the returned handle.\n @param [in] size - size of the allocation.\n @param [in] prop - properties of the allocation.\n @param [in] flags - currently unused, must be zero.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8106    pub fn hipMemCreate(
8107        handle: *mut hipMemGenericAllocationHandle_t,
8108        size: usize,
8109        prop: *const hipMemAllocationProp,
8110        flags: ::std::os::raw::c_ulonglong,
8111    ) -> hipError_t;
8112}
8113extern "C" {
8114    #[doc = " @brief Exports an allocation to a requested shareable handle type.\n\n @param [out] shareableHandle - value of the returned handle.\n @param [in] handle - handle to share.\n @param [in] handleType - type of the shareable handle.\n @param [in] flags - currently unused, must be zero.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8115    pub fn hipMemExportToShareableHandle(
8116        shareableHandle: *mut ::std::os::raw::c_void,
8117        handle: hipMemGenericAllocationHandle_t,
8118        handleType: hipMemAllocationHandleType,
8119        flags: ::std::os::raw::c_ulonglong,
8120    ) -> hipError_t;
8121}
8122extern "C" {
8123    #[doc = " @brief Get the access flags set for the given location and ptr.\n\n @param [out] flags - flags for this location.\n @param [in] location - target location.\n @param [in] ptr - address to check the access flags.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8124    pub fn hipMemGetAccess(
8125        flags: *mut ::std::os::raw::c_ulonglong,
8126        location: *const hipMemLocation,
8127        ptr: *mut ::std::os::raw::c_void,
8128    ) -> hipError_t;
8129}
8130extern "C" {
8131    #[doc = " @brief Calculates either the minimal or recommended granularity.\n\n @param [out] granularity - returned granularity.\n @param [in] prop - location properties.\n @param [in] option - determines which granularity to return.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows.\n"]
8132    pub fn hipMemGetAllocationGranularity(
8133        granularity: *mut usize,
8134        prop: *const hipMemAllocationProp,
8135        option: hipMemAllocationGranularity_flags,
8136    ) -> hipError_t;
8137}
8138extern "C" {
8139    #[doc = " @brief Retrieve the property structure of the given handle.\n\n @param [out] prop - properties of the given handle.\n @param [in] handle - handle to perform the query on.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8140    pub fn hipMemGetAllocationPropertiesFromHandle(
8141        prop: *mut hipMemAllocationProp,
8142        handle: hipMemGenericAllocationHandle_t,
8143    ) -> hipError_t;
8144}
8145extern "C" {
8146    #[doc = " @brief Imports an allocation from a requested shareable handle type.\n\n @param [out] handle - returned value.\n @param [in] osHandle - shareable handle representing the memory allocation.\n @param [in] shHandleType - handle type.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8147    pub fn hipMemImportFromShareableHandle(
8148        handle: *mut hipMemGenericAllocationHandle_t,
8149        osHandle: *mut ::std::os::raw::c_void,
8150        shHandleType: hipMemAllocationHandleType,
8151    ) -> hipError_t;
8152}
8153extern "C" {
8154    #[doc = " @brief Maps an allocation handle to a reserved virtual address range.\n\n @param [in] ptr - address where the memory will be mapped.\n @param [in] size - size of the mapping.\n @param [in] offset - offset into the memory, currently must be zero.\n @param [in] handle - memory allocation to be mapped.\n @param [in] flags - currently unused, must be zero.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8155    pub fn hipMemMap(
8156        ptr: *mut ::std::os::raw::c_void,
8157        size: usize,
8158        offset: usize,
8159        handle: hipMemGenericAllocationHandle_t,
8160        flags: ::std::os::raw::c_ulonglong,
8161    ) -> hipError_t;
8162}
8163extern "C" {
8164    #[doc = " @brief Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.\n\n @param [in] mapInfoList - list of hipArrayMapInfo.\n @param [in] count - number of hipArrayMapInfo in mapInfoList.\n @param [in] stream - stream identifier for the stream to use for map or unmap operations.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is under development. Currently it is not supported on AMD\n          GPUs and returns #hipErrorNotSupported."]
8165    pub fn hipMemMapArrayAsync(
8166        mapInfoList: *mut hipArrayMapInfo,
8167        count: ::std::os::raw::c_uint,
8168        stream: hipStream_t,
8169    ) -> hipError_t;
8170}
8171extern "C" {
8172    #[doc = " @brief Release a memory handle representing a memory allocation which was previously allocated through hipMemCreate.\n\n @param [in] handle - handle of the memory allocation.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8173    pub fn hipMemRelease(handle: hipMemGenericAllocationHandle_t) -> hipError_t;
8174}
8175extern "C" {
8176    #[doc = " @brief Returns the allocation handle of the backing memory allocation given the address.\n\n @param [out] handle - handle representing addr.\n @param [in] addr - address to look up.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8177    pub fn hipMemRetainAllocationHandle(
8178        handle: *mut hipMemGenericAllocationHandle_t,
8179        addr: *mut ::std::os::raw::c_void,
8180    ) -> hipError_t;
8181}
8182extern "C" {
8183    #[doc = " @brief Set the access flags for each location specified in desc for the given virtual address range.\n\n @param [in] ptr - starting address of the virtual address range.\n @param [in] size - size of the range.\n @param [in] desc - array of hipMemAccessDesc.\n @param [in] count - number of hipMemAccessDesc in desc.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8184    pub fn hipMemSetAccess(
8185        ptr: *mut ::std::os::raw::c_void,
8186        size: usize,
8187        desc: *const hipMemAccessDesc,
8188        count: usize,
8189    ) -> hipError_t;
8190}
8191extern "C" {
8192    #[doc = " @brief Unmap memory allocation of a given address range.\n\n @param [in] ptr - starting address of the range to unmap.\n @param [in] size - size of the virtual address range.\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported\n @warning This API is marked as Beta. While this feature is complete, it can\n          change and might have outstanding issues.\n\n @note  This API is implemented on Linux and is under development on Microsoft Windows."]
8193    pub fn hipMemUnmap(ptr: *mut ::std::os::raw::c_void, size: usize) -> hipError_t;
8194}
8195extern "C" {
8196    #[doc = " @brief Maps a graphics resource for access.\n\n @param [in] count - Number of resources to map.\n @param [in] resources - Pointer of resources to map.\n @param [in] stream - Stream for synchronization.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown, #hipErrorInvalidResourceHandle\n"]
8197    pub fn hipGraphicsMapResources(
8198        count: ::std::os::raw::c_int,
8199        resources: *mut hipGraphicsResource_t,
8200        stream: hipStream_t,
8201    ) -> hipError_t;
8202}
8203extern "C" {
8204    #[doc = " @brief Get an array through which to access a subresource of a mapped graphics resource.\n\n @param [out] array - Pointer of array through which a subresource of resource may be accessed.\n @param [in] resource - Mapped resource to access.\n @param [in] arrayIndex - Array index for the subresource to access.\n @param [in] mipLevel - Mipmap level for the subresource to access.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n\n @note  In this API, the value of arrayIndex higher than zero is currently not supported.\n"]
8205    pub fn hipGraphicsSubResourceGetMappedArray(
8206        array: *mut hipArray_t,
8207        resource: hipGraphicsResource_t,
8208        arrayIndex: ::std::os::raw::c_uint,
8209        mipLevel: ::std::os::raw::c_uint,
8210    ) -> hipError_t;
8211}
8212extern "C" {
8213    #[doc = " @brief Gets device accessible address of a graphics resource.\n\n @param [out] devPtr - Pointer of device through which graphic resource may be accessed.\n @param [out] size - Size of the buffer accessible from devPtr.\n @param [in] resource - Mapped resource to access.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
8214    pub fn hipGraphicsResourceGetMappedPointer(
8215        devPtr: *mut *mut ::std::os::raw::c_void,
8216        size: *mut usize,
8217        resource: hipGraphicsResource_t,
8218    ) -> hipError_t;
8219}
8220extern "C" {
8221    #[doc = " @brief Unmaps graphics resources.\n\n @param [in] count - Number of resources to unmap.\n @param [in] resources - Pointer of resources to unmap.\n @param [in] stream - Stream for synchronization.\n\n @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown, #hipErrorContextIsDestroyed\n"]
8222    pub fn hipGraphicsUnmapResources(
8223        count: ::std::os::raw::c_int,
8224        resources: *mut hipGraphicsResource_t,
8225        stream: hipStream_t,
8226    ) -> hipError_t;
8227}
8228extern "C" {
8229    #[doc = " @brief Unregisters a graphics resource.\n\n @param [in] resource - Graphics resources to unregister.\n\n @returns #hipSuccess\n"]
8230    pub fn hipGraphicsUnregisterResource(resource: hipGraphicsResource_t) -> hipError_t;
8231}
8232extern "C" {
8233    #[doc = " @brief Create a surface object.\n\n @param [out] pSurfObject  Pointer of surface object to be created.\n @param [in] pResDesc  Pointer of suface object descriptor.\n\n @returns #hipSuccess, #hipErrorInvalidValue\n"]
8234    pub fn hipCreateSurfaceObject(
8235        pSurfObject: *mut hipSurfaceObject_t,
8236        pResDesc: *const hipResourceDesc,
8237    ) -> hipError_t;
8238}
8239extern "C" {
8240    #[doc = " @brief Destroy a surface object.\n\n @param [in] surfaceObject  Surface object to be destroyed.\n\n @returns #hipSuccess, #hipErrorInvalidValue"]
8241    pub fn hipDestroySurfaceObject(surfaceObject: hipSurfaceObject_t) -> hipError_t;
8242}
8243extern "C" {
8244    pub fn hipMemcpy_spt(
8245        dst: *mut ::std::os::raw::c_void,
8246        src: *const ::std::os::raw::c_void,
8247        sizeBytes: usize,
8248        kind: hipMemcpyKind,
8249    ) -> hipError_t;
8250}
8251extern "C" {
8252    pub fn hipMemcpyToSymbol_spt(
8253        symbol: *const ::std::os::raw::c_void,
8254        src: *const ::std::os::raw::c_void,
8255        sizeBytes: usize,
8256        offset: usize,
8257        kind: hipMemcpyKind,
8258    ) -> hipError_t;
8259}
8260extern "C" {
8261    pub fn hipMemcpyFromSymbol_spt(
8262        dst: *mut ::std::os::raw::c_void,
8263        symbol: *const ::std::os::raw::c_void,
8264        sizeBytes: usize,
8265        offset: usize,
8266        kind: hipMemcpyKind,
8267    ) -> hipError_t;
8268}
8269extern "C" {
8270    pub fn hipMemcpy2D_spt(
8271        dst: *mut ::std::os::raw::c_void,
8272        dpitch: usize,
8273        src: *const ::std::os::raw::c_void,
8274        spitch: usize,
8275        width: usize,
8276        height: usize,
8277        kind: hipMemcpyKind,
8278    ) -> hipError_t;
8279}
8280extern "C" {
8281    pub fn hipMemcpy2DFromArray_spt(
8282        dst: *mut ::std::os::raw::c_void,
8283        dpitch: usize,
8284        src: hipArray_const_t,
8285        wOffset: usize,
8286        hOffset: usize,
8287        width: usize,
8288        height: usize,
8289        kind: hipMemcpyKind,
8290    ) -> hipError_t;
8291}
8292extern "C" {
8293    pub fn hipMemcpy3D_spt(p: *const hipMemcpy3DParms) -> hipError_t;
8294}
8295extern "C" {
8296    pub fn hipMemset_spt(
8297        dst: *mut ::std::os::raw::c_void,
8298        value: ::std::os::raw::c_int,
8299        sizeBytes: usize,
8300    ) -> hipError_t;
8301}
8302extern "C" {
8303    pub fn hipMemsetAsync_spt(
8304        dst: *mut ::std::os::raw::c_void,
8305        value: ::std::os::raw::c_int,
8306        sizeBytes: usize,
8307        stream: hipStream_t,
8308    ) -> hipError_t;
8309}
8310extern "C" {
8311    pub fn hipMemset2D_spt(
8312        dst: *mut ::std::os::raw::c_void,
8313        pitch: usize,
8314        value: ::std::os::raw::c_int,
8315        width: usize,
8316        height: usize,
8317    ) -> hipError_t;
8318}
8319extern "C" {
8320    pub fn hipMemset2DAsync_spt(
8321        dst: *mut ::std::os::raw::c_void,
8322        pitch: usize,
8323        value: ::std::os::raw::c_int,
8324        width: usize,
8325        height: usize,
8326        stream: hipStream_t,
8327    ) -> hipError_t;
8328}
8329extern "C" {
8330    pub fn hipMemset3DAsync_spt(
8331        pitchedDevPtr: hipPitchedPtr,
8332        value: ::std::os::raw::c_int,
8333        extent: hipExtent,
8334        stream: hipStream_t,
8335    ) -> hipError_t;
8336}
8337extern "C" {
8338    pub fn hipMemset3D_spt(
8339        pitchedDevPtr: hipPitchedPtr,
8340        value: ::std::os::raw::c_int,
8341        extent: hipExtent,
8342    ) -> hipError_t;
8343}
8344extern "C" {
8345    pub fn hipMemcpyAsync_spt(
8346        dst: *mut ::std::os::raw::c_void,
8347        src: *const ::std::os::raw::c_void,
8348        sizeBytes: usize,
8349        kind: hipMemcpyKind,
8350        stream: hipStream_t,
8351    ) -> hipError_t;
8352}
8353extern "C" {
8354    pub fn hipMemcpy3DAsync_spt(p: *const hipMemcpy3DParms, stream: hipStream_t) -> hipError_t;
8355}
8356extern "C" {
8357    pub fn hipMemcpy2DAsync_spt(
8358        dst: *mut ::std::os::raw::c_void,
8359        dpitch: usize,
8360        src: *const ::std::os::raw::c_void,
8361        spitch: usize,
8362        width: usize,
8363        height: usize,
8364        kind: hipMemcpyKind,
8365        stream: hipStream_t,
8366    ) -> hipError_t;
8367}
8368extern "C" {
8369    pub fn hipMemcpyFromSymbolAsync_spt(
8370        dst: *mut ::std::os::raw::c_void,
8371        symbol: *const ::std::os::raw::c_void,
8372        sizeBytes: usize,
8373        offset: usize,
8374        kind: hipMemcpyKind,
8375        stream: hipStream_t,
8376    ) -> hipError_t;
8377}
8378extern "C" {
8379    pub fn hipMemcpyToSymbolAsync_spt(
8380        symbol: *const ::std::os::raw::c_void,
8381        src: *const ::std::os::raw::c_void,
8382        sizeBytes: usize,
8383        offset: usize,
8384        kind: hipMemcpyKind,
8385        stream: hipStream_t,
8386    ) -> hipError_t;
8387}
8388extern "C" {
8389    pub fn hipMemcpyFromArray_spt(
8390        dst: *mut ::std::os::raw::c_void,
8391        src: hipArray_const_t,
8392        wOffsetSrc: usize,
8393        hOffset: usize,
8394        count: usize,
8395        kind: hipMemcpyKind,
8396    ) -> hipError_t;
8397}
8398extern "C" {
8399    pub fn hipMemcpy2DToArray_spt(
8400        dst: hipArray_t,
8401        wOffset: usize,
8402        hOffset: usize,
8403        src: *const ::std::os::raw::c_void,
8404        spitch: usize,
8405        width: usize,
8406        height: usize,
8407        kind: hipMemcpyKind,
8408    ) -> hipError_t;
8409}
8410extern "C" {
8411    pub fn hipMemcpy2DFromArrayAsync_spt(
8412        dst: *mut ::std::os::raw::c_void,
8413        dpitch: usize,
8414        src: hipArray_const_t,
8415        wOffsetSrc: usize,
8416        hOffsetSrc: usize,
8417        width: usize,
8418        height: usize,
8419        kind: hipMemcpyKind,
8420        stream: hipStream_t,
8421    ) -> hipError_t;
8422}
8423extern "C" {
8424    pub fn hipMemcpy2DToArrayAsync_spt(
8425        dst: hipArray_t,
8426        wOffset: usize,
8427        hOffset: usize,
8428        src: *const ::std::os::raw::c_void,
8429        spitch: usize,
8430        width: usize,
8431        height: usize,
8432        kind: hipMemcpyKind,
8433        stream: hipStream_t,
8434    ) -> hipError_t;
8435}
8436extern "C" {
8437    pub fn hipStreamQuery_spt(stream: hipStream_t) -> hipError_t;
8438}
8439extern "C" {
8440    pub fn hipStreamSynchronize_spt(stream: hipStream_t) -> hipError_t;
8441}
8442extern "C" {
8443    pub fn hipStreamGetPriority_spt(
8444        stream: hipStream_t,
8445        priority: *mut ::std::os::raw::c_int,
8446    ) -> hipError_t;
8447}
8448extern "C" {
8449    pub fn hipStreamWaitEvent_spt(
8450        stream: hipStream_t,
8451        event: hipEvent_t,
8452        flags: ::std::os::raw::c_uint,
8453    ) -> hipError_t;
8454}
8455extern "C" {
8456    pub fn hipStreamGetFlags_spt(
8457        stream: hipStream_t,
8458        flags: *mut ::std::os::raw::c_uint,
8459    ) -> hipError_t;
8460}
8461extern "C" {
8462    pub fn hipStreamAddCallback_spt(
8463        stream: hipStream_t,
8464        callback: hipStreamCallback_t,
8465        userData: *mut ::std::os::raw::c_void,
8466        flags: ::std::os::raw::c_uint,
8467    ) -> hipError_t;
8468}
8469extern "C" {
8470    pub fn hipEventRecord_spt(event: hipEvent_t, stream: hipStream_t) -> hipError_t;
8471}
8472extern "C" {
8473    pub fn hipLaunchCooperativeKernel_spt(
8474        f: *const ::std::os::raw::c_void,
8475        gridDim: dim3,
8476        blockDim: dim3,
8477        kernelParams: *mut *mut ::std::os::raw::c_void,
8478        sharedMemBytes: u32,
8479        hStream: hipStream_t,
8480    ) -> hipError_t;
8481}
8482extern "C" {
8483    pub fn hipLaunchKernel_spt(
8484        function_address: *const ::std::os::raw::c_void,
8485        numBlocks: dim3,
8486        dimBlocks: dim3,
8487        args: *mut *mut ::std::os::raw::c_void,
8488        sharedMemBytes: usize,
8489        stream: hipStream_t,
8490    ) -> hipError_t;
8491}
8492extern "C" {
8493    pub fn hipGraphLaunch_spt(graphExec: hipGraphExec_t, stream: hipStream_t) -> hipError_t;
8494}
8495extern "C" {
8496    pub fn hipStreamBeginCapture_spt(stream: hipStream_t, mode: hipStreamCaptureMode)
8497        -> hipError_t;
8498}
8499extern "C" {
8500    pub fn hipStreamEndCapture_spt(stream: hipStream_t, pGraph: *mut hipGraph_t) -> hipError_t;
8501}
8502extern "C" {
8503    pub fn hipStreamIsCapturing_spt(
8504        stream: hipStream_t,
8505        pCaptureStatus: *mut hipStreamCaptureStatus,
8506    ) -> hipError_t;
8507}
8508extern "C" {
8509    pub fn hipStreamGetCaptureInfo_spt(
8510        stream: hipStream_t,
8511        pCaptureStatus: *mut hipStreamCaptureStatus,
8512        pId: *mut ::std::os::raw::c_ulonglong,
8513    ) -> hipError_t;
8514}
8515extern "C" {
8516    pub fn hipStreamGetCaptureInfo_v2_spt(
8517        stream: hipStream_t,
8518        captureStatus_out: *mut hipStreamCaptureStatus,
8519        id_out: *mut ::std::os::raw::c_ulonglong,
8520        graph_out: *mut hipGraph_t,
8521        dependencies_out: *mut *const hipGraphNode_t,
8522        numDependencies_out: *mut usize,
8523    ) -> hipError_t;
8524}
8525extern "C" {
8526    pub fn hipLaunchHostFunc_spt(
8527        stream: hipStream_t,
8528        fn_: hipHostFn_t,
8529        userData: *mut ::std::os::raw::c_void,
8530    ) -> hipError_t;
8531}
8532#[repr(C)]
8533#[derive(Debug, Copy, Clone)]
8534pub struct __locale_data {
8535    pub _address: u8,
8536}