HIP: Heterogenous-computing Interface for Portability
hip_api_trace.hpp
1 /*
2  Copyright (c) 2023 - 2024 Advanced Micro Devices, Inc. All rights reserved.
3 
4  Permission is hereby granted, free of charge, to any person obtaining a copy
5  of this software and associated documentation files (the "Software"), to deal
6  in the Software without restriction, including without limitation the rights
7  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  copies of the Software, and to permit persons to whom the Software is
9  furnished to do so, subject to the following conditions:
10 
11  The above copyright notice and this permission notice shall be included in
12  all copies or substantial portions of the Software.
13 
14  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  THE SOFTWARE.
21  */
22 #pragma once
23 
24 #include <hip/hip_runtime.h>
25 
26 // Define some version macros for the API table. Use similar naming conventions to HSA-runtime
27 // (MAJOR and STEP versions). Three groups at this time:
28 //
29 // (A) HIP_API_TABLE_* defines for versioning for API table structure
30 // (B) HIP_RUNTIME_API_TABLE_* defines for versioning the HipDispatchTable struct
31 // (C) HIP_COMPILER_API_TABLE_* defines for versioning the HipCompilerDispatchTable struct
32 //
33 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34 //
35 // 1. When new functions are added to the API table, always add the new function pointer to the
36 // end of the table and increment the dispatch table's step version number. NEVER re-arrange
37 // the order of the member variables in a dispatch table. This will break the ABI.
38 // 2. In dire circumstances, if the type of an existing member variable in a dispatch
39 // table has be changed because a data type has been changed/removed, increment the dispatch
40 // table's major version number. If the function pointer type can no longer be declared, DO
41 // NOT REMOVE IT! Make the function pointer type void* and have it always be set to a nullptr.
42 //
43 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
44 //
45 // The major version number should (ideally) never need to be incremented.
46 // - Increment the HIP_API_TABLE_MAJOR_VERSION for fundamental changes to the API table structs.
47 // - Increment the HIP_RUNTIME_API_TABLE_MAJOR_VERSION for fundamental changes to the
48 // HipDispatchTable struct, such as a *change* to type/name an existing member variable. DO NOT
49 // REMOVE IT.
50 // - Increment the HIP_COMPILER_API_TABLE_MAJOR_VERSION for fundamental changes to the
51 // HipCompilerDispatchTable struct, such as a *change* to type/name an existing member variable.
52 // DO NOT REMOVE IT.
53 #define HIP_API_TABLE_MAJOR_VERSION 0
54 #define HIP_COMPILER_API_TABLE_MAJOR_VERSION 0
55 #define HIP_RUNTIME_API_TABLE_MAJOR_VERSION 0
56 
57 // The step version number should be changed whenever the size of the API table struct(s) change.
58 // - Increment the HIP_API_TABLE_STEP_VERSION when/if new API table structs are added
59 // - Increment the HIP_RUNTIME_API_TABLE_STEP_VERSION when new runtime API functions are added
60 // - Increment the HIP_COMPILER_API_TABLE_STEP_VERSION when new compiler API functions are added
61 // - Reset any of the *_STEP_VERSION defines to zero if the corresponding *_MAJOR_VERSION increases
62 #define HIP_API_TABLE_STEP_VERSION 0
63 #define HIP_COMPILER_API_TABLE_STEP_VERSION 0
64 #define HIP_RUNTIME_API_TABLE_STEP_VERSION 3
65 
66 // HIP API interface
67 typedef hipError_t (*t___hipPopCallConfiguration)(dim3* gridDim, dim3* blockDim, size_t* sharedMem,
68  hipStream_t* stream);
69 typedef hipError_t (*t___hipPushCallConfiguration)(dim3 gridDim, dim3 blockDim, size_t sharedMem,
70  hipStream_t stream);
71 typedef void** (*t___hipRegisterFatBinary)(const void* data);
72 typedef void (*t___hipRegisterFunction)(void** modules, const void* hostFunction,
73  char* deviceFunction, const char* deviceName,
74  unsigned int threadLimit, uint3* tid, uint3* bid,
75  dim3* blockDim, dim3* gridDim, int* wSize);
76 typedef void (*t___hipRegisterManagedVar)(void* hipModule, void** pointer, void* init_value,
77  const char* name, size_t size, unsigned align);
78 typedef void (*t___hipRegisterSurface)(void** modules, void* var, char* hostVar,
79  char* deviceVar, int type, int ext);
80 typedef void (*t___hipRegisterTexture)(void** modules, void* var, char* hostVar,
81  char* deviceVar, int type, int norm, int ext);
82 typedef void (*t___hipRegisterVar)(void** modules, void* var, char* hostVar,
83  char* deviceVar, int ext, size_t size, int constant, int global);
84 typedef void (*t___hipUnregisterFatBinary)(void** modules);
85 
86 typedef const char* (*t_hipApiName)(uint32_t id);
87 typedef hipError_t (*t_hipArray3DCreate)(hipArray_t* array,
88  const HIP_ARRAY3D_DESCRIPTOR* pAllocateArray);
89 typedef hipError_t (*t_hipArray3DGetDescriptor)(HIP_ARRAY3D_DESCRIPTOR* pArrayDescriptor,
90  hipArray_t array);
91 typedef hipError_t (*t_hipArrayCreate)(hipArray_t* pHandle,
92  const HIP_ARRAY_DESCRIPTOR* pAllocateArray);
93 typedef hipError_t (*t_hipArrayDestroy)(hipArray_t array);
94 typedef hipError_t (*t_hipArrayGetDescriptor)(HIP_ARRAY_DESCRIPTOR* pArrayDescriptor,
95  hipArray_t array);
96 typedef hipError_t (*t_hipArrayGetInfo)(hipChannelFormatDesc* desc, hipExtent* extent,
97  unsigned int* flags, hipArray_t array);
98 typedef hipError_t (*t_hipBindTexture)(size_t* offset, const textureReference* tex,
99  const void* devPtr, const hipChannelFormatDesc* desc,
100  size_t size);
101 typedef hipError_t (*t_hipBindTexture2D)(size_t* offset, const textureReference* tex,
102  const void* devPtr, const hipChannelFormatDesc* desc,
103  size_t width, size_t height, size_t pitch);
104 typedef hipError_t (*t_hipBindTextureToArray)(const textureReference* tex, hipArray_const_t array,
105  const hipChannelFormatDesc* desc);
106 typedef hipError_t (*t_hipBindTextureToMipmappedArray)(const textureReference* tex,
107  hipMipmappedArray_const_t mipmappedArray,
108  const hipChannelFormatDesc* desc);
109 typedef hipError_t (*t_hipChooseDevice)(int* device, const hipDeviceProp_t* prop);
110 typedef hipError_t (*t_hipChooseDeviceR0000)(int* device, const hipDeviceProp_tR0000* properties);
111 typedef hipError_t (*t_hipConfigureCall)(dim3 gridDim, dim3 blockDim, size_t sharedMem,
112  hipStream_t stream);
113 typedef hipError_t (*t_hipCreateSurfaceObject)(hipSurfaceObject_t* pSurfObject,
114  const hipResourceDesc* pResDesc);
115 typedef hipError_t (*t_hipCreateTextureObject)(hipTextureObject_t* pTexObject,
116  const hipResourceDesc* pResDesc,
117  const hipTextureDesc* pTexDesc,
118  const struct hipResourceViewDesc* pResViewDesc);
119 typedef hipError_t (*t_hipCtxCreate)(hipCtx_t* ctx, unsigned int flags, hipDevice_t device);
120 typedef hipError_t (*t_hipCtxDestroy)(hipCtx_t ctx);
121 typedef hipError_t (*t_hipCtxDisablePeerAccess)(hipCtx_t peerCtx);
122 typedef hipError_t (*t_hipCtxEnablePeerAccess)(hipCtx_t peerCtx, unsigned int flags);
123 typedef hipError_t (*t_hipCtxGetApiVersion)(hipCtx_t ctx, int* apiVersion);
124 typedef hipError_t (*t_hipCtxGetCacheConfig)(hipFuncCache_t* cacheConfig);
125 typedef hipError_t (*t_hipCtxGetCurrent)(hipCtx_t* ctx);
126 typedef hipError_t (*t_hipCtxGetDevice)(hipDevice_t* device);
127 typedef hipError_t (*t_hipCtxGetFlags)(unsigned int* flags);
128 typedef hipError_t (*t_hipCtxGetSharedMemConfig)(hipSharedMemConfig* pConfig);
129 typedef hipError_t (*t_hipCtxPopCurrent)(hipCtx_t* ctx);
130 typedef hipError_t (*t_hipCtxPushCurrent)(hipCtx_t ctx);
131 typedef hipError_t (*t_hipCtxSetCacheConfig)(hipFuncCache_t cacheConfig);
132 typedef hipError_t (*t_hipCtxSetCurrent)(hipCtx_t ctx);
133 typedef hipError_t (*t_hipCtxSetSharedMemConfig)(hipSharedMemConfig config);
134 typedef hipError_t (*t_hipCtxSynchronize)(void);
135 typedef hipError_t (*t_hipDestroyExternalMemory)(hipExternalMemory_t extMem);
136 typedef hipError_t (*t_hipDestroyExternalSemaphore)(hipExternalSemaphore_t extSem);
137 typedef hipError_t (*t_hipDestroySurfaceObject)(hipSurfaceObject_t surfaceObject);
138 typedef hipError_t (*t_hipDestroyTextureObject)(hipTextureObject_t textureObject);
139 typedef hipError_t (*t_hipDeviceCanAccessPeer)(int* canAccessPeer, int deviceId, int peerDeviceId);
140 typedef hipError_t (*t_hipDeviceComputeCapability)(int* major, int* minor, hipDevice_t device);
141 typedef hipError_t (*t_hipDeviceDisablePeerAccess)(int peerDeviceId);
142 typedef hipError_t (*t_hipDeviceEnablePeerAccess)(int peerDeviceId, unsigned int flags);
143 typedef hipError_t (*t_hipDeviceGet)(hipDevice_t* device, int ordinal);
144 typedef hipError_t (*t_hipDeviceGetAttribute)(int* pi, hipDeviceAttribute_t attr, int deviceId);
145 typedef hipError_t (*t_hipDeviceGetByPCIBusId)(int* device, const char* pciBusId);
146 typedef hipError_t (*t_hipDeviceGetCacheConfig)(hipFuncCache_t* cacheConfig);
147 typedef hipError_t (*t_hipDeviceGetDefaultMemPool)(hipMemPool_t* mem_pool, int device);
148 typedef hipError_t (*t_hipDeviceGetGraphMemAttribute)(int device, hipGraphMemAttributeType attr,
149  void* value);
150 typedef hipError_t (*t_hipDeviceGetLimit)(size_t* pValue, enum hipLimit_t limit);
151 typedef hipError_t (*t_hipDeviceGetMemPool)(hipMemPool_t* mem_pool, int device);
152 typedef hipError_t (*t_hipDeviceGetName)(char* name, int len, hipDevice_t device);
153 typedef hipError_t (*t_hipDeviceGetP2PAttribute)(int* value, hipDeviceP2PAttr attr, int srcDevice,
154  int dstDevice);
155 typedef hipError_t (*t_hipDeviceGetPCIBusId)(char* pciBusId, int len, int device);
156 typedef hipError_t (*t_hipDeviceGetSharedMemConfig)(hipSharedMemConfig* pConfig);
157 typedef hipError_t (*t_hipDeviceGetStreamPriorityRange)(int* leastPriority, int* greatestPriority);
158 typedef hipError_t (*t_hipDeviceGetUuid)(hipUUID* uuid, hipDevice_t device);
159 typedef hipError_t (*t_hipDeviceGraphMemTrim)(int device);
160 typedef hipError_t (*t_hipDevicePrimaryCtxGetState)(hipDevice_t dev, unsigned int* flags,
161  int* active);
162 typedef hipError_t (*t_hipDevicePrimaryCtxRelease)(hipDevice_t dev);
163 typedef hipError_t (*t_hipDevicePrimaryCtxReset)(hipDevice_t dev);
164 typedef hipError_t (*t_hipDevicePrimaryCtxRetain)(hipCtx_t* pctx, hipDevice_t dev);
165 typedef hipError_t (*t_hipDevicePrimaryCtxSetFlags)(hipDevice_t dev, unsigned int flags);
166 typedef hipError_t (*t_hipDeviceReset)(void);
167 typedef hipError_t (*t_hipDeviceSetCacheConfig)(hipFuncCache_t cacheConfig);
168 typedef hipError_t (*t_hipDeviceSetGraphMemAttribute)(int device, hipGraphMemAttributeType attr,
169  void* value);
170 typedef hipError_t (*t_hipDeviceSetLimit)(enum hipLimit_t limit, size_t value);
171 typedef hipError_t (*t_hipDeviceSetMemPool)(int device, hipMemPool_t mem_pool);
172 typedef hipError_t (*t_hipDeviceSetSharedMemConfig)(hipSharedMemConfig config);
173 typedef hipError_t (*t_hipDeviceSynchronize)(void);
174 typedef hipError_t (*t_hipDeviceTotalMem)(size_t* bytes, hipDevice_t device);
175 typedef hipError_t (*t_hipDriverGetVersion)(int* driverVersion);
176 typedef hipError_t (*t_hipDrvGetErrorName)(hipError_t hipError, const char** errorString);
177 typedef hipError_t (*t_hipDrvGetErrorString)(hipError_t hipError, const char** errorString);
178 typedef hipError_t (*t_hipDrvGraphAddMemcpyNode)(hipGraphNode_t* phGraphNode, hipGraph_t hGraph,
179  const hipGraphNode_t* dependencies,
180  size_t numDependencies,
181  const HIP_MEMCPY3D* copyParams, hipCtx_t ctx);
182 typedef hipError_t (*t_hipDrvMemcpy2DUnaligned)(const hip_Memcpy2D* pCopy);
183 typedef hipError_t (*t_hipDrvMemcpy3D)(const HIP_MEMCPY3D* pCopy);
184 typedef hipError_t (*t_hipDrvMemcpy3DAsync)(const HIP_MEMCPY3D* pCopy, hipStream_t stream);
185 typedef hipError_t (*t_hipDrvPointerGetAttributes)(unsigned int numAttributes,
186  hipPointer_attribute* attributes, void** data,
187  hipDeviceptr_t ptr);
188 typedef hipError_t (*t_hipEventCreate)(hipEvent_t* event);
189 typedef hipError_t (*t_hipEventCreateWithFlags)(hipEvent_t* event, unsigned flags);
190 typedef hipError_t (*t_hipEventDestroy)(hipEvent_t event);
191 typedef hipError_t (*t_hipEventElapsedTime)(float* ms, hipEvent_t start, hipEvent_t stop);
192 typedef hipError_t (*t_hipEventQuery)(hipEvent_t event);
193 typedef hipError_t (*t_hipEventRecord)(hipEvent_t event, hipStream_t stream);
194 typedef hipError_t (*t_hipEventSynchronize)(hipEvent_t event);
195 typedef hipError_t (*t_hipExtGetLinkTypeAndHopCount)(int device1, int device2, uint32_t* linktype,
196  uint32_t* hopcount);
197 typedef hipError_t (*t_hipExtLaunchKernel)(const void* function_address, dim3 numBlocks,
198  dim3 dimBlocks, void** args, size_t sharedMemBytes,
199  hipStream_t stream, hipEvent_t startEvent,
200  hipEvent_t stopEvent, int flags);
201 typedef hipError_t (*t_hipExtLaunchMultiKernelMultiDevice)(hipLaunchParams* launchParamsList,
202  int numDevices, unsigned int flags);
203 typedef hipError_t (*t_hipExtMallocWithFlags)(void** ptr, size_t sizeBytes, unsigned int flags);
204 typedef hipError_t (*t_hipExtStreamCreateWithCUMask)(hipStream_t* stream, uint32_t cuMaskSize,
205  const uint32_t* cuMask);
206 typedef hipError_t (*t_hipExtStreamGetCUMask)(hipStream_t stream, uint32_t cuMaskSize,
207  uint32_t* cuMask);
208 typedef hipError_t (*t_hipExternalMemoryGetMappedBuffer)(
209  void** devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc* bufferDesc);
210 typedef hipError_t (*t_hipFree)(void* ptr);
211 typedef hipError_t (*t_hipFreeArray)(hipArray_t array);
212 typedef hipError_t (*t_hipFreeAsync)(void* dev_ptr, hipStream_t stream);
213 typedef hipError_t (*t_hipFreeHost)(void* ptr);
214 typedef hipError_t (*t_hipFreeMipmappedArray)(hipMipmappedArray_t mipmappedArray);
215 typedef hipError_t (*t_hipFuncGetAttribute)(int* value, hipFunction_attribute attrib,
216  hipFunction_t hfunc);
217 typedef hipError_t (*t_hipFuncGetAttributes)(struct hipFuncAttributes* attr, const void* func);
218 typedef hipError_t (*t_hipFuncSetAttribute)(const void* func, hipFuncAttribute attr, int value);
219 typedef hipError_t (*t_hipFuncSetCacheConfig)(const void* func, hipFuncCache_t config);
220 typedef hipError_t (*t_hipFuncSetSharedMemConfig)(const void* func, hipSharedMemConfig config);
221 typedef hipError_t (*t_hipGLGetDevices)(unsigned int* pHipDeviceCount, int* pHipDevices,
222  unsigned int hipDeviceCount, hipGLDeviceList deviceList);
223 typedef hipError_t (*t_hipGetChannelDesc)(hipChannelFormatDesc* desc, hipArray_const_t array);
224 typedef hipError_t (*t_hipGetDevice)(int* deviceId);
225 typedef hipError_t (*t_hipGetDeviceCount)(int* count);
226 typedef hipError_t (*t_hipGetDeviceFlags)(unsigned int* flags);
227 typedef hipError_t (*t_hipGetDevicePropertiesR0600)(hipDeviceProp_tR0600* prop, int device);
228 typedef hipError_t (*t_hipGetDevicePropertiesR0000)(hipDeviceProp_tR0000* prop, int device);
229 typedef const char* (*t_hipGetErrorName)(hipError_t hip_error);
230 typedef const char* (*t_hipGetErrorString)(hipError_t hipError);
231 typedef hipError_t (*t_hipGetLastError)(void);
232 typedef hipError_t (*t_hipGetMipmappedArrayLevel)(hipArray_t* levelArray,
233  hipMipmappedArray_const_t mipmappedArray,
234  unsigned int level);
235 typedef hipError_t (*t_hipGetSymbolAddress)(void** devPtr, const void* symbol);
236 typedef hipError_t (*t_hipGetSymbolSize)(size_t* size, const void* symbol);
237 typedef hipError_t (*t_hipGetTextureAlignmentOffset)(size_t* offset,
238  const textureReference* texref);
239 typedef hipError_t (*t_hipGetTextureObjectResourceDesc)(hipResourceDesc* pResDesc,
240  hipTextureObject_t textureObject);
241 typedef hipError_t (*t_hipGetTextureObjectResourceViewDesc)(
242  struct hipResourceViewDesc* pResViewDesc, hipTextureObject_t textureObject);
243 typedef hipError_t (*t_hipGetTextureObjectTextureDesc)(hipTextureDesc* pTexDesc,
244  hipTextureObject_t textureObject);
245 typedef hipError_t (*t_hipGetTextureReference)(const textureReference** texref, const void* symbol);
246 typedef hipError_t (*t_hipGraphAddChildGraphNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
247  const hipGraphNode_t* pDependencies,
248  size_t numDependencies, hipGraph_t childGraph);
249 typedef hipError_t (*t_hipGraphAddDependencies)(hipGraph_t graph, const hipGraphNode_t* from,
250  const hipGraphNode_t* to, size_t numDependencies);
251 typedef hipError_t (*t_hipGraphAddEmptyNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
252  const hipGraphNode_t* pDependencies,
253  size_t numDependencies);
254 typedef hipError_t (*t_hipGraphAddEventRecordNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
255  const hipGraphNode_t* pDependencies,
256  size_t numDependencies, hipEvent_t event);
257 typedef hipError_t (*t_hipGraphAddEventWaitNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
258  const hipGraphNode_t* pDependencies,
259  size_t numDependencies, hipEvent_t event);
260 typedef hipError_t (*t_hipGraphAddHostNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
261  const hipGraphNode_t* pDependencies,
262  size_t numDependencies,
263  const hipHostNodeParams* pNodeParams);
264 typedef hipError_t (*t_hipGraphAddKernelNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
265  const hipGraphNode_t* pDependencies,
266  size_t numDependencies,
267  const hipKernelNodeParams* pNodeParams);
268 typedef hipError_t (*t_hipGraphAddMemAllocNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
269  const hipGraphNode_t* pDependencies,
270  size_t numDependencies,
271  hipMemAllocNodeParams* pNodeParams);
272 typedef hipError_t (*t_hipGraphAddMemFreeNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
273  const hipGraphNode_t* pDependencies,
274  size_t numDependencies, void* dev_ptr);
275 typedef hipError_t (*t_hipGraphAddMemcpyNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
276  const hipGraphNode_t* pDependencies,
277  size_t numDependencies,
278  const hipMemcpy3DParms* pCopyParams);
279 typedef hipError_t (*t_hipGraphAddMemcpyNode1D)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
280  const hipGraphNode_t* pDependencies,
281  size_t numDependencies, void* dst, const void* src,
282  size_t count, hipMemcpyKind kind);
283 typedef hipError_t (*t_hipGraphAddMemcpyNodeFromSymbol)(hipGraphNode_t* pGraphNode,
284  hipGraph_t graph,
285  const hipGraphNode_t* pDependencies,
286  size_t numDependencies, void* dst,
287  const void* symbol, size_t count,
288  size_t offset, hipMemcpyKind kind);
289 typedef hipError_t (*t_hipGraphAddMemcpyNodeToSymbol)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
290  const hipGraphNode_t* pDependencies,
291  size_t numDependencies, const void* symbol,
292  const void* src, size_t count, size_t offset,
293  hipMemcpyKind kind);
294 typedef hipError_t (*t_hipGraphAddMemsetNode)(hipGraphNode_t* pGraphNode, hipGraph_t graph,
295  const hipGraphNode_t* pDependencies,
296  size_t numDependencies,
297  const hipMemsetParams* pMemsetParams);
298 
299 typedef hipError_t (*t_hipGraphChildGraphNodeGetGraph)(hipGraphNode_t node, hipGraph_t* pGraph);
300 typedef hipError_t (*t_hipGraphClone)(hipGraph_t* pGraphClone, hipGraph_t originalGraph);
301 typedef hipError_t (*t_hipGraphCreate)(hipGraph_t* pGraph, unsigned int flags);
302 typedef hipError_t (*t_hipGraphDebugDotPrint)(hipGraph_t graph, const char* path,
303  unsigned int flags);
304 typedef hipError_t (*t_hipGraphDestroy)(hipGraph_t graph);
305 typedef hipError_t (*t_hipGraphDestroyNode)(hipGraphNode_t node);
306 typedef hipError_t (*t_hipGraphEventRecordNodeGetEvent)(hipGraphNode_t node, hipEvent_t* event_out);
307 typedef hipError_t (*t_hipGraphEventRecordNodeSetEvent)(hipGraphNode_t node, hipEvent_t event);
308 typedef hipError_t (*t_hipGraphEventWaitNodeGetEvent)(hipGraphNode_t node, hipEvent_t* event_out);
309 typedef hipError_t (*t_hipGraphEventWaitNodeSetEvent)(hipGraphNode_t node, hipEvent_t event);
310 typedef hipError_t (*t_hipGraphExecChildGraphNodeSetParams)(hipGraphExec_t hGraphExec,
311  hipGraphNode_t node,
312  hipGraph_t childGraph);
313 typedef hipError_t (*t_hipGraphExecDestroy)(hipGraphExec_t graphExec);
314 typedef hipError_t (*t_hipGraphExecEventRecordNodeSetEvent)(hipGraphExec_t hGraphExec,
315  hipGraphNode_t hNode, hipEvent_t event);
316 typedef hipError_t (*t_hipGraphExecEventWaitNodeSetEvent)(hipGraphExec_t hGraphExec,
317  hipGraphNode_t hNode, hipEvent_t event);
318 typedef hipError_t (*t_hipGraphExecHostNodeSetParams)(hipGraphExec_t hGraphExec,
319  hipGraphNode_t node,
320  const hipHostNodeParams* pNodeParams);
321 typedef hipError_t (*t_hipGraphExecKernelNodeSetParams)(hipGraphExec_t hGraphExec,
322  hipGraphNode_t node,
323  const hipKernelNodeParams* pNodeParams);
324 typedef hipError_t (*t_hipGraphExecMemcpyNodeSetParams)(hipGraphExec_t hGraphExec,
325  hipGraphNode_t node,
326  hipMemcpy3DParms* pNodeParams);
327 typedef hipError_t (*t_hipGraphExecMemcpyNodeSetParams1D)(hipGraphExec_t hGraphExec,
328  hipGraphNode_t node, void* dst,
329  const void* src, size_t count,
330  hipMemcpyKind kind);
331 typedef hipError_t (*t_hipGraphExecMemcpyNodeSetParamsFromSymbol)(hipGraphExec_t hGraphExec,
332  hipGraphNode_t node, void* dst,
333  const void* symbol, size_t count,
334  size_t offset,
335  hipMemcpyKind kind);
336 typedef hipError_t (*t_hipGraphExecMemcpyNodeSetParamsToSymbol)(hipGraphExec_t hGraphExec,
337  hipGraphNode_t node,
338  const void* symbol, const void* src,
339  size_t count, size_t offset,
340  hipMemcpyKind kind);
341 typedef hipError_t (*t_hipGraphExecMemsetNodeSetParams)(hipGraphExec_t hGraphExec,
342  hipGraphNode_t node,
343  const hipMemsetParams* pNodeParams);
344 typedef hipError_t (*t_hipGraphExecUpdate)(hipGraphExec_t hGraphExec, hipGraph_t hGraph,
345  hipGraphNode_t* hErrorNode_out,
346  hipGraphExecUpdateResult* updateResult_out);
347 typedef hipError_t (*t_hipGraphGetEdges)(hipGraph_t graph, hipGraphNode_t* from, hipGraphNode_t* to,
348  size_t* numEdges);
349 typedef hipError_t (*t_hipGraphGetNodes)(hipGraph_t graph, hipGraphNode_t* nodes, size_t* numNodes);
350 typedef hipError_t (*t_hipGraphGetRootNodes)(hipGraph_t graph, hipGraphNode_t* pRootNodes,
351  size_t* pNumRootNodes);
352 typedef hipError_t (*t_hipGraphHostNodeGetParams)(hipGraphNode_t node,
353  hipHostNodeParams* pNodeParams);
354 typedef hipError_t (*t_hipGraphHostNodeSetParams)(hipGraphNode_t node,
355  const hipHostNodeParams* pNodeParams);
356 typedef hipError_t (*t_hipGraphInstantiate)(hipGraphExec_t* pGraphExec, hipGraph_t graph,
357  hipGraphNode_t* pErrorNode, char* pLogBuffer,
358  size_t bufferSize);
359 typedef hipError_t (*t_hipGraphInstantiateWithFlags)(hipGraphExec_t* pGraphExec, hipGraph_t graph,
360  unsigned long long flags);
361 typedef hipError_t (*t_hipGraphKernelNodeCopyAttributes)(hipGraphNode_t hSrc, hipGraphNode_t hDst);
362 typedef hipError_t (*t_hipGraphKernelNodeGetAttribute)(hipGraphNode_t hNode,
363  hipKernelNodeAttrID attr,
364  hipKernelNodeAttrValue* value);
365 typedef hipError_t (*t_hipGraphKernelNodeGetParams)(hipGraphNode_t node,
366  hipKernelNodeParams* pNodeParams);
367 typedef hipError_t (*t_hipGraphKernelNodeSetAttribute)(hipGraphNode_t hNode,
368  hipKernelNodeAttrID attr,
369  const hipKernelNodeAttrValue* value);
370 typedef hipError_t (*t_hipGraphKernelNodeSetParams)(hipGraphNode_t node,
371  const hipKernelNodeParams* pNodeParams);
372 typedef hipError_t (*t_hipGraphLaunch)(hipGraphExec_t graphExec, hipStream_t stream);
373 typedef hipError_t (*t_hipGraphMemAllocNodeGetParams)(hipGraphNode_t node,
374  hipMemAllocNodeParams* pNodeParams);
375 typedef hipError_t (*t_hipGraphMemFreeNodeGetParams)(hipGraphNode_t node, void* dev_ptr);
376 typedef hipError_t (*t_hipGraphMemcpyNodeGetParams)(hipGraphNode_t node,
377  hipMemcpy3DParms* pNodeParams);
378 typedef hipError_t (*t_hipGraphMemcpyNodeSetParams)(hipGraphNode_t node,
379  const hipMemcpy3DParms* pNodeParams);
380 typedef hipError_t (*t_hipGraphMemcpyNodeSetParams1D)(hipGraphNode_t node, void* dst,
381  const void* src, size_t count,
382  hipMemcpyKind kind);
383 typedef hipError_t (*t_hipGraphMemcpyNodeSetParamsFromSymbol)(hipGraphNode_t node, void* dst,
384  const void* symbol, size_t count,
385  size_t offset, hipMemcpyKind kind);
386 typedef hipError_t (*t_hipGraphMemcpyNodeSetParamsToSymbol)(hipGraphNode_t node, const void* symbol,
387  const void* src, size_t count,
388  size_t offset, hipMemcpyKind kind);
389 typedef hipError_t (*t_hipGraphMemsetNodeGetParams)(hipGraphNode_t node,
390  hipMemsetParams* pNodeParams);
391 typedef hipError_t (*t_hipGraphMemsetNodeSetParams)(hipGraphNode_t node,
392  const hipMemsetParams* pNodeParams);
393 typedef hipError_t (*t_hipGraphNodeFindInClone)(hipGraphNode_t* pNode, hipGraphNode_t originalNode,
394  hipGraph_t clonedGraph);
395 typedef hipError_t (*t_hipGraphNodeGetDependencies)(hipGraphNode_t node,
396  hipGraphNode_t* pDependencies,
397  size_t* pNumDependencies);
398 typedef hipError_t (*t_hipGraphNodeGetDependentNodes)(hipGraphNode_t node,
399  hipGraphNode_t* pDependentNodes,
400  size_t* pNumDependentNodes);
401 typedef hipError_t (*t_hipGraphNodeGetEnabled)(hipGraphExec_t hGraphExec, hipGraphNode_t hNode,
402  unsigned int* isEnabled);
403 typedef hipError_t (*t_hipGraphNodeGetType)(hipGraphNode_t node, hipGraphNodeType* pType);
404 typedef hipError_t (*t_hipGraphNodeSetEnabled)(hipGraphExec_t hGraphExec, hipGraphNode_t hNode,
405  unsigned int isEnabled);
406 typedef hipError_t (*t_hipGraphReleaseUserObject)(hipGraph_t graph, hipUserObject_t object,
407  unsigned int count);
408 typedef hipError_t (*t_hipGraphRemoveDependencies)(hipGraph_t graph, const hipGraphNode_t* from,
409  const hipGraphNode_t* to,
410  size_t numDependencies);
411 typedef hipError_t (*t_hipGraphRetainUserObject)(hipGraph_t graph, hipUserObject_t object,
412  unsigned int count, unsigned int flags);
413 typedef hipError_t (*t_hipGraphUpload)(hipGraphExec_t graphExec, hipStream_t stream);
414 typedef hipError_t (*t_hipGraphicsGLRegisterBuffer)(hipGraphicsResource** resource, GLuint buffer,
415  unsigned int flags);
416 typedef hipError_t (*t_hipGraphicsGLRegisterImage)(hipGraphicsResource** resource, GLuint image,
417  GLenum target, unsigned int flags);
418 typedef hipError_t (*t_hipGraphicsMapResources)(int count, hipGraphicsResource_t* resources,
419  hipStream_t stream);
420 typedef hipError_t (*t_hipGraphicsResourceGetMappedPointer)(void** devPtr, size_t* size,
421  hipGraphicsResource_t resource);
422 typedef hipError_t (*t_hipGraphicsSubResourceGetMappedArray)(hipArray_t* array,
423  hipGraphicsResource_t resource,
424  unsigned int arrayIndex,
425  unsigned int mipLevel);
426 typedef hipError_t (*t_hipGraphicsUnmapResources)(int count, hipGraphicsResource_t* resources,
427  hipStream_t stream);
428 typedef hipError_t (*t_hipGraphicsUnregisterResource)(hipGraphicsResource_t resource);
429 typedef hipError_t (*t_hipHostAlloc)(void** ptr, size_t size, unsigned int flags);
430 typedef hipError_t (*t_hipHostFree)(void* ptr);
431 typedef hipError_t (*t_hipHostGetDevicePointer)(void** devPtr, void* hstPtr, unsigned int flags);
432 typedef hipError_t (*t_hipHostGetFlags)(unsigned int* flagsPtr, void* hostPtr);
433 typedef hipError_t (*t_hipHostMalloc)(void** ptr, size_t size, unsigned int flags);
434 typedef hipError_t (*t_hipHostRegister)(void* hostPtr, size_t sizeBytes, unsigned int flags);
435 typedef hipError_t (*t_hipHostUnregister)(void* hostPtr);
436 typedef hipError_t (*t_hipImportExternalMemory)(hipExternalMemory_t* extMem_out,
437  const hipExternalMemoryHandleDesc* memHandleDesc);
438 typedef hipError_t (*t_hipImportExternalSemaphore)(
439  hipExternalSemaphore_t* extSem_out, const hipExternalSemaphoreHandleDesc* semHandleDesc);
440 typedef hipError_t (*t_hipInit)(unsigned int flags);
441 typedef hipError_t (*t_hipIpcCloseMemHandle)(void* devPtr);
442 typedef hipError_t (*t_hipIpcGetEventHandle)(hipIpcEventHandle_t* handle, hipEvent_t event);
443 typedef hipError_t (*t_hipIpcGetMemHandle)(hipIpcMemHandle_t* handle, void* devPtr);
444 typedef hipError_t (*t_hipIpcOpenEventHandle)(hipEvent_t* event, hipIpcEventHandle_t handle);
445 typedef hipError_t (*t_hipIpcOpenMemHandle)(void** devPtr, hipIpcMemHandle_t handle,
446  unsigned int flags);
447 typedef const char* (*t_hipKernelNameRef)(const hipFunction_t f);
448 typedef const char* (*t_hipKernelNameRefByPtr)(const void* hostFunction, hipStream_t stream);
449 typedef hipError_t (*t_hipLaunchByPtr)(const void* func);
450 typedef hipError_t (*t_hipLaunchCooperativeKernel)(const void* f, dim3 gridDim, dim3 blockDimX,
451  void** kernelParams, unsigned int sharedMemBytes,
452  hipStream_t stream);
453 typedef hipError_t (*t_hipLaunchCooperativeKernelMultiDevice)(hipLaunchParams* launchParamsList,
454  int numDevices, unsigned int flags);
455 typedef hipError_t (*t_hipLaunchHostFunc)(hipStream_t stream, hipHostFn_t fn, void* userData);
456 typedef hipError_t (*t_hipLaunchKernel)(const void* function_address, dim3 numBlocks,
457  dim3 dimBlocks, void** args, size_t sharedMemBytes,
458  hipStream_t stream);
459 typedef hipError_t (*t_hipMalloc)(void** ptr, size_t size);
460 typedef hipError_t (*t_hipMalloc3D)(hipPitchedPtr* pitchedDevPtr, hipExtent extent);
461 typedef hipError_t (*t_hipMalloc3DArray)(hipArray_t* array, const struct hipChannelFormatDesc* desc,
462  struct hipExtent extent, unsigned int flags);
463 typedef hipError_t (*t_hipMallocArray)(hipArray_t* array, const hipChannelFormatDesc* desc,
464  size_t width, size_t height, unsigned int flags);
465 typedef hipError_t (*t_hipMallocAsync)(void** dev_ptr, size_t size, hipStream_t stream);
466 typedef hipError_t (*t_hipMallocFromPoolAsync)(void** dev_ptr, size_t size, hipMemPool_t mem_pool,
467  hipStream_t stream);
468 typedef hipError_t (*t_hipMallocHost)(void** ptr, size_t size);
469 typedef hipError_t (*t_hipMallocManaged)(void** dev_ptr, size_t size, unsigned int flags);
470 typedef hipError_t (*t_hipMallocMipmappedArray)(hipMipmappedArray_t* mipmappedArray,
471  const struct hipChannelFormatDesc* desc,
472  struct hipExtent extent, unsigned int numLevels,
473  unsigned int flags);
474 typedef hipError_t (*t_hipMallocPitch)(void** ptr, size_t* pitch, size_t width, size_t height);
475 typedef hipError_t (*t_hipMemAddressFree)(void* devPtr, size_t size);
476 typedef hipError_t (*t_hipMemAddressReserve)(void** ptr, size_t size, size_t alignment, void* addr,
477  unsigned long long flags);
478 typedef hipError_t (*t_hipMemAdvise)(const void* dev_ptr, size_t count, hipMemoryAdvise advice,
479  int device);
480 typedef hipError_t (*t_hipMemAllocHost)(void** ptr, size_t size);
481 typedef hipError_t (*t_hipMemAllocPitch)(hipDeviceptr_t* dptr, size_t* pitch, size_t widthInBytes,
482  size_t height, unsigned int elementSizeBytes);
483 typedef hipError_t (*t_hipMemCreate)(hipMemGenericAllocationHandle_t* handle, size_t size,
484  const hipMemAllocationProp* prop, unsigned long long flags);
485 typedef hipError_t (*t_hipMemExportToShareableHandle)(void* shareableHandle,
486  hipMemGenericAllocationHandle_t handle,
487  hipMemAllocationHandleType handleType,
488  unsigned long long flags);
489 typedef hipError_t (*t_hipMemGetAccess)(unsigned long long* flags, const hipMemLocation* location,
490  void* ptr);
491 typedef hipError_t (*t_hipMemGetAddressRange)(hipDeviceptr_t* pbase, size_t* psize,
492  hipDeviceptr_t dptr);
493 typedef hipError_t (*t_hipMemGetAllocationGranularity)(size_t* granularity,
494  const hipMemAllocationProp* prop,
495  hipMemAllocationGranularity_flags option);
496 typedef hipError_t (*t_hipMemGetAllocationPropertiesFromHandle)(
497  hipMemAllocationProp* prop, hipMemGenericAllocationHandle_t handle);
498 typedef hipError_t (*t_hipMemGetInfo)(size_t* free, size_t* total);
499 typedef hipError_t (*t_hipMemImportFromShareableHandle)(hipMemGenericAllocationHandle_t* handle,
500  void* osHandle,
501  hipMemAllocationHandleType shHandleType);
502 typedef hipError_t (*t_hipMemMap)(void* ptr, size_t size, size_t offset,
503  hipMemGenericAllocationHandle_t handle, unsigned long long flags);
504 typedef hipError_t (*t_hipMemMapArrayAsync)(hipArrayMapInfo* mapInfoList, unsigned int count,
505  hipStream_t stream);
506 typedef hipError_t (*t_hipMemPoolCreate)(hipMemPool_t* mem_pool, const hipMemPoolProps* pool_props);
507 typedef hipError_t (*t_hipMemPoolDestroy)(hipMemPool_t mem_pool);
508 typedef hipError_t (*t_hipMemPoolExportPointer)(hipMemPoolPtrExportData* export_data,
509  void* dev_ptr);
510 typedef hipError_t (*t_hipMemPoolExportToShareableHandle)(void* shared_handle,
511  hipMemPool_t mem_pool,
512  hipMemAllocationHandleType handle_type,
513  unsigned int flags);
514 typedef hipError_t (*t_hipMemPoolGetAccess)(hipMemAccessFlags* flags, hipMemPool_t mem_pool,
515  hipMemLocation* location);
516 typedef hipError_t (*t_hipMemPoolGetAttribute)(hipMemPool_t mem_pool, hipMemPoolAttr attr,
517  void* value);
518 typedef hipError_t (*t_hipMemPoolImportFromShareableHandle)(hipMemPool_t* mem_pool,
519  void* shared_handle,
520  hipMemAllocationHandleType handle_type,
521  unsigned int flags);
522 typedef hipError_t (*t_hipMemPoolImportPointer)(void** dev_ptr, hipMemPool_t mem_pool,
523  hipMemPoolPtrExportData* export_data);
524 typedef hipError_t (*t_hipMemPoolSetAccess)(hipMemPool_t mem_pool,
525  const hipMemAccessDesc* desc_list, size_t count);
526 typedef hipError_t (*t_hipMemPoolSetAttribute)(hipMemPool_t mem_pool, hipMemPoolAttr attr,
527  void* value);
528 typedef hipError_t (*t_hipMemPoolTrimTo)(hipMemPool_t mem_pool, size_t min_bytes_to_hold);
529 typedef hipError_t (*t_hipMemPrefetchAsync)(const void* dev_ptr, size_t count, int device,
530  hipStream_t stream);
531 typedef hipError_t (*t_hipMemPtrGetInfo)(void* ptr, size_t* size);
532 typedef hipError_t (*t_hipMemRangeGetAttribute)(void* data, size_t data_size,
533  hipMemRangeAttribute attribute, const void* dev_ptr,
534  size_t count);
535 typedef hipError_t (*t_hipMemRangeGetAttributes)(void** data, size_t* data_sizes,
536  hipMemRangeAttribute* attributes,
537  size_t num_attributes, const void* dev_ptr,
538  size_t count);
539 typedef hipError_t (*t_hipMemRelease)(hipMemGenericAllocationHandle_t handle);
540 typedef hipError_t (*t_hipMemRetainAllocationHandle)(hipMemGenericAllocationHandle_t* handle,
541  void* addr);
542 typedef hipError_t (*t_hipMemSetAccess)(void* ptr, size_t size, const hipMemAccessDesc* desc,
543  size_t count);
544 typedef hipError_t (*t_hipMemUnmap)(void* ptr, size_t size);
545 typedef hipError_t (*t_hipMemcpy)(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind);
546 typedef hipError_t (*t_hipMemcpy2D)(void* dst, size_t dpitch, const void* src, size_t spitch,
547  size_t width, size_t height, hipMemcpyKind kind);
548 typedef hipError_t (*t_hipMemcpy2DAsync)(void* dst, size_t dpitch, const void* src, size_t spitch,
549  size_t width, size_t height, hipMemcpyKind kind,
550  hipStream_t stream);
551 typedef hipError_t (*t_hipMemcpy2DFromArray)(void* dst, size_t dpitch, hipArray_const_t src,
552  size_t wOffset, size_t hOffset, size_t width,
553  size_t height, hipMemcpyKind kind);
554 typedef hipError_t (*t_hipMemcpy2DFromArrayAsync)(void* dst, size_t dpitch, hipArray_const_t src,
555  size_t wOffset, size_t hOffset, size_t width,
556  size_t height, hipMemcpyKind kind,
557  hipStream_t stream);
558 typedef hipError_t (*t_hipMemcpy2DToArray)(hipArray_t dst, size_t wOffset, size_t hOffset,
559  const void* src, size_t spitch, size_t width,
560  size_t height, hipMemcpyKind kind);
561 typedef hipError_t (*t_hipMemcpy2DToArrayAsync)(hipArray_t dst, size_t wOffset, size_t hOffset,
562  const void* src, size_t spitch, size_t width,
563  size_t height, hipMemcpyKind kind,
564  hipStream_t stream);
565 typedef hipError_t (*t_hipMemcpy3D)(const struct hipMemcpy3DParms* p);
566 typedef hipError_t (*t_hipMemcpy3DAsync)(const struct hipMemcpy3DParms* p, hipStream_t stream);
567 typedef hipError_t (*t_hipMemcpyAsync)(void* dst, const void* src, size_t sizeBytes,
568  hipMemcpyKind kind, hipStream_t stream);
569 typedef hipError_t (*t_hipMemcpyAtoH)(void* dst, hipArray_t srcArray, size_t srcOffset,
570  size_t count);
571 typedef hipError_t (*t_hipMemcpyDtoD)(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes);
572 typedef hipError_t (*t_hipMemcpyDtoDAsync)(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes,
573  hipStream_t stream);
574 typedef hipError_t (*t_hipMemcpyDtoH)(void* dst, hipDeviceptr_t src, size_t sizeBytes);
575 typedef hipError_t (*t_hipMemcpyDtoHAsync)(void* dst, hipDeviceptr_t src, size_t sizeBytes,
576  hipStream_t stream);
577 typedef hipError_t (*t_hipMemcpyFromArray)(void* dst, hipArray_const_t srcArray, size_t wOffset,
578  size_t hOffset, size_t count, hipMemcpyKind kind);
579 typedef hipError_t (*t_hipMemcpyFromSymbol)(void* dst, const void* symbol, size_t sizeBytes,
580  size_t offset, hipMemcpyKind kind);
581 typedef hipError_t (*t_hipMemcpyFromSymbolAsync)(void* dst, const void* symbol, size_t sizeBytes,
582  size_t offset, hipMemcpyKind kind,
583  hipStream_t stream);
584 typedef hipError_t (*t_hipMemcpyHtoA)(hipArray_t dstArray, size_t dstOffset, const void* srcHost,
585  size_t count);
586 typedef hipError_t (*t_hipMemcpyHtoD)(hipDeviceptr_t dst, void* src, size_t sizeBytes);
587 typedef hipError_t (*t_hipMemcpyHtoDAsync)(hipDeviceptr_t dst, void* src, size_t sizeBytes,
588  hipStream_t stream);
589 typedef hipError_t (*t_hipMemcpyParam2D)(const hip_Memcpy2D* pCopy);
590 typedef hipError_t (*t_hipMemcpyParam2DAsync)(const hip_Memcpy2D* pCopy, hipStream_t stream);
591 typedef hipError_t (*t_hipMemcpyPeer)(void* dst, int dstDeviceId, const void* src, int srcDeviceId,
592  size_t sizeBytes);
593 typedef hipError_t (*t_hipMemcpyPeerAsync)(void* dst, int dstDeviceId, const void* src,
594  int srcDevice, size_t sizeBytes, hipStream_t stream);
595 typedef hipError_t (*t_hipMemcpyToArray)(hipArray_t dst, size_t wOffset, size_t hOffset,
596  const void* src, size_t count, hipMemcpyKind kind);
597 typedef hipError_t (*t_hipMemcpyToSymbol)(const void* symbol, const void* src, size_t sizeBytes,
598  size_t offset, hipMemcpyKind kind);
599 typedef hipError_t (*t_hipMemcpyToSymbolAsync)(const void* symbol, const void* src,
600  size_t sizeBytes, size_t offset, hipMemcpyKind kind,
601  hipStream_t stream);
602 typedef hipError_t (*t_hipMemcpyWithStream)(void* dst, const void* src, size_t sizeBytes,
603  hipMemcpyKind kind, hipStream_t stream);
604 typedef hipError_t (*t_hipMemset)(void* dst, int value, size_t sizeBytes);
605 typedef hipError_t (*t_hipMemset2D)(void* dst, size_t pitch, int value, size_t width,
606  size_t height);
607 typedef hipError_t (*t_hipMemset2DAsync)(void* dst, size_t pitch, int value, size_t width,
608  size_t height, hipStream_t stream);
609 typedef hipError_t (*t_hipMemset3D)(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent);
610 typedef hipError_t (*t_hipMemset3DAsync)(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent,
611  hipStream_t stream);
612 typedef hipError_t (*t_hipMemsetAsync)(void* dst, int value, size_t sizeBytes, hipStream_t stream);
613 typedef hipError_t (*t_hipMemsetD16)(hipDeviceptr_t dest, unsigned short value, size_t count);
614 typedef hipError_t (*t_hipMemsetD16Async)(hipDeviceptr_t dest, unsigned short value, size_t count,
615  hipStream_t stream);
616 typedef hipError_t (*t_hipMemsetD32)(hipDeviceptr_t dest, int value, size_t count);
617 typedef hipError_t (*t_hipMemsetD32Async)(hipDeviceptr_t dst, int value, size_t count,
618  hipStream_t stream);
619 typedef hipError_t (*t_hipMemsetD8)(hipDeviceptr_t dest, unsigned char value, size_t count);
620 typedef hipError_t (*t_hipMemsetD8Async)(hipDeviceptr_t dest, unsigned char value, size_t count,
621  hipStream_t stream);
622 typedef hipError_t (*t_hipMipmappedArrayCreate)(hipMipmappedArray_t* pHandle,
623  HIP_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc,
624  unsigned int numMipmapLevels);
625 typedef hipError_t (*t_hipMipmappedArrayDestroy)(hipMipmappedArray_t hMipmappedArray);
626 typedef hipError_t (*t_hipMipmappedArrayGetLevel)(hipArray_t* pLevelArray,
627  hipMipmappedArray_t hMipMappedArray,
628  unsigned int level);
629 typedef hipError_t (*t_hipModuleGetFunction)(hipFunction_t* function, hipModule_t module,
630  const char* kname);
631 typedef hipError_t (*t_hipModuleGetGlobal)(hipDeviceptr_t* dptr, size_t* bytes, hipModule_t hmod,
632  const char* name);
633 typedef hipError_t (*t_hipModuleGetTexRef)(textureReference** texRef, hipModule_t hmod,
634  const char* name);
635 typedef hipError_t (*t_hipModuleLaunchCooperativeKernel)(
636  hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ,
637  unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ,
638  unsigned int sharedMemBytes, hipStream_t stream, void** kernelParams);
639 typedef hipError_t (*t_hipModuleLaunchCooperativeKernelMultiDevice)(
640  hipFunctionLaunchParams* launchParamsList, unsigned int numDevices, unsigned int flags);
641 typedef hipError_t (*t_hipModuleLaunchKernel)(hipFunction_t f, unsigned int gridDimX,
642  unsigned int gridDimY, unsigned int gridDimZ,
643  unsigned int blockDimX, unsigned int blockDimY,
644  unsigned int blockDimZ, unsigned int sharedMemBytes,
645  hipStream_t stream, void** kernelParams,
646  void** extra);
647 typedef hipError_t (*t_hipModuleLoad)(hipModule_t* module, const char* fname);
648 typedef hipError_t (*t_hipModuleLoadData)(hipModule_t* module, const void* image);
649 typedef hipError_t (*t_hipModuleLoadDataEx)(hipModule_t* module, const void* image,
650  unsigned int numOptions, hipJitOption* options,
651  void** optionValues);
652 typedef hipError_t (*t_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor)(
653  int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk);
654 typedef hipError_t (*t_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(
655  int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags);
656 typedef hipError_t (*t_hipModuleOccupancyMaxPotentialBlockSize)(int* gridSize, int* blockSize,
657  hipFunction_t f,
658  size_t dynSharedMemPerBlk,
659  int blockSizeLimit);
660 typedef hipError_t (*t_hipModuleOccupancyMaxPotentialBlockSizeWithFlags)(
661  int* gridSize, int* blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit,
662  unsigned int flags);
663 typedef hipError_t (*t_hipModuleUnload)(hipModule_t module);
664 typedef hipError_t (*t_hipOccupancyMaxActiveBlocksPerMultiprocessor)(int* numBlocks, const void* f,
665  int blockSize,
666  size_t dynSharedMemPerBlk);
667 typedef hipError_t (*t_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(
668  int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags);
669 typedef hipError_t (*t_hipOccupancyMaxPotentialBlockSize)(int* gridSize, int* blockSize,
670  const void* f, size_t dynSharedMemPerBlk,
671  int blockSizeLimit);
672 typedef hipError_t (*t_hipPeekAtLastError)(void);
673 typedef hipError_t (*t_hipPointerGetAttribute)(void* data, hipPointer_attribute attribute,
674  hipDeviceptr_t ptr);
675 typedef hipError_t (*t_hipPointerGetAttributes)(hipPointerAttribute_t* attributes, const void* ptr);
676 typedef hipError_t (*t_hipPointerSetAttribute)(const void* value, hipPointer_attribute attribute,
677  hipDeviceptr_t ptr);
678 typedef hipError_t (*t_hipProfilerStart)();
679 typedef hipError_t (*t_hipProfilerStop)();
680 typedef hipError_t (*t_hipRuntimeGetVersion)(int* runtimeVersion);
681 typedef hipError_t (*t_hipSetDevice)(int deviceId);
682 typedef hipError_t (*t_hipSetDeviceFlags)(unsigned flags);
683 typedef hipError_t (*t_hipSetupArgument)(const void* arg, size_t size, size_t offset);
684 typedef hipError_t (*t_hipSignalExternalSemaphoresAsync)(
685  const hipExternalSemaphore_t* extSemArray, const hipExternalSemaphoreSignalParams* paramsArray,
686  unsigned int numExtSems, hipStream_t stream);
687 typedef hipError_t (*t_hipStreamAddCallback)(hipStream_t stream, hipStreamCallback_t callback,
688  void* userData, unsigned int flags);
689 typedef hipError_t (*t_hipStreamAttachMemAsync)(hipStream_t stream, void* dev_ptr, size_t length,
690  unsigned int flags);
691 typedef hipError_t (*t_hipStreamBeginCapture)(hipStream_t stream, hipStreamCaptureMode mode);
692 typedef hipError_t (*t_hipStreamCreate)(hipStream_t* stream);
693 typedef hipError_t (*t_hipStreamCreateWithFlags)(hipStream_t* stream, unsigned int flags);
694 typedef hipError_t (*t_hipStreamCreateWithPriority)(hipStream_t* stream, unsigned int flags,
695  int priority);
696 typedef hipError_t (*t_hipStreamDestroy)(hipStream_t stream);
697 typedef hipError_t (*t_hipStreamEndCapture)(hipStream_t stream, hipGraph_t* pGraph);
698 typedef hipError_t (*t_hipStreamGetCaptureInfo)(hipStream_t stream,
699  hipStreamCaptureStatus* pCaptureStatus,
700  unsigned long long* pId);
701 typedef hipError_t (*t_hipStreamGetCaptureInfo_v2)(
702  hipStream_t stream, hipStreamCaptureStatus* captureStatus_out, unsigned long long* id_out,
703  hipGraph_t* graph_out, const hipGraphNode_t** dependencies_out, size_t* numDependencies_out);
704 typedef hipError_t (*t_hipStreamGetDevice)(hipStream_t stream, hipDevice_t* device);
705 typedef hipError_t (*t_hipStreamGetFlags)(hipStream_t stream, unsigned int* flags);
706 typedef hipError_t (*t_hipStreamGetPriority)(hipStream_t stream, int* priority);
707 typedef hipError_t (*t_hipStreamIsCapturing)(hipStream_t stream,
708  hipStreamCaptureStatus* pCaptureStatus);
709 typedef hipError_t (*t_hipStreamQuery)(hipStream_t stream);
710 typedef hipError_t (*t_hipStreamSynchronize)(hipStream_t stream);
711 typedef hipError_t (*t_hipStreamUpdateCaptureDependencies)(hipStream_t stream,
712  hipGraphNode_t* dependencies,
713  size_t numDependencies,
714  unsigned int flags);
715 typedef hipError_t (*t_hipStreamWaitEvent)(hipStream_t stream, hipEvent_t event,
716  unsigned int flags);
717 typedef hipError_t (*t_hipStreamWaitValue32)(hipStream_t stream, void* ptr, uint32_t value,
718  unsigned int flags, uint32_t mask);
719 typedef hipError_t (*t_hipStreamWaitValue64)(hipStream_t stream, void* ptr, uint64_t value,
720  unsigned int flags, uint64_t mask);
721 typedef hipError_t (*t_hipStreamWriteValue32)(hipStream_t stream, void* ptr, uint32_t value,
722  unsigned int flags);
723 typedef hipError_t (*t_hipStreamWriteValue64)(hipStream_t stream, void* ptr, uint64_t value,
724  unsigned int flags);
725 typedef hipError_t (*t_hipTexObjectCreate)(hipTextureObject_t* pTexObject,
726  const HIP_RESOURCE_DESC* pResDesc,
727  const HIP_TEXTURE_DESC* pTexDesc,
728  const HIP_RESOURCE_VIEW_DESC* pResViewDesc);
729 typedef hipError_t (*t_hipTexObjectDestroy)(hipTextureObject_t texObject);
730 typedef hipError_t (*t_hipTexObjectGetResourceDesc)(HIP_RESOURCE_DESC* pResDesc,
731  hipTextureObject_t texObject);
732 typedef hipError_t (*t_hipTexObjectGetResourceViewDesc)(HIP_RESOURCE_VIEW_DESC* pResViewDesc,
733  hipTextureObject_t texObject);
734 typedef hipError_t (*t_hipTexObjectGetTextureDesc)(HIP_TEXTURE_DESC* pTexDesc,
735  hipTextureObject_t texObject);
736 typedef hipError_t (*t_hipTexRefGetAddress)(hipDeviceptr_t* dev_ptr,
737  const textureReference* texRef);
738 typedef hipError_t (*t_hipTexRefGetAddressMode)(enum hipTextureAddressMode* pam,
739  const textureReference* texRef, int dim);
740 typedef hipError_t (*t_hipTexRefGetFilterMode)(enum hipTextureFilterMode* pfm,
741  const textureReference* texRef);
742 typedef hipError_t (*t_hipTexRefGetFlags)(unsigned int* pFlags, const textureReference* texRef);
743 typedef hipError_t (*t_hipTexRefGetFormat)(hipArray_Format* pFormat, int* pNumChannels,
744  const textureReference* texRef);
745 typedef hipError_t (*t_hipTexRefGetMaxAnisotropy)(int* pmaxAnsio, const textureReference* texRef);
746 typedef hipError_t (*t_hipTexRefGetMipMappedArray)(hipMipmappedArray_t* pArray,
747  const textureReference* texRef);
748 typedef hipError_t (*t_hipTexRefGetMipmapFilterMode)(enum hipTextureFilterMode* pfm,
749  const textureReference* texRef);
750 typedef hipError_t (*t_hipTexRefGetMipmapLevelBias)(float* pbias, const textureReference* texRef);
751 typedef hipError_t (*t_hipTexRefGetMipmapLevelClamp)(float* pminMipmapLevelClamp,
752  float* pmaxMipmapLevelClamp,
753  const textureReference* texRef);
754 typedef hipError_t (*t_hipTexRefSetAddress)(size_t* ByteOffset, textureReference* texRef,
755  hipDeviceptr_t dptr, size_t bytes);
756 typedef hipError_t (*t_hipTexRefSetAddress2D)(textureReference* texRef,
757  const HIP_ARRAY_DESCRIPTOR* desc, hipDeviceptr_t dptr,
758  size_t Pitch);
759 typedef hipError_t (*t_hipTexRefSetAddressMode)(textureReference* texRef, int dim,
760  enum hipTextureAddressMode am);
761 typedef hipError_t (*t_hipTexRefSetArray)(textureReference* tex, hipArray_const_t array,
762  unsigned int flags);
763 typedef hipError_t (*t_hipTexRefSetBorderColor)(textureReference* texRef, float* pBorderColor);
764 typedef hipError_t (*t_hipTexRefSetFilterMode)(textureReference* texRef,
765  enum hipTextureFilterMode fm);
766 typedef hipError_t (*t_hipTexRefSetFlags)(textureReference* texRef, unsigned int Flags);
767 typedef hipError_t (*t_hipTexRefSetFormat)(textureReference* texRef, hipArray_Format fmt,
768  int NumPackedComponents);
769 typedef hipError_t (*t_hipTexRefSetMaxAnisotropy)(textureReference* texRef, unsigned int maxAniso);
770 typedef hipError_t (*t_hipTexRefSetMipmapFilterMode)(textureReference* texRef,
771  enum hipTextureFilterMode fm);
772 typedef hipError_t (*t_hipTexRefSetMipmapLevelBias)(textureReference* texRef, float bias);
773 typedef hipError_t (*t_hipTexRefSetMipmapLevelClamp)(textureReference* texRef,
774  float minMipMapLevelClamp,
775  float maxMipMapLevelClamp);
776 typedef hipError_t (*t_hipTexRefSetMipmappedArray)(textureReference* texRef,
777  struct hipMipmappedArray* mipmappedArray,
778  unsigned int Flags);
779 typedef hipError_t (*t_hipThreadExchangeStreamCaptureMode)(hipStreamCaptureMode* mode);
780 typedef hipError_t (*t_hipUnbindTexture)(const textureReference* tex);
781 typedef hipError_t (*t_hipUserObjectCreate)(hipUserObject_t* object_out, void* ptr,
782  hipHostFn_t destroy, unsigned int initialRefcount,
783  unsigned int flags);
784 typedef hipError_t (*t_hipUserObjectRelease)(hipUserObject_t object, unsigned int count);
785 typedef hipError_t (*t_hipUserObjectRetain)(hipUserObject_t object, unsigned int count);
786 typedef hipError_t (*t_hipWaitExternalSemaphoresAsync)(
787  const hipExternalSemaphore_t* extSemArray, const hipExternalSemaphoreWaitParams* paramsArray,
788  unsigned int numExtSems, hipStream_t stream);
789 
790 typedef hipError_t (*t_hipMemcpy_spt)(void* dst, const void* src, size_t sizeBytes,
791  hipMemcpyKind kind);
792 
793 typedef hipError_t (*t_hipMemcpyToSymbol_spt)(const void* symbol, const void* src, size_t sizeBytes,
794  size_t offset, hipMemcpyKind kind);
795 
796 typedef hipError_t (*t_hipMemcpyFromSymbol_spt)(void* dst, const void* symbol, size_t sizeBytes,
797  size_t offset, hipMemcpyKind kind);
798 
799 typedef hipError_t (*t_hipMemcpy2D_spt)(void* dst, size_t dpitch, const void* src, size_t spitch,
800  size_t width, size_t height, hipMemcpyKind kind);
801 
802 typedef hipError_t (*t_hipMemcpy2DFromArray_spt)(void* dst, size_t dpitch, hipArray_const_t src,
803  size_t wOffset, size_t hOffset, size_t width,
804  size_t height, hipMemcpyKind kind);
805 
806 typedef hipError_t (*t_hipMemcpy3D_spt)(const struct hipMemcpy3DParms* p);
807 
808 typedef hipError_t (*t_hipMemset_spt)(void* dst, int value, size_t sizeBytes);
809 
810 typedef hipError_t (*t_hipMemsetAsync_spt)(void* dst, int value, size_t sizeBytes,
811  hipStream_t stream);
812 
813 typedef hipError_t (*t_hipMemset2D_spt)(void* dst, size_t pitch, int value, size_t width,
814  size_t height);
815 
816 typedef hipError_t (*t_hipMemset2DAsync_spt)(void* dst, size_t pitch, int value, size_t width,
817  size_t height, hipStream_t stream);
818 
819 typedef hipError_t (*t_hipMemset3DAsync_spt)(hipPitchedPtr pitchedDevPtr, int value,
820  hipExtent extent, hipStream_t stream);
821 
822 typedef hipError_t (*t_hipMemset3D_spt)(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent);
823 
824 typedef hipError_t (*t_hipMemcpyAsync_spt)(void* dst, const void* src, size_t sizeBytes,
825  hipMemcpyKind kind, hipStream_t stream);
826 
827 typedef hipError_t (*t_hipMemcpy3DAsync_spt)(const hipMemcpy3DParms* p, hipStream_t stream);
828 
829 typedef hipError_t (*t_hipMemcpy2DAsync_spt)(void* dst, size_t dpitch, const void* src,
830  size_t spitch, size_t width, size_t height,
831  hipMemcpyKind kind, hipStream_t stream);
832 
833 typedef hipError_t (*t_hipMemcpyFromSymbolAsync_spt)(void* dst, const void* symbol,
834  size_t sizeBytes, size_t offset,
835  hipMemcpyKind kind, hipStream_t stream);
836 
837 typedef hipError_t (*t_hipMemcpyToSymbolAsync_spt)(const void* symbol, const void* src,
838  size_t sizeBytes, size_t offset,
839  hipMemcpyKind kind, hipStream_t stream);
840 
841 typedef hipError_t (*t_hipMemcpyFromArray_spt)(void* dst, hipArray_const_t src, size_t wOffsetSrc,
842  size_t hOffset, size_t count, hipMemcpyKind kind);
843 
844 typedef hipError_t (*t_hipMemcpy2DToArray_spt)(hipArray_t dst, size_t wOffset, size_t hOffset,
845  const void* src, size_t spitch, size_t width,
846  size_t height, hipMemcpyKind kind);
847 
848 typedef hipError_t (*t_hipMemcpy2DFromArrayAsync_spt)(void* dst, size_t dpitch,
849  hipArray_const_t src, size_t wOffsetSrc,
850  size_t hOffsetSrc, size_t width,
851  size_t height, hipMemcpyKind kind,
852  hipStream_t stream);
853 
854 typedef hipError_t (*t_hipMemcpy2DToArrayAsync_spt)(hipArray_t dst, size_t wOffset, size_t hOffset,
855  const void* src, size_t spitch, size_t width,
856  size_t height, hipMemcpyKind kind,
857  hipStream_t stream);
858 
859 typedef hipError_t (*t_hipStreamQuery_spt)(hipStream_t stream);
860 
861 typedef hipError_t (*t_hipStreamSynchronize_spt)(hipStream_t stream);
862 
863 typedef hipError_t (*t_hipStreamGetPriority_spt)(hipStream_t stream, int* priority);
864 
865 typedef hipError_t (*t_hipStreamWaitEvent_spt)(hipStream_t stream, hipEvent_t event,
866  unsigned int flags);
867 
868 typedef hipError_t (*t_hipStreamGetFlags_spt)(hipStream_t stream, unsigned int* flags);
869 
870 typedef hipError_t (*t_hipStreamAddCallback_spt)(hipStream_t stream, hipStreamCallback_t callback,
871  void* userData, unsigned int flags);
872 typedef hipError_t (*t_hipEventRecord_spt)(hipEvent_t event, hipStream_t stream);
873 typedef hipError_t (*t_hipLaunchCooperativeKernel_spt)(const void* f, dim3 gridDim, dim3 blockDim,
874  void** kernelParams, uint32_t sharedMemBytes,
875  hipStream_t hStream);
876 
877 typedef hipError_t (*t_hipLaunchKernel_spt)(const void* function_address, dim3 numBlocks,
878  dim3 dimBlocks, void** args, size_t sharedMemBytes,
879  hipStream_t stream);
880 
881 typedef hipError_t (*t_hipGraphLaunch_spt)(hipGraphExec_t graphExec, hipStream_t stream);
882 typedef hipError_t (*t_hipStreamBeginCapture_spt)(hipStream_t stream, hipStreamCaptureMode mode);
883 typedef hipError_t (*t_hipStreamEndCapture_spt)(hipStream_t stream, hipGraph_t* pGraph);
884 typedef hipError_t (*t_hipStreamIsCapturing_spt)(hipStream_t stream,
885  hipStreamCaptureStatus* pCaptureStatus);
886 typedef hipError_t (*t_hipStreamGetCaptureInfo_spt)(hipStream_t stream,
887  hipStreamCaptureStatus* pCaptureStatus,
888  unsigned long long* pId);
889 typedef hipError_t (*t_hipStreamGetCaptureInfo_v2_spt)(
890  hipStream_t stream, hipStreamCaptureStatus* captureStatus_out, unsigned long long* id_out,
891  hipGraph_t* graph_out, const hipGraphNode_t** dependencies_out, size_t* numDependencies_out);
892 typedef hipError_t (*t_hipLaunchHostFunc_spt)(hipStream_t stream, hipHostFn_t fn, void* userData);
893 typedef hipChannelFormatDesc (*t_hipCreateChannelDesc)(int x, int y, int z, int w,
894  hipChannelFormatKind f);
895 typedef hipError_t (*t_hipExtModuleLaunchKernel)(hipFunction_t f, uint32_t globalWorkSizeX,
896  uint32_t globalWorkSizeY, uint32_t globalWorkSizeZ,
897  uint32_t localWorkSizeX, uint32_t localWorkSizeY,
898  uint32_t localWorkSizeZ, size_t sharedMemBytes,
899  hipStream_t hStream, void** kernelParams,
900  void** extra, hipEvent_t startEvent,
901  hipEvent_t stopEvent, uint32_t flags);
902 typedef hipError_t (*t_hipHccModuleLaunchKernel)(hipFunction_t f, uint32_t globalWorkSizeX,
903  uint32_t globalWorkSizeY, uint32_t globalWorkSizeZ,
904  uint32_t localWorkSizeX, uint32_t localWorkSizeY,
905  uint32_t localWorkSizeZ, size_t sharedMemBytes,
906  hipStream_t hStream, void** kernelParams,
907  void** extra, hipEvent_t startEvent,
908  hipEvent_t stopEvent);
909 typedef int (*t_hipGetStreamDeviceId)(hipStream_t stream);
910 typedef hipError_t (*t_hipDrvGraphAddMemsetNode)(hipGraphNode_t* phGraphNode, hipGraph_t hGraph,
911  const hipGraphNode_t* dependencies, size_t numDependencies,
912  const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
913 typedef hipError_t (*t_hipGraphAddExternalSemaphoresWaitNode)(hipGraphNode_t* pGraphNode,
914  hipGraph_t graph, const hipGraphNode_t* pDependencies,
915  size_t numDependencies,
916  const hipExternalSemaphoreWaitNodeParams* nodeParams);
917 typedef hipError_t (*t_hipGraphAddExternalSemaphoresSignalNode)(hipGraphNode_t* pGraphNode,
918  hipGraph_t graph, const hipGraphNode_t* pDependencies,
919  size_t numDependencies,
920  const hipExternalSemaphoreSignalNodeParams* nodeParams);
921 typedef hipError_t (*t_hipGraphExternalSemaphoresSignalNodeSetParams)(hipGraphNode_t hNode,
922  const hipExternalSemaphoreSignalNodeParams* nodeParams);
923 typedef hipError_t (*t_hipGraphExternalSemaphoresWaitNodeSetParams)(hipGraphNode_t hNode,
924  const hipExternalSemaphoreWaitNodeParams* nodeParams);
925 typedef hipError_t (*t_hipGraphExternalSemaphoresSignalNodeGetParams)(hipGraphNode_t hNode,
926  hipExternalSemaphoreSignalNodeParams* params_out);
927 typedef hipError_t (*t_hipGraphExternalSemaphoresWaitNodeGetParams)(hipGraphNode_t hNode,
928  hipExternalSemaphoreWaitNodeParams* params_out);
929 typedef hipError_t (*t_hipGraphExecExternalSemaphoresSignalNodeSetParams)(hipGraphExec_t hGraphExec,
930  hipGraphNode_t hNode,
931  const hipExternalSemaphoreSignalNodeParams* nodeParams);
932 typedef hipError_t (*t_hipGraphExecExternalSemaphoresWaitNodeSetParams)(hipGraphExec_t hGraphExec,
933  hipGraphNode_t hNode,
934  const hipExternalSemaphoreWaitNodeParams* nodeParams);
935 typedef hipError_t (*t_hipGraphAddNode)(hipGraphNode_t *pGraphNode, hipGraph_t graph,
936  const hipGraphNode_t *pDependencies, size_t numDependencies,
937  hipGraphNodeParams *nodeParams);
938 typedef hipError_t (*t_hipGraphInstantiateWithParams)(hipGraphExec_t* pGraphExec, hipGraph_t graph,
939  hipGraphInstantiateParams* instantiateParams);
940 typedef hipError_t (*t_hipExtGetLastError)();
941 typedef hipError_t (*t_hipTexRefGetBorderColor)(float* pBorderColor,
942  const textureReference* texRef);
943 typedef hipError_t (*t_hipTexRefGetArray)(hipArray_t* pArray, const textureReference* texRef);
944 
945 typedef hipError_t (*t_hipTexRefGetBorderColor)(float* pBorderColor,
946  const textureReference* texRef);
947 typedef hipError_t (*t_hipTexRefGetArray)(hipArray_t* pArray, const textureReference* texRef);
948 typedef hipError_t (*t_hipGetProcAddress)(const char* symbol, void** pfn, int hipVersion, uint64_t flags,
949  hipDriverProcAddressQueryResult* symbolStatus);
950 typedef hipError_t (*t_hipStreamBeginCaptureToGraph)(hipStream_t stream, hipGraph_t graph,
951  const hipGraphNode_t* dependencies,
952  const hipGraphEdgeData* dependencyData,
953  size_t numDependencies,
954  hipStreamCaptureMode mode);
955 typedef hipError_t (*t_hipGetFuncBySymbol)(hipFunction_t* functionPtr, const void* symbolPtr);
956 typedef hipError_t (*t_hipSetValidDevices)(int* device_arr, int len);
957 typedef hipError_t (*t_hipMemcpyAtoD)(hipDeviceptr_t dstDevice, hipArray_t srcArray,
958  size_t srcOffset, size_t ByteCount);
959 typedef hipError_t (*t_hipMemcpyDtoA)(hipArray_t dstArray, size_t dstOffset,
960  hipDeviceptr_t srcDevice, size_t ByteCount);
961 typedef hipError_t (*t_hipMemcpyAtoA)(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray,
962  size_t srcOffset, size_t ByteCount);
963 typedef hipError_t (*t_hipMemcpyAtoHAsync)(void* dstHost, hipArray_t srcArray, size_t srcOffset,
964  size_t ByteCount, hipStream_t stream);
965 typedef hipError_t (*t_hipMemcpyHtoAAsync)(hipArray_t dstArray, size_t dstOffset,
966  const void* srcHost, size_t ByteCount,
967  hipStream_t stream);
968 typedef hipError_t (*t_hipMemcpy2DArrayToArray)(hipArray_t dst, size_t wOffsetDst,
969  size_t hOffsetDst, hipArray_const_t src,
970  size_t wOffsetSrc, size_t hOffsetSrc, size_t width,
971  size_t height, hipMemcpyKind kind);
972 
973 // HIP Compiler dispatch table
975  size_t size;
976  t___hipPopCallConfiguration __hipPopCallConfiguration_fn;
977  t___hipPushCallConfiguration __hipPushCallConfiguration_fn;
978  t___hipRegisterFatBinary __hipRegisterFatBinary_fn;
979  t___hipRegisterFunction __hipRegisterFunction_fn;
980  t___hipRegisterManagedVar __hipRegisterManagedVar_fn;
981  t___hipRegisterSurface __hipRegisterSurface_fn;
982  t___hipRegisterTexture __hipRegisterTexture_fn;
983  t___hipRegisterVar __hipRegisterVar_fn;
984  t___hipUnregisterFatBinary __hipUnregisterFatBinary_fn;
985 };
986 
987 // HIP API dispatch table
989  size_t size;
990  t_hipApiName hipApiName_fn;
991  t_hipArray3DCreate hipArray3DCreate_fn;
992  t_hipArray3DGetDescriptor hipArray3DGetDescriptor_fn;
993  t_hipArrayCreate hipArrayCreate_fn;
994  t_hipArrayDestroy hipArrayDestroy_fn;
995  t_hipArrayGetDescriptor hipArrayGetDescriptor_fn;
996  t_hipArrayGetInfo hipArrayGetInfo_fn;
997  t_hipBindTexture hipBindTexture_fn;
998  t_hipBindTexture2D hipBindTexture2D_fn;
999  t_hipBindTextureToArray hipBindTextureToArray_fn;
1000  t_hipBindTextureToMipmappedArray hipBindTextureToMipmappedArray_fn;
1001  t_hipChooseDevice hipChooseDevice_fn;
1002  t_hipChooseDeviceR0000 hipChooseDeviceR0000_fn;
1003  t_hipConfigureCall hipConfigureCall_fn;
1004  t_hipCreateSurfaceObject hipCreateSurfaceObject_fn;
1005  t_hipCreateTextureObject hipCreateTextureObject_fn;
1006  t_hipCtxCreate hipCtxCreate_fn;
1007  t_hipCtxDestroy hipCtxDestroy_fn;
1008  t_hipCtxDisablePeerAccess hipCtxDisablePeerAccess_fn;
1009  t_hipCtxEnablePeerAccess hipCtxEnablePeerAccess_fn;
1010  t_hipCtxGetApiVersion hipCtxGetApiVersion_fn;
1011  t_hipCtxGetCacheConfig hipCtxGetCacheConfig_fn;
1012  t_hipCtxGetCurrent hipCtxGetCurrent_fn;
1013  t_hipCtxGetDevice hipCtxGetDevice_fn;
1014  t_hipCtxGetFlags hipCtxGetFlags_fn;
1015  t_hipCtxGetSharedMemConfig hipCtxGetSharedMemConfig_fn;
1016  t_hipCtxPopCurrent hipCtxPopCurrent_fn;
1017  t_hipCtxPushCurrent hipCtxPushCurrent_fn;
1018  t_hipCtxSetCacheConfig hipCtxSetCacheConfig_fn;
1019  t_hipCtxSetCurrent hipCtxSetCurrent_fn;
1020  t_hipCtxSetSharedMemConfig hipCtxSetSharedMemConfig_fn;
1021  t_hipCtxSynchronize hipCtxSynchronize_fn;
1022  t_hipDestroyExternalMemory hipDestroyExternalMemory_fn;
1023  t_hipDestroyExternalSemaphore hipDestroyExternalSemaphore_fn;
1024  t_hipDestroySurfaceObject hipDestroySurfaceObject_fn;
1025  t_hipDestroyTextureObject hipDestroyTextureObject_fn;
1026  t_hipDeviceCanAccessPeer hipDeviceCanAccessPeer_fn;
1027  t_hipDeviceComputeCapability hipDeviceComputeCapability_fn;
1028  t_hipDeviceDisablePeerAccess hipDeviceDisablePeerAccess_fn;
1029  t_hipDeviceEnablePeerAccess hipDeviceEnablePeerAccess_fn;
1030  t_hipDeviceGet hipDeviceGet_fn;
1031  t_hipDeviceGetAttribute hipDeviceGetAttribute_fn;
1032  t_hipDeviceGetByPCIBusId hipDeviceGetByPCIBusId_fn;
1033  t_hipDeviceGetCacheConfig hipDeviceGetCacheConfig_fn;
1034  t_hipDeviceGetDefaultMemPool hipDeviceGetDefaultMemPool_fn;
1035  t_hipDeviceGetGraphMemAttribute hipDeviceGetGraphMemAttribute_fn;
1036  t_hipDeviceGetLimit hipDeviceGetLimit_fn;
1037  t_hipDeviceGetMemPool hipDeviceGetMemPool_fn;
1038  t_hipDeviceGetName hipDeviceGetName_fn;
1039  t_hipDeviceGetP2PAttribute hipDeviceGetP2PAttribute_fn;
1040  t_hipDeviceGetPCIBusId hipDeviceGetPCIBusId_fn;
1041  t_hipDeviceGetSharedMemConfig hipDeviceGetSharedMemConfig_fn;
1042  t_hipDeviceGetStreamPriorityRange hipDeviceGetStreamPriorityRange_fn;
1043  t_hipDeviceGetUuid hipDeviceGetUuid_fn;
1044  t_hipDeviceGraphMemTrim hipDeviceGraphMemTrim_fn;
1045  t_hipDevicePrimaryCtxGetState hipDevicePrimaryCtxGetState_fn;
1046  t_hipDevicePrimaryCtxRelease hipDevicePrimaryCtxRelease_fn;
1047  t_hipDevicePrimaryCtxReset hipDevicePrimaryCtxReset_fn;
1048  t_hipDevicePrimaryCtxRetain hipDevicePrimaryCtxRetain_fn;
1049  t_hipDevicePrimaryCtxSetFlags hipDevicePrimaryCtxSetFlags_fn;
1050  t_hipDeviceReset hipDeviceReset_fn;
1051  t_hipDeviceSetCacheConfig hipDeviceSetCacheConfig_fn;
1052  t_hipDeviceSetGraphMemAttribute hipDeviceSetGraphMemAttribute_fn;
1053  t_hipDeviceSetLimit hipDeviceSetLimit_fn;
1054  t_hipDeviceSetMemPool hipDeviceSetMemPool_fn;
1055  t_hipDeviceSetSharedMemConfig hipDeviceSetSharedMemConfig_fn;
1056  t_hipDeviceSynchronize hipDeviceSynchronize_fn;
1057  t_hipDeviceTotalMem hipDeviceTotalMem_fn;
1058  t_hipDriverGetVersion hipDriverGetVersion_fn;
1059  t_hipDrvGetErrorName hipDrvGetErrorName_fn;
1060  t_hipDrvGetErrorString hipDrvGetErrorString_fn;
1061  t_hipDrvGraphAddMemcpyNode hipDrvGraphAddMemcpyNode_fn;
1062  t_hipDrvMemcpy2DUnaligned hipDrvMemcpy2DUnaligned_fn;
1063  t_hipDrvMemcpy3D hipDrvMemcpy3D_fn;
1064  t_hipDrvMemcpy3DAsync hipDrvMemcpy3DAsync_fn;
1065  t_hipDrvPointerGetAttributes hipDrvPointerGetAttributes_fn;
1066  t_hipEventCreate hipEventCreate_fn;
1067  t_hipEventCreateWithFlags hipEventCreateWithFlags_fn;
1068  t_hipEventDestroy hipEventDestroy_fn;
1069  t_hipEventElapsedTime hipEventElapsedTime_fn;
1070  t_hipEventQuery hipEventQuery_fn;
1071  t_hipEventRecord hipEventRecord_fn;
1072  t_hipEventSynchronize hipEventSynchronize_fn;
1073  t_hipExtGetLinkTypeAndHopCount hipExtGetLinkTypeAndHopCount_fn;
1074  t_hipExtLaunchKernel hipExtLaunchKernel_fn;
1075  t_hipExtLaunchMultiKernelMultiDevice hipExtLaunchMultiKernelMultiDevice_fn;
1076  t_hipExtMallocWithFlags hipExtMallocWithFlags_fn;
1077  t_hipExtStreamCreateWithCUMask hipExtStreamCreateWithCUMask_fn;
1078  t_hipExtStreamGetCUMask hipExtStreamGetCUMask_fn;
1079  t_hipExternalMemoryGetMappedBuffer hipExternalMemoryGetMappedBuffer_fn;
1080  t_hipFree hipFree_fn;
1081  t_hipFreeArray hipFreeArray_fn;
1082  t_hipFreeAsync hipFreeAsync_fn;
1083  t_hipFreeHost hipFreeHost_fn;
1084  t_hipFreeMipmappedArray hipFreeMipmappedArray_fn;
1085  t_hipFuncGetAttribute hipFuncGetAttribute_fn;
1086  t_hipFuncGetAttributes hipFuncGetAttributes_fn;
1087  t_hipFuncSetAttribute hipFuncSetAttribute_fn;
1088  t_hipFuncSetCacheConfig hipFuncSetCacheConfig_fn;
1089  t_hipFuncSetSharedMemConfig hipFuncSetSharedMemConfig_fn;
1090  t_hipGLGetDevices hipGLGetDevices_fn;
1091  t_hipGetChannelDesc hipGetChannelDesc_fn;
1092  t_hipGetDevice hipGetDevice_fn;
1093  t_hipGetDeviceCount hipGetDeviceCount_fn;
1094  t_hipGetDeviceFlags hipGetDeviceFlags_fn;
1095  t_hipGetDevicePropertiesR0600 hipGetDevicePropertiesR0600_fn;
1096  t_hipGetDevicePropertiesR0000 hipGetDevicePropertiesR0000_fn;
1097  t_hipGetErrorName hipGetErrorName_fn;
1098  t_hipGetErrorString hipGetErrorString_fn;
1099  t_hipGetLastError hipGetLastError_fn;
1100  t_hipGetMipmappedArrayLevel hipGetMipmappedArrayLevel_fn;
1101  t_hipGetSymbolAddress hipGetSymbolAddress_fn;
1102  t_hipGetSymbolSize hipGetSymbolSize_fn;
1103  t_hipGetTextureAlignmentOffset hipGetTextureAlignmentOffset_fn;
1104  t_hipGetTextureObjectResourceDesc hipGetTextureObjectResourceDesc_fn;
1105  t_hipGetTextureObjectResourceViewDesc hipGetTextureObjectResourceViewDesc_fn;
1106  t_hipGetTextureObjectTextureDesc hipGetTextureObjectTextureDesc_fn;
1107  t_hipGetTextureReference hipGetTextureReference_fn;
1108  t_hipGraphAddChildGraphNode hipGraphAddChildGraphNode_fn;
1109  t_hipGraphAddDependencies hipGraphAddDependencies_fn;
1110  t_hipGraphAddEmptyNode hipGraphAddEmptyNode_fn;
1111  t_hipGraphAddEventRecordNode hipGraphAddEventRecordNode_fn;
1112  t_hipGraphAddEventWaitNode hipGraphAddEventWaitNode_fn;
1113  t_hipGraphAddHostNode hipGraphAddHostNode_fn;
1114  t_hipGraphAddKernelNode hipGraphAddKernelNode_fn;
1115  t_hipGraphAddMemAllocNode hipGraphAddMemAllocNode_fn;
1116  t_hipGraphAddMemFreeNode hipGraphAddMemFreeNode_fn;
1117  t_hipGraphAddMemcpyNode hipGraphAddMemcpyNode_fn;
1118  t_hipGraphAddMemcpyNode1D hipGraphAddMemcpyNode1D_fn;
1119  t_hipGraphAddMemcpyNodeFromSymbol hipGraphAddMemcpyNodeFromSymbol_fn;
1120  t_hipGraphAddMemcpyNodeToSymbol hipGraphAddMemcpyNodeToSymbol_fn;
1121  t_hipGraphAddMemsetNode hipGraphAddMemsetNode_fn;
1122  t_hipGraphChildGraphNodeGetGraph hipGraphChildGraphNodeGetGraph_fn;
1123  t_hipGraphClone hipGraphClone_fn;
1124  t_hipGraphCreate hipGraphCreate_fn;
1125  t_hipGraphDebugDotPrint hipGraphDebugDotPrint_fn;
1126  t_hipGraphDestroy hipGraphDestroy_fn;
1127  t_hipGraphDestroyNode hipGraphDestroyNode_fn;
1128  t_hipGraphEventRecordNodeGetEvent hipGraphEventRecordNodeGetEvent_fn;
1129  t_hipGraphEventRecordNodeSetEvent hipGraphEventRecordNodeSetEvent_fn;
1130  t_hipGraphEventWaitNodeGetEvent hipGraphEventWaitNodeGetEvent_fn;
1131  t_hipGraphEventWaitNodeSetEvent hipGraphEventWaitNodeSetEvent_fn;
1132  t_hipGraphExecChildGraphNodeSetParams hipGraphExecChildGraphNodeSetParams_fn;
1133  t_hipGraphExecDestroy hipGraphExecDestroy_fn;
1134  t_hipGraphExecEventRecordNodeSetEvent hipGraphExecEventRecordNodeSetEvent_fn;
1135  t_hipGraphExecEventWaitNodeSetEvent hipGraphExecEventWaitNodeSetEvent_fn;
1136  t_hipGraphExecHostNodeSetParams hipGraphExecHostNodeSetParams_fn;
1137  t_hipGraphExecKernelNodeSetParams hipGraphExecKernelNodeSetParams_fn;
1138  t_hipGraphExecMemcpyNodeSetParams hipGraphExecMemcpyNodeSetParams_fn;
1139  t_hipGraphExecMemcpyNodeSetParams1D hipGraphExecMemcpyNodeSetParams1D_fn;
1140  t_hipGraphExecMemcpyNodeSetParamsFromSymbol hipGraphExecMemcpyNodeSetParamsFromSymbol_fn;
1141  t_hipGraphExecMemcpyNodeSetParamsToSymbol hipGraphExecMemcpyNodeSetParamsToSymbol_fn;
1142  t_hipGraphExecMemsetNodeSetParams hipGraphExecMemsetNodeSetParams_fn;
1143  t_hipGraphExecUpdate hipGraphExecUpdate_fn;
1144  t_hipGraphGetEdges hipGraphGetEdges_fn;
1145  t_hipGraphGetNodes hipGraphGetNodes_fn;
1146  t_hipGraphGetRootNodes hipGraphGetRootNodes_fn;
1147  t_hipGraphHostNodeGetParams hipGraphHostNodeGetParams_fn;
1148  t_hipGraphHostNodeSetParams hipGraphHostNodeSetParams_fn;
1149  t_hipGraphInstantiate hipGraphInstantiate_fn;
1150  t_hipGraphInstantiateWithFlags hipGraphInstantiateWithFlags_fn;
1151  t_hipGraphKernelNodeCopyAttributes hipGraphKernelNodeCopyAttributes_fn;
1152  t_hipGraphKernelNodeGetAttribute hipGraphKernelNodeGetAttribute_fn;
1153  t_hipGraphKernelNodeGetParams hipGraphKernelNodeGetParams_fn;
1154  t_hipGraphKernelNodeSetAttribute hipGraphKernelNodeSetAttribute_fn;
1155  t_hipGraphKernelNodeSetParams hipGraphKernelNodeSetParams_fn;
1156  t_hipGraphLaunch hipGraphLaunch_fn;
1157  t_hipGraphMemAllocNodeGetParams hipGraphMemAllocNodeGetParams_fn;
1158  t_hipGraphMemFreeNodeGetParams hipGraphMemFreeNodeGetParams_fn;
1159  t_hipGraphMemcpyNodeGetParams hipGraphMemcpyNodeGetParams_fn;
1160  t_hipGraphMemcpyNodeSetParams hipGraphMemcpyNodeSetParams_fn;
1161  t_hipGraphMemcpyNodeSetParams1D hipGraphMemcpyNodeSetParams1D_fn;
1162  t_hipGraphMemcpyNodeSetParamsFromSymbol hipGraphMemcpyNodeSetParamsFromSymbol_fn;
1163  t_hipGraphMemcpyNodeSetParamsToSymbol hipGraphMemcpyNodeSetParamsToSymbol_fn;
1164  t_hipGraphMemsetNodeGetParams hipGraphMemsetNodeGetParams_fn;
1165  t_hipGraphMemsetNodeSetParams hipGraphMemsetNodeSetParams_fn;
1166  t_hipGraphNodeFindInClone hipGraphNodeFindInClone_fn;
1167  t_hipGraphNodeGetDependencies hipGraphNodeGetDependencies_fn;
1168  t_hipGraphNodeGetDependentNodes hipGraphNodeGetDependentNodes_fn;
1169  t_hipGraphNodeGetEnabled hipGraphNodeGetEnabled_fn;
1170  t_hipGraphNodeGetType hipGraphNodeGetType_fn;
1171  t_hipGraphNodeSetEnabled hipGraphNodeSetEnabled_fn;
1172  t_hipGraphReleaseUserObject hipGraphReleaseUserObject_fn;
1173  t_hipGraphRemoveDependencies hipGraphRemoveDependencies_fn;
1174  t_hipGraphRetainUserObject hipGraphRetainUserObject_fn;
1175  t_hipGraphUpload hipGraphUpload_fn;
1176  t_hipGraphicsGLRegisterBuffer hipGraphicsGLRegisterBuffer_fn;
1177  t_hipGraphicsGLRegisterImage hipGraphicsGLRegisterImage_fn;
1178  t_hipGraphicsMapResources hipGraphicsMapResources_fn;
1179  t_hipGraphicsResourceGetMappedPointer hipGraphicsResourceGetMappedPointer_fn;
1180  t_hipGraphicsSubResourceGetMappedArray hipGraphicsSubResourceGetMappedArray_fn;
1181  t_hipGraphicsUnmapResources hipGraphicsUnmapResources_fn;
1182  t_hipGraphicsUnregisterResource hipGraphicsUnregisterResource_fn;
1183  t_hipHostAlloc hipHostAlloc_fn;
1184  t_hipHostFree hipHostFree_fn;
1185  t_hipHostGetDevicePointer hipHostGetDevicePointer_fn;
1186  t_hipHostGetFlags hipHostGetFlags_fn;
1187  t_hipHostMalloc hipHostMalloc_fn;
1188  t_hipHostRegister hipHostRegister_fn;
1189  t_hipHostUnregister hipHostUnregister_fn;
1190  t_hipImportExternalMemory hipImportExternalMemory_fn;
1191  t_hipImportExternalSemaphore hipImportExternalSemaphore_fn;
1192  t_hipInit hipInit_fn;
1193  t_hipIpcCloseMemHandle hipIpcCloseMemHandle_fn;
1194  t_hipIpcGetEventHandle hipIpcGetEventHandle_fn;
1195  t_hipIpcGetMemHandle hipIpcGetMemHandle_fn;
1196  t_hipIpcOpenEventHandle hipIpcOpenEventHandle_fn;
1197  t_hipIpcOpenMemHandle hipIpcOpenMemHandle_fn;
1198  t_hipKernelNameRef hipKernelNameRef_fn;
1199  t_hipKernelNameRefByPtr hipKernelNameRefByPtr_fn;
1200  t_hipLaunchByPtr hipLaunchByPtr_fn;
1201  t_hipLaunchCooperativeKernel hipLaunchCooperativeKernel_fn;
1202  t_hipLaunchCooperativeKernelMultiDevice hipLaunchCooperativeKernelMultiDevice_fn;
1203  t_hipLaunchHostFunc hipLaunchHostFunc_fn;
1204  t_hipLaunchKernel hipLaunchKernel_fn;
1205  t_hipMalloc hipMalloc_fn;
1206  t_hipMalloc3D hipMalloc3D_fn;
1207  t_hipMalloc3DArray hipMalloc3DArray_fn;
1208  t_hipMallocArray hipMallocArray_fn;
1209  t_hipMallocAsync hipMallocAsync_fn;
1210  t_hipMallocFromPoolAsync hipMallocFromPoolAsync_fn;
1211  t_hipMallocHost hipMallocHost_fn;
1212  t_hipMallocManaged hipMallocManaged_fn;
1213  t_hipMallocMipmappedArray hipMallocMipmappedArray_fn;
1214  t_hipMallocPitch hipMallocPitch_fn;
1215  t_hipMemAddressFree hipMemAddressFree_fn;
1216  t_hipMemAddressReserve hipMemAddressReserve_fn;
1217  t_hipMemAdvise hipMemAdvise_fn;
1218  t_hipMemAllocHost hipMemAllocHost_fn;
1219  t_hipMemAllocPitch hipMemAllocPitch_fn;
1220  t_hipMemCreate hipMemCreate_fn;
1221  t_hipMemExportToShareableHandle hipMemExportToShareableHandle_fn;
1222  t_hipMemGetAccess hipMemGetAccess_fn;
1223  t_hipMemGetAddressRange hipMemGetAddressRange_fn;
1224  t_hipMemGetAllocationGranularity hipMemGetAllocationGranularity_fn;
1225  t_hipMemGetAllocationPropertiesFromHandle hipMemGetAllocationPropertiesFromHandle_fn;
1226  t_hipMemGetInfo hipMemGetInfo_fn;
1227  t_hipMemImportFromShareableHandle hipMemImportFromShareableHandle_fn;
1228  t_hipMemMap hipMemMap_fn;
1229  t_hipMemMapArrayAsync hipMemMapArrayAsync_fn;
1230  t_hipMemPoolCreate hipMemPoolCreate_fn;
1231  t_hipMemPoolDestroy hipMemPoolDestroy_fn;
1232  t_hipMemPoolExportPointer hipMemPoolExportPointer_fn;
1233  t_hipMemPoolExportToShareableHandle hipMemPoolExportToShareableHandle_fn;
1234  t_hipMemPoolGetAccess hipMemPoolGetAccess_fn;
1235  t_hipMemPoolGetAttribute hipMemPoolGetAttribute_fn;
1236  t_hipMemPoolImportFromShareableHandle hipMemPoolImportFromShareableHandle_fn;
1237  t_hipMemPoolImportPointer hipMemPoolImportPointer_fn;
1238  t_hipMemPoolSetAccess hipMemPoolSetAccess_fn;
1239  t_hipMemPoolSetAttribute hipMemPoolSetAttribute_fn;
1240  t_hipMemPoolTrimTo hipMemPoolTrimTo_fn;
1241  t_hipMemPrefetchAsync hipMemPrefetchAsync_fn;
1242  t_hipMemPtrGetInfo hipMemPtrGetInfo_fn;
1243  t_hipMemRangeGetAttribute hipMemRangeGetAttribute_fn;
1244  t_hipMemRangeGetAttributes hipMemRangeGetAttributes_fn;
1245  t_hipMemRelease hipMemRelease_fn;
1246  t_hipMemRetainAllocationHandle hipMemRetainAllocationHandle_fn;
1247  t_hipMemSetAccess hipMemSetAccess_fn;
1248  t_hipMemUnmap hipMemUnmap_fn;
1249  t_hipMemcpy hipMemcpy_fn;
1250  t_hipMemcpy2D hipMemcpy2D_fn;
1251  t_hipMemcpy2DAsync hipMemcpy2DAsync_fn;
1252  t_hipMemcpy2DFromArray hipMemcpy2DFromArray_fn;
1253  t_hipMemcpy2DFromArrayAsync hipMemcpy2DFromArrayAsync_fn;
1254  t_hipMemcpy2DToArray hipMemcpy2DToArray_fn;
1255  t_hipMemcpy2DToArrayAsync hipMemcpy2DToArrayAsync_fn;
1256  t_hipMemcpy3D hipMemcpy3D_fn;
1257  t_hipMemcpy3DAsync hipMemcpy3DAsync_fn;
1258  t_hipMemcpyAsync hipMemcpyAsync_fn;
1259  t_hipMemcpyAtoH hipMemcpyAtoH_fn;
1260  t_hipMemcpyDtoD hipMemcpyDtoD_fn;
1261  t_hipMemcpyDtoDAsync hipMemcpyDtoDAsync_fn;
1262  t_hipMemcpyDtoH hipMemcpyDtoH_fn;
1263  t_hipMemcpyDtoHAsync hipMemcpyDtoHAsync_fn;
1264  t_hipMemcpyFromArray hipMemcpyFromArray_fn;
1265  t_hipMemcpyFromSymbol hipMemcpyFromSymbol_fn;
1266  t_hipMemcpyFromSymbolAsync hipMemcpyFromSymbolAsync_fn;
1267  t_hipMemcpyHtoA hipMemcpyHtoA_fn;
1268  t_hipMemcpyHtoD hipMemcpyHtoD_fn;
1269  t_hipMemcpyHtoDAsync hipMemcpyHtoDAsync_fn;
1270  t_hipMemcpyParam2D hipMemcpyParam2D_fn;
1271  t_hipMemcpyParam2DAsync hipMemcpyParam2DAsync_fn;
1272  t_hipMemcpyPeer hipMemcpyPeer_fn;
1273  t_hipMemcpyPeerAsync hipMemcpyPeerAsync_fn;
1274  t_hipMemcpyToArray hipMemcpyToArray_fn;
1275  t_hipMemcpyToSymbol hipMemcpyToSymbol_fn;
1276  t_hipMemcpyToSymbolAsync hipMemcpyToSymbolAsync_fn;
1277  t_hipMemcpyWithStream hipMemcpyWithStream_fn;
1278  t_hipMemset hipMemset_fn;
1279  t_hipMemset2D hipMemset2D_fn;
1280  t_hipMemset2DAsync hipMemset2DAsync_fn;
1281  t_hipMemset3D hipMemset3D_fn;
1282  t_hipMemset3DAsync hipMemset3DAsync_fn;
1283  t_hipMemsetAsync hipMemsetAsync_fn;
1284  t_hipMemsetD16 hipMemsetD16_fn;
1285  t_hipMemsetD16Async hipMemsetD16Async_fn;
1286  t_hipMemsetD32 hipMemsetD32_fn;
1287  t_hipMemsetD32Async hipMemsetD32Async_fn;
1288  t_hipMemsetD8 hipMemsetD8_fn;
1289  t_hipMemsetD8Async hipMemsetD8Async_fn;
1290  t_hipMipmappedArrayCreate hipMipmappedArrayCreate_fn;
1291  t_hipMipmappedArrayDestroy hipMipmappedArrayDestroy_fn;
1292  t_hipMipmappedArrayGetLevel hipMipmappedArrayGetLevel_fn;
1293  t_hipModuleGetFunction hipModuleGetFunction_fn;
1294  t_hipModuleGetGlobal hipModuleGetGlobal_fn;
1295  t_hipModuleGetTexRef hipModuleGetTexRef_fn;
1296  t_hipModuleLaunchCooperativeKernel hipModuleLaunchCooperativeKernel_fn;
1297  t_hipModuleLaunchCooperativeKernelMultiDevice hipModuleLaunchCooperativeKernelMultiDevice_fn;
1298  t_hipModuleLaunchKernel hipModuleLaunchKernel_fn;
1299  t_hipModuleLoad hipModuleLoad_fn;
1300  t_hipModuleLoadData hipModuleLoadData_fn;
1301  t_hipModuleLoadDataEx hipModuleLoadDataEx_fn;
1302  t_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor
1303  hipModuleOccupancyMaxActiveBlocksPerMultiprocessor_fn;
1304  t_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
1305  hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_fn;
1306  t_hipModuleOccupancyMaxPotentialBlockSize hipModuleOccupancyMaxPotentialBlockSize_fn;
1307  t_hipModuleOccupancyMaxPotentialBlockSizeWithFlags
1308  hipModuleOccupancyMaxPotentialBlockSizeWithFlags_fn;
1309  t_hipModuleUnload hipModuleUnload_fn;
1310  t_hipOccupancyMaxActiveBlocksPerMultiprocessor hipOccupancyMaxActiveBlocksPerMultiprocessor_fn;
1311  t_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
1312  hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_fn;
1313  t_hipOccupancyMaxPotentialBlockSize hipOccupancyMaxPotentialBlockSize_fn;
1314  t_hipPeekAtLastError hipPeekAtLastError_fn;
1315  t_hipPointerGetAttribute hipPointerGetAttribute_fn;
1316  t_hipPointerGetAttributes hipPointerGetAttributes_fn;
1317  t_hipPointerSetAttribute hipPointerSetAttribute_fn;
1318  t_hipProfilerStart hipProfilerStart_fn;
1319  t_hipProfilerStop hipProfilerStop_fn;
1320  t_hipRuntimeGetVersion hipRuntimeGetVersion_fn;
1321  t_hipSetDevice hipSetDevice_fn;
1322  t_hipSetDeviceFlags hipSetDeviceFlags_fn;
1323  t_hipSetupArgument hipSetupArgument_fn;
1324  t_hipSignalExternalSemaphoresAsync hipSignalExternalSemaphoresAsync_fn;
1325  t_hipStreamAddCallback hipStreamAddCallback_fn;
1326  t_hipStreamAttachMemAsync hipStreamAttachMemAsync_fn;
1327  t_hipStreamBeginCapture hipStreamBeginCapture_fn;
1328  t_hipStreamCreate hipStreamCreate_fn;
1329  t_hipStreamCreateWithFlags hipStreamCreateWithFlags_fn;
1330  t_hipStreamCreateWithPriority hipStreamCreateWithPriority_fn;
1331  t_hipStreamDestroy hipStreamDestroy_fn;
1332  t_hipStreamEndCapture hipStreamEndCapture_fn;
1333  t_hipStreamGetCaptureInfo hipStreamGetCaptureInfo_fn;
1334  t_hipStreamGetCaptureInfo_v2 hipStreamGetCaptureInfo_v2_fn;
1335  t_hipStreamGetDevice hipStreamGetDevice_fn;
1336  t_hipStreamGetFlags hipStreamGetFlags_fn;
1337  t_hipStreamGetPriority hipStreamGetPriority_fn;
1338  t_hipStreamIsCapturing hipStreamIsCapturing_fn;
1339  t_hipStreamQuery hipStreamQuery_fn;
1340  t_hipStreamSynchronize hipStreamSynchronize_fn;
1341  t_hipStreamUpdateCaptureDependencies hipStreamUpdateCaptureDependencies_fn;
1342  t_hipStreamWaitEvent hipStreamWaitEvent_fn;
1343  t_hipStreamWaitValue32 hipStreamWaitValue32_fn;
1344  t_hipStreamWaitValue64 hipStreamWaitValue64_fn;
1345  t_hipStreamWriteValue32 hipStreamWriteValue32_fn;
1346  t_hipStreamWriteValue64 hipStreamWriteValue64_fn;
1347  t_hipTexObjectCreate hipTexObjectCreate_fn;
1348  t_hipTexObjectDestroy hipTexObjectDestroy_fn;
1349  t_hipTexObjectGetResourceDesc hipTexObjectGetResourceDesc_fn;
1350  t_hipTexObjectGetResourceViewDesc hipTexObjectGetResourceViewDesc_fn;
1351  t_hipTexObjectGetTextureDesc hipTexObjectGetTextureDesc_fn;
1352  t_hipTexRefGetAddress hipTexRefGetAddress_fn;
1353  t_hipTexRefGetAddressMode hipTexRefGetAddressMode_fn;
1354  t_hipTexRefGetFilterMode hipTexRefGetFilterMode_fn;
1355  t_hipTexRefGetFlags hipTexRefGetFlags_fn;
1356  t_hipTexRefGetFormat hipTexRefGetFormat_fn;
1357  t_hipTexRefGetMaxAnisotropy hipTexRefGetMaxAnisotropy_fn;
1358  t_hipTexRefGetMipMappedArray hipTexRefGetMipMappedArray_fn;
1359  t_hipTexRefGetMipmapFilterMode hipTexRefGetMipmapFilterMode_fn;
1360  t_hipTexRefGetMipmapLevelBias hipTexRefGetMipmapLevelBias_fn;
1361  t_hipTexRefGetMipmapLevelClamp hipTexRefGetMipmapLevelClamp_fn;
1362  t_hipTexRefSetAddress hipTexRefSetAddress_fn;
1363  t_hipTexRefSetAddress2D hipTexRefSetAddress2D_fn;
1364  t_hipTexRefSetAddressMode hipTexRefSetAddressMode_fn;
1365  t_hipTexRefSetArray hipTexRefSetArray_fn;
1366  t_hipTexRefSetBorderColor hipTexRefSetBorderColor_fn;
1367  t_hipTexRefSetFilterMode hipTexRefSetFilterMode_fn;
1368  t_hipTexRefSetFlags hipTexRefSetFlags_fn;
1369  t_hipTexRefSetFormat hipTexRefSetFormat_fn;
1370  t_hipTexRefSetMaxAnisotropy hipTexRefSetMaxAnisotropy_fn;
1371  t_hipTexRefSetMipmapFilterMode hipTexRefSetMipmapFilterMode_fn;
1372  t_hipTexRefSetMipmapLevelBias hipTexRefSetMipmapLevelBias_fn;
1373  t_hipTexRefSetMipmapLevelClamp hipTexRefSetMipmapLevelClamp_fn;
1374  t_hipTexRefSetMipmappedArray hipTexRefSetMipmappedArray_fn;
1375  t_hipThreadExchangeStreamCaptureMode hipThreadExchangeStreamCaptureMode_fn;
1376  t_hipUnbindTexture hipUnbindTexture_fn;
1377  t_hipUserObjectCreate hipUserObjectCreate_fn;
1378  t_hipUserObjectRelease hipUserObjectRelease_fn;
1379  t_hipUserObjectRetain hipUserObjectRetain_fn;
1380  t_hipWaitExternalSemaphoresAsync hipWaitExternalSemaphoresAsync_fn;
1381  t_hipCreateChannelDesc hipCreateChannelDesc_fn;
1382  t_hipExtModuleLaunchKernel hipExtModuleLaunchKernel_fn;
1383  t_hipHccModuleLaunchKernel hipHccModuleLaunchKernel_fn;
1384  t_hipMemcpy_spt hipMemcpy_spt_fn;
1385  t_hipMemcpyToSymbol_spt hipMemcpyToSymbol_spt_fn;
1386  t_hipMemcpyFromSymbol_spt hipMemcpyFromSymbol_spt_fn;
1387  t_hipMemcpy2D_spt hipMemcpy2D_spt_fn;
1388  t_hipMemcpy2DFromArray_spt hipMemcpy2DFromArray_spt_fn;
1389  t_hipMemcpy3D_spt hipMemcpy3D_spt_fn;
1390  t_hipMemset_spt hipMemset_spt_fn;
1391  t_hipMemsetAsync_spt hipMemsetAsync_spt_fn;
1392  t_hipMemset2D_spt hipMemset2D_spt_fn;
1393  t_hipMemset2DAsync_spt hipMemset2DAsync_spt_fn;
1394  t_hipMemset3DAsync_spt hipMemset3DAsync_spt_fn;
1395  t_hipMemset3D_spt hipMemset3D_spt_fn;
1396  t_hipMemcpyAsync_spt hipMemcpyAsync_spt_fn;
1397  t_hipMemcpy3DAsync_spt hipMemcpy3DAsync_spt_fn;
1398  t_hipMemcpy2DAsync_spt hipMemcpy2DAsync_spt_fn;
1399  t_hipMemcpyFromSymbolAsync_spt hipMemcpyFromSymbolAsync_spt_fn;
1400  t_hipMemcpyToSymbolAsync_spt hipMemcpyToSymbolAsync_spt_fn;
1401  t_hipMemcpyFromArray_spt hipMemcpyFromArray_spt_fn;
1402  t_hipMemcpy2DToArray_spt hipMemcpy2DToArray_spt_fn;
1403  t_hipMemcpy2DFromArrayAsync_spt hipMemcpy2DFromArrayAsync_spt_fn;
1404  t_hipMemcpy2DToArrayAsync_spt hipMemcpy2DToArrayAsync_spt_fn;
1405  t_hipStreamQuery_spt hipStreamQuery_spt_fn;
1406  t_hipStreamSynchronize_spt hipStreamSynchronize_spt_fn;
1407  t_hipStreamGetPriority_spt hipStreamGetPriority_spt_fn;
1408  t_hipStreamWaitEvent_spt hipStreamWaitEvent_spt_fn;
1409  t_hipStreamGetFlags_spt hipStreamGetFlags_spt_fn;
1410  t_hipStreamAddCallback_spt hipStreamAddCallback_spt_fn;
1411  t_hipEventRecord_spt hipEventRecord_spt_fn;
1412  t_hipLaunchCooperativeKernel_spt hipLaunchCooperativeKernel_spt_fn;
1413  t_hipLaunchKernel_spt hipLaunchKernel_spt_fn;
1414  t_hipGraphLaunch_spt hipGraphLaunch_spt_fn;
1415  t_hipStreamBeginCapture_spt hipStreamBeginCapture_spt_fn;
1416  t_hipStreamEndCapture_spt hipStreamEndCapture_spt_fn;
1417  t_hipStreamIsCapturing_spt hipStreamIsCapturing_spt_fn;
1418  t_hipStreamGetCaptureInfo_spt hipStreamGetCaptureInfo_spt_fn;
1419  t_hipStreamGetCaptureInfo_v2_spt hipStreamGetCaptureInfo_v2_spt_fn;
1420  t_hipLaunchHostFunc_spt hipLaunchHostFunc_spt_fn;
1421  t_hipGetStreamDeviceId hipGetStreamDeviceId_fn;
1422  t_hipDrvGraphAddMemsetNode hipDrvGraphAddMemsetNode_fn;
1423  t_hipGraphAddExternalSemaphoresWaitNode hipGraphAddExternalSemaphoresWaitNode_fn;
1424  t_hipGraphAddExternalSemaphoresSignalNode hipGraphAddExternalSemaphoresSignalNode_fn;
1425  t_hipGraphExternalSemaphoresSignalNodeSetParams hipGraphExternalSemaphoresSignalNodeSetParams_fn;
1426  t_hipGraphExternalSemaphoresWaitNodeSetParams hipGraphExternalSemaphoresWaitNodeSetParams_fn;
1427  t_hipGraphExternalSemaphoresSignalNodeGetParams hipGraphExternalSemaphoresSignalNodeGetParams_fn;
1428  t_hipGraphExternalSemaphoresWaitNodeGetParams hipGraphExternalSemaphoresWaitNodeGetParams_fn;
1429  t_hipGraphExecExternalSemaphoresSignalNodeSetParams hipGraphExecExternalSemaphoresSignalNodeSetParams_fn;
1430  t_hipGraphExecExternalSemaphoresWaitNodeSetParams hipGraphExecExternalSemaphoresWaitNodeSetParams_fn;
1431  t_hipGraphAddNode hipGraphAddNode_fn;
1432  t_hipGraphInstantiateWithParams hipGraphInstantiateWithParams_fn;
1433  t_hipExtGetLastError hipExtGetLastError_fn;
1434  t_hipTexRefGetBorderColor hipTexRefGetBorderColor_fn;
1435  t_hipTexRefGetArray hipTexRefGetArray_fn;
1436  t_hipGetProcAddress hipGetProcAddress_fn;
1437  t_hipStreamBeginCaptureToGraph hipStreamBeginCaptureToGraph_fn;
1438  t_hipGetFuncBySymbol hipGetFuncBySymbol_fn;
1439  t_hipSetValidDevices hipSetValidDevices_fn;
1440  t_hipMemcpyAtoD hipMemcpyAtoD_fn;
1441  t_hipMemcpyDtoA hipMemcpyDtoA_fn;
1442  t_hipMemcpyAtoA hipMemcpyAtoA_fn;
1443  t_hipMemcpyAtoHAsync hipMemcpyAtoHAsync_fn;
1444  t_hipMemcpyHtoAAsync hipMemcpyHtoAAsync_fn;
1445  t_hipMemcpy2DArrayToArray hipMemcpy2DArrayToArray_fn;
1446 };
hipGLDeviceList
Definition: amd_hip_gl_interop.h:40
unsigned int GLenum
Definition: amd_hip_gl_interop.h:52
unsigned int GLuint
Definition: amd_hip_gl_interop.h:50
Definition: amd_hip_vector_types.h:1872
Definition: hip_api_trace.hpp:974
Definition: hip_api_trace.hpp:988