HIP: Heterogenous-computing Interface for Portability
hip_prof_str.h
1 // automatically generated sources
2 #ifndef _HIP_PROF_STR_H
3 #define _HIP_PROF_STR_H
4 
5 // Dummy API primitives
6 #define INIT_NONE_CB_ARGS_DATA(cb_data) {};
7 #define INIT_hipModuleGetFunctionEx_CB_ARGS_DATA(cb_data) {};
8 #define INIT_hipDestroySurfaceObject_CB_ARGS_DATA(cb_data) {};
9 #define INIT_hipDestroyTextureObject_CB_ARGS_DATA(cb_data) {};
10 #define INIT_hipTexRefSetAddress_CB_ARGS_DATA(cb_data) {};
11 #define INIT_hipBindTexture2D_CB_ARGS_DATA(cb_data) {};
12 #define INIT_hipCreateTextureObject_CB_ARGS_DATA(cb_data) {};
13 #define INIT_hipBindTextureToMipmappedArray_CB_ARGS_DATA(cb_data) {};
14 #define INIT_hipBindTextureToArray_CB_ARGS_DATA(cb_data) {};
15 #define INIT_hipTexRefSetFormat_CB_ARGS_DATA(cb_data) {};
16 #define INIT_hipMemcpyHtoH_CB_ARGS_DATA(cb_data) {};
17 #define INIT_hipTexRefSetArray_CB_ARGS_DATA(cb_data) {};
18 #define INIT_hipTexRefSetAddress2D_CB_ARGS_DATA(cb_data) {};
19 #define INIT_hipGetTextureObjectResourceViewDesc_CB_ARGS_DATA(cb_data) {};
20 #define INIT_hipUnbindTexture_CB_ARGS_DATA(cb_data) {};
21 #define INIT_hipTexRefSetFilterMode_CB_ARGS_DATA(cb_data) {};
22 #define INIT_hipGetTextureAlignmentOffset_CB_ARGS_DATA(cb_data) {};
23 #define INIT_hipCreateSurfaceObject_CB_ARGS_DATA(cb_data) {};
24 #define INIT_hipGetChannelDesc_CB_ARGS_DATA(cb_data) {};
25 #define INIT_hipHccGetAcceleratorView_CB_ARGS_DATA(cb_data) {};
26 #define INIT_hipExtModuleLaunchKernel_CB_ARGS_DATA(cb_data) {};
27 #define INIT_hipGetTextureObjectResourceDesc_CB_ARGS_DATA(cb_data) {};
28 #define INIT_hipGetTextureReference_CB_ARGS_DATA(cb_data) {};
29 #define INIT_hipTexRefSetAddressMode_CB_ARGS_DATA(cb_data) {};
30 #define INIT_hipTexRefSetFlags_CB_ARGS_DATA(cb_data) {};
31 #define INIT_hipBindTexture_CB_ARGS_DATA(cb_data) {};
32 #define INIT_hipHccGetAccelerator_CB_ARGS_DATA(cb_data) {};
33 #define INIT_hipGetTextureObjectTextureDesc_CB_ARGS_DATA(cb_data) {};
34 
35 // HIP API callbacks ID enumaration
36 enum hip_api_id_t {
37  HIP_API_ID_hipStreamCreateWithPriority = 0,
38  HIP_API_ID_hipMemcpyToSymbolAsync = 1,
39  HIP_API_ID_hipMallocPitch = 2,
40  HIP_API_ID_hipMalloc = 3,
41  HIP_API_ID_hipDeviceGetName = 4,
42  HIP_API_ID_hipEventRecord = 5,
43  HIP_API_ID_hipCtxSynchronize = 6,
44  HIP_API_ID_hipSetDevice = 7,
45  HIP_API_ID_hipCtxGetApiVersion = 8,
46  HIP_API_ID_hipSetupArgument = 9,
47  HIP_API_ID_hipMemcpyFromSymbolAsync = 10,
48  HIP_API_ID_hipExtGetLinkTypeAndHopCount = 11,
49  HIP_API_ID_hipMemcpyDtoD = 12,
50  HIP_API_ID_hipHostFree = 13,
51  HIP_API_ID_hipMemcpy2DToArray = 14,
52  HIP_API_ID_hipCtxGetCacheConfig = 15,
53  HIP_API_ID_hipStreamWaitEvent = 16,
54  HIP_API_ID_hipDeviceGetStreamPriorityRange = 17,
55  HIP_API_ID_hipModuleLoad = 18,
56  HIP_API_ID_hipDevicePrimaryCtxSetFlags = 19,
57  HIP_API_ID_hipLaunchCooperativeKernel = 20,
58  HIP_API_ID_hipLaunchCooperativeKernelMultiDevice = 21,
59  HIP_API_ID_hipMemcpyAsync = 22,
60  HIP_API_ID_hipMalloc3DArray = 23,
61  HIP_API_ID_hipStreamCreate = 24,
62  HIP_API_ID_hipCtxGetCurrent = 25,
63  HIP_API_ID_hipDevicePrimaryCtxGetState = 26,
64  HIP_API_ID_hipEventQuery = 27,
65  HIP_API_ID_hipEventCreate = 28,
66  HIP_API_ID_hipMemGetAddressRange = 29,
67  HIP_API_ID_hipMemcpyFromSymbol = 30,
68  HIP_API_ID_hipArrayCreate = 31,
69  HIP_API_ID_hipStreamGetFlags = 32,
70  HIP_API_ID_hipMallocArray = 33,
71  HIP_API_ID_hipCtxGetSharedMemConfig = 34,
72  HIP_API_ID_hipMemPtrGetInfo = 35,
73  HIP_API_ID_hipFuncGetAttribute = 36,
74  HIP_API_ID_hipCtxGetFlags = 37,
75  HIP_API_ID_hipStreamDestroy = 38,
76  HIP_API_ID_hipMemset3DAsync = 39,
77  HIP_API_ID_hipMemcpy3D = 40,
78  HIP_API_ID_hipInit = 41,
79  HIP_API_ID_hipMemcpyAtoH = 42,
80  HIP_API_ID_hipStreamGetPriority = 43,
81  HIP_API_ID_hipMemset2D = 44,
82  HIP_API_ID_hipMemset2DAsync = 45,
83  HIP_API_ID_hipDeviceCanAccessPeer = 46,
84  HIP_API_ID_hipDeviceEnablePeerAccess = 47,
85  HIP_API_ID_hipLaunchKernel = 48,
86  HIP_API_ID_hipModuleUnload = 49,
87  HIP_API_ID_hipHostUnregister = 50,
88  HIP_API_ID_hipProfilerStop = 51,
89  HIP_API_ID_hipLaunchByPtr = 52,
90  HIP_API_ID_hipStreamSynchronize = 53,
91  HIP_API_ID_hipDeviceSetCacheConfig = 54,
92  HIP_API_ID_hipGetErrorName = 55,
93  HIP_API_ID_hipMemcpyHtoD = 56,
94  HIP_API_ID_hipModuleGetGlobal = 57,
95  HIP_API_ID_hipMemcpyHtoA = 58,
96  HIP_API_ID_hipCtxCreate = 59,
97  HIP_API_ID_hipMemcpy2D = 60,
98  HIP_API_ID_hipIpcCloseMemHandle = 61,
99  HIP_API_ID_hipChooseDevice = 62,
100  HIP_API_ID_hipDeviceSetSharedMemConfig = 63,
101  HIP_API_ID_hipDeviceComputeCapability = 64,
102  HIP_API_ID_hipDeviceGet = 65,
103  HIP_API_ID_hipProfilerStart = 66,
104  HIP_API_ID_hipCtxSetCacheConfig = 67,
105  HIP_API_ID_hipFuncSetCacheConfig = 68,
106  HIP_API_ID_hipMemcpyPeerAsync = 69,
107  HIP_API_ID_hipEventElapsedTime = 70,
108  HIP_API_ID_hipDevicePrimaryCtxReset = 71,
109  HIP_API_ID_hipMemcpy3DAsync = 72,
110  HIP_API_ID_hipEventDestroy = 73,
111  HIP_API_ID_hipCtxPopCurrent = 74,
112  HIP_API_ID_hipGetSymbolAddress = 75,
113  HIP_API_ID_hipHostGetFlags = 76,
114  HIP_API_ID_hipHostMalloc = 77,
115  HIP_API_ID_hipDriverGetVersion = 78,
116  HIP_API_ID_hipMemGetInfo = 79,
117  HIP_API_ID_hipDeviceReset = 80,
118  HIP_API_ID_hipMemset = 81,
119  HIP_API_ID_hipMemsetD8 = 82,
120  HIP_API_ID_hipMemcpyParam2DAsync = 83,
121  HIP_API_ID_hipHostRegister = 84,
122  HIP_API_ID_hipCtxSetSharedMemConfig = 85,
123  HIP_API_ID_hipArray3DCreate = 86,
124  HIP_API_ID_hipIpcOpenMemHandle = 87,
125  HIP_API_ID_hipGetLastError = 88,
126  HIP_API_ID_hipCtxDestroy = 89,
127  HIP_API_ID_hipDeviceGetSharedMemConfig = 90,
128  HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = 91,
129  HIP_API_ID_hipSetDeviceFlags = 92,
130  HIP_API_ID_hipHccModuleLaunchKernel = 93,
131  HIP_API_ID_hipFree = 94,
132  HIP_API_ID_hipOccupancyMaxPotentialBlockSize = 95,
133  HIP_API_ID_hipDeviceGetAttribute = 96,
134  HIP_API_ID_hipMemcpyDtoH = 97,
135  HIP_API_ID_hipCtxDisablePeerAccess = 98,
136  HIP_API_ID_hipMallocManaged = 99,
137  HIP_API_ID_hipDeviceGetByPCIBusId = 100,
138  HIP_API_ID_hipIpcGetMemHandle = 101,
139  HIP_API_ID_hipMemcpyHtoDAsync = 102,
140  HIP_API_ID_hipCtxGetDevice = 103,
141  HIP_API_ID_hipMemset3D = 104,
142  HIP_API_ID_hipModuleLoadData = 105,
143  HIP_API_ID_hipDeviceTotalMem = 106,
144  HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor = 107,
145  HIP_API_ID_hipCtxSetCurrent = 108,
146  HIP_API_ID_hipGetErrorString = 109,
147  HIP_API_ID_hipDevicePrimaryCtxRetain = 110,
148  HIP_API_ID_hipDeviceDisablePeerAccess = 111,
149  HIP_API_ID_hipStreamCreateWithFlags = 112,
150  HIP_API_ID_hipMemcpyFromArray = 113,
151  HIP_API_ID_hipMemcpy2DAsync = 114,
152  HIP_API_ID_hipFuncGetAttributes = 115,
153  HIP_API_ID_hipGetSymbolSize = 116,
154  HIP_API_ID_hipEventCreateWithFlags = 117,
155  HIP_API_ID_hipStreamQuery = 118,
156  HIP_API_ID_hipDeviceGetPCIBusId = 119,
157  HIP_API_ID_hipMemcpy = 120,
158  HIP_API_ID_hipPeekAtLastError = 121,
159  HIP_API_ID_hipExtLaunchMultiKernelMultiDevice = 122,
160  HIP_API_ID_hipStreamAddCallback = 123,
161  HIP_API_ID_hipMemcpyToArray = 124,
162  HIP_API_ID_hipMemsetD32 = 125,
163  HIP_API_ID_hipDeviceSynchronize = 126,
164  HIP_API_ID_hipDeviceGetCacheConfig = 127,
165  HIP_API_ID_hipMalloc3D = 128,
166  HIP_API_ID_hipPointerGetAttributes = 129,
167  HIP_API_ID_hipMemsetAsync = 130,
168  HIP_API_ID_hipMemcpyToSymbol = 131,
169  HIP_API_ID_hipCtxPushCurrent = 132,
170  HIP_API_ID_hipMemcpyPeer = 133,
171  HIP_API_ID_hipEventSynchronize = 134,
172  HIP_API_ID_hipMemcpyDtoDAsync = 135,
173  HIP_API_ID_hipExtMallocWithFlags = 136,
174  HIP_API_ID_hipCtxEnablePeerAccess = 137,
175  HIP_API_ID_hipMemcpyDtoHAsync = 138,
176  HIP_API_ID_hipModuleLaunchKernel = 139,
177  HIP_API_ID_hipModuleGetTexRef = 140,
178  HIP_API_ID_hipDeviceGetLimit = 141,
179  HIP_API_ID_hipModuleLoadDataEx = 142,
180  HIP_API_ID_hipRuntimeGetVersion = 143,
181  HIP_API_ID_hipGetDeviceProperties = 144,
182  HIP_API_ID_hipFreeArray = 145,
183  HIP_API_ID_hipDevicePrimaryCtxRelease = 146,
184  HIP_API_ID_hipHostGetDevicePointer = 147,
185  HIP_API_ID_hipMemcpyParam2D = 148,
186  HIP_API_ID_hipModuleGetFunction = 149,
187  HIP_API_ID_hipMemsetD32Async = 150,
188  HIP_API_ID_hipGetDevice = 151,
189  HIP_API_ID_hipGetDeviceCount = 152,
190  HIP_API_ID_NUMBER = 153,
191  HIP_API_ID_ANY = 154,
192 
193  HIP_API_ID_NONE = HIP_API_ID_NUMBER,
194  HIP_API_ID_hipModuleGetFunctionEx = HIP_API_ID_NUMBER,
195  HIP_API_ID_hipDestroySurfaceObject = HIP_API_ID_NUMBER,
196  HIP_API_ID_hipDestroyTextureObject = HIP_API_ID_NUMBER,
197  HIP_API_ID_hipTexRefSetAddress = HIP_API_ID_NUMBER,
198  HIP_API_ID_hipBindTexture2D = HIP_API_ID_NUMBER,
199  HIP_API_ID_hipCreateTextureObject = HIP_API_ID_NUMBER,
200  HIP_API_ID_hipBindTextureToMipmappedArray = HIP_API_ID_NUMBER,
201  HIP_API_ID_hipBindTextureToArray = HIP_API_ID_NUMBER,
202  HIP_API_ID_hipTexRefSetFormat = HIP_API_ID_NUMBER,
203  HIP_API_ID_hipMemcpyHtoH = HIP_API_ID_NUMBER,
204  HIP_API_ID_hipTexRefSetArray = HIP_API_ID_NUMBER,
205  HIP_API_ID_hipTexRefSetAddress2D = HIP_API_ID_NUMBER,
206  HIP_API_ID_hipGetTextureObjectResourceViewDesc = HIP_API_ID_NUMBER,
207  HIP_API_ID_hipUnbindTexture = HIP_API_ID_NUMBER,
208  HIP_API_ID_hipTexRefSetFilterMode = HIP_API_ID_NUMBER,
209  HIP_API_ID_hipGetTextureAlignmentOffset = HIP_API_ID_NUMBER,
210  HIP_API_ID_hipCreateSurfaceObject = HIP_API_ID_NUMBER,
211  HIP_API_ID_hipGetChannelDesc = HIP_API_ID_NUMBER,
212  HIP_API_ID_hipHccGetAcceleratorView = HIP_API_ID_NUMBER,
213  HIP_API_ID_hipExtModuleLaunchKernel = HIP_API_ID_NUMBER,
214  HIP_API_ID_hipGetTextureObjectResourceDesc = HIP_API_ID_NUMBER,
215  HIP_API_ID_hipGetTextureReference = HIP_API_ID_NUMBER,
216  HIP_API_ID_hipTexRefSetAddressMode = HIP_API_ID_NUMBER,
217  HIP_API_ID_hipTexRefSetFlags = HIP_API_ID_NUMBER,
218  HIP_API_ID_hipBindTexture = HIP_API_ID_NUMBER,
219  HIP_API_ID_hipHccGetAccelerator = HIP_API_ID_NUMBER,
220  HIP_API_ID_hipGetTextureObjectTextureDesc = HIP_API_ID_NUMBER,
221 };
222 
223 // Return HIP API string
224 static inline const char* hip_api_name(const uint32_t id) {
225  switch(id) {
226  case HIP_API_ID_hipStreamCreateWithPriority: return "hipStreamCreateWithPriority";
227  case HIP_API_ID_hipMemcpyToSymbolAsync: return "hipMemcpyToSymbolAsync";
228  case HIP_API_ID_hipMallocPitch: return "hipMallocPitch";
229  case HIP_API_ID_hipMalloc: return "hipMalloc";
230  case HIP_API_ID_hipDeviceGetName: return "hipDeviceGetName";
231  case HIP_API_ID_hipEventRecord: return "hipEventRecord";
232  case HIP_API_ID_hipCtxSynchronize: return "hipCtxSynchronize";
233  case HIP_API_ID_hipSetDevice: return "hipSetDevice";
234  case HIP_API_ID_hipCtxGetApiVersion: return "hipCtxGetApiVersion";
235  case HIP_API_ID_hipSetupArgument: return "hipSetupArgument";
236  case HIP_API_ID_hipMemcpyFromSymbolAsync: return "hipMemcpyFromSymbolAsync";
237  case HIP_API_ID_hipExtGetLinkTypeAndHopCount: return "hipExtGetLinkTypeAndHopCount";
238  case HIP_API_ID_hipMemcpyDtoD: return "hipMemcpyDtoD";
239  case HIP_API_ID_hipHostFree: return "hipHostFree";
240  case HIP_API_ID_hipMemcpy2DToArray: return "hipMemcpy2DToArray";
241  case HIP_API_ID_hipCtxGetCacheConfig: return "hipCtxGetCacheConfig";
242  case HIP_API_ID_hipStreamWaitEvent: return "hipStreamWaitEvent";
243  case HIP_API_ID_hipDeviceGetStreamPriorityRange: return "hipDeviceGetStreamPriorityRange";
244  case HIP_API_ID_hipModuleLoad: return "hipModuleLoad";
245  case HIP_API_ID_hipDevicePrimaryCtxSetFlags: return "hipDevicePrimaryCtxSetFlags";
246  case HIP_API_ID_hipLaunchCooperativeKernel: return "hipLaunchCooperativeKernel";
247  case HIP_API_ID_hipLaunchCooperativeKernelMultiDevice: return "hipLaunchCooperativeKernelMultiDevice";
248  case HIP_API_ID_hipMemcpyAsync: return "hipMemcpyAsync";
249  case HIP_API_ID_hipMalloc3DArray: return "hipMalloc3DArray";
250  case HIP_API_ID_hipStreamCreate: return "hipStreamCreate";
251  case HIP_API_ID_hipCtxGetCurrent: return "hipCtxGetCurrent";
252  case HIP_API_ID_hipDevicePrimaryCtxGetState: return "hipDevicePrimaryCtxGetState";
253  case HIP_API_ID_hipEventQuery: return "hipEventQuery";
254  case HIP_API_ID_hipEventCreate: return "hipEventCreate";
255  case HIP_API_ID_hipMemGetAddressRange: return "hipMemGetAddressRange";
256  case HIP_API_ID_hipMemcpyFromSymbol: return "hipMemcpyFromSymbol";
257  case HIP_API_ID_hipArrayCreate: return "hipArrayCreate";
258  case HIP_API_ID_hipStreamGetFlags: return "hipStreamGetFlags";
259  case HIP_API_ID_hipMallocArray: return "hipMallocArray";
260  case HIP_API_ID_hipCtxGetSharedMemConfig: return "hipCtxGetSharedMemConfig";
261  case HIP_API_ID_hipMemPtrGetInfo: return "hipMemPtrGetInfo";
262  case HIP_API_ID_hipFuncGetAttribute: return "hipFuncGetAttribute";
263  case HIP_API_ID_hipCtxGetFlags: return "hipCtxGetFlags";
264  case HIP_API_ID_hipStreamDestroy: return "hipStreamDestroy";
265  case HIP_API_ID_hipMemset3DAsync: return "hipMemset3DAsync";
266  case HIP_API_ID_hipMemcpy3D: return "hipMemcpy3D";
267  case HIP_API_ID_hipInit: return "hipInit";
268  case HIP_API_ID_hipMemcpyAtoH: return "hipMemcpyAtoH";
269  case HIP_API_ID_hipStreamGetPriority: return "hipStreamGetPriority";
270  case HIP_API_ID_hipMemset2D: return "hipMemset2D";
271  case HIP_API_ID_hipMemset2DAsync: return "hipMemset2DAsync";
272  case HIP_API_ID_hipDeviceCanAccessPeer: return "hipDeviceCanAccessPeer";
273  case HIP_API_ID_hipDeviceEnablePeerAccess: return "hipDeviceEnablePeerAccess";
274  case HIP_API_ID_hipLaunchKernel: return "hipLaunchKernel";
275  case HIP_API_ID_hipModuleUnload: return "hipModuleUnload";
276  case HIP_API_ID_hipHostUnregister: return "hipHostUnregister";
277  case HIP_API_ID_hipProfilerStop: return "hipProfilerStop";
278  case HIP_API_ID_hipLaunchByPtr: return "hipLaunchByPtr";
279  case HIP_API_ID_hipStreamSynchronize: return "hipStreamSynchronize";
280  case HIP_API_ID_hipDeviceSetCacheConfig: return "hipDeviceSetCacheConfig";
281  case HIP_API_ID_hipGetErrorName: return "hipGetErrorName";
282  case HIP_API_ID_hipMemcpyHtoD: return "hipMemcpyHtoD";
283  case HIP_API_ID_hipModuleGetGlobal: return "hipModuleGetGlobal";
284  case HIP_API_ID_hipMemcpyHtoA: return "hipMemcpyHtoA";
285  case HIP_API_ID_hipCtxCreate: return "hipCtxCreate";
286  case HIP_API_ID_hipMemcpy2D: return "hipMemcpy2D";
287  case HIP_API_ID_hipIpcCloseMemHandle: return "hipIpcCloseMemHandle";
288  case HIP_API_ID_hipChooseDevice: return "hipChooseDevice";
289  case HIP_API_ID_hipDeviceSetSharedMemConfig: return "hipDeviceSetSharedMemConfig";
290  case HIP_API_ID_hipDeviceComputeCapability: return "hipDeviceComputeCapability";
291  case HIP_API_ID_hipDeviceGet: return "hipDeviceGet";
292  case HIP_API_ID_hipProfilerStart: return "hipProfilerStart";
293  case HIP_API_ID_hipCtxSetCacheConfig: return "hipCtxSetCacheConfig";
294  case HIP_API_ID_hipFuncSetCacheConfig: return "hipFuncSetCacheConfig";
295  case HIP_API_ID_hipMemcpyPeerAsync: return "hipMemcpyPeerAsync";
296  case HIP_API_ID_hipEventElapsedTime: return "hipEventElapsedTime";
297  case HIP_API_ID_hipDevicePrimaryCtxReset: return "hipDevicePrimaryCtxReset";
298  case HIP_API_ID_hipMemcpy3DAsync: return "hipMemcpy3DAsync";
299  case HIP_API_ID_hipEventDestroy: return "hipEventDestroy";
300  case HIP_API_ID_hipCtxPopCurrent: return "hipCtxPopCurrent";
301  case HIP_API_ID_hipGetSymbolAddress: return "hipGetSymbolAddress";
302  case HIP_API_ID_hipHostGetFlags: return "hipHostGetFlags";
303  case HIP_API_ID_hipHostMalloc: return "hipHostMalloc";
304  case HIP_API_ID_hipDriverGetVersion: return "hipDriverGetVersion";
305  case HIP_API_ID_hipMemGetInfo: return "hipMemGetInfo";
306  case HIP_API_ID_hipDeviceReset: return "hipDeviceReset";
307  case HIP_API_ID_hipMemset: return "hipMemset";
308  case HIP_API_ID_hipMemsetD8: return "hipMemsetD8";
309  case HIP_API_ID_hipMemcpyParam2DAsync: return "hipMemcpyParam2DAsync";
310  case HIP_API_ID_hipHostRegister: return "hipHostRegister";
311  case HIP_API_ID_hipCtxSetSharedMemConfig: return "hipCtxSetSharedMemConfig";
312  case HIP_API_ID_hipArray3DCreate: return "hipArray3DCreate";
313  case HIP_API_ID_hipIpcOpenMemHandle: return "hipIpcOpenMemHandle";
314  case HIP_API_ID_hipGetLastError: return "hipGetLastError";
315  case HIP_API_ID_hipCtxDestroy: return "hipCtxDestroy";
316  case HIP_API_ID_hipDeviceGetSharedMemConfig: return "hipDeviceGetSharedMemConfig";
317  case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags: return "hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags";
318  case HIP_API_ID_hipSetDeviceFlags: return "hipSetDeviceFlags";
319  case HIP_API_ID_hipHccModuleLaunchKernel: return "hipHccModuleLaunchKernel";
320  case HIP_API_ID_hipFree: return "hipFree";
321  case HIP_API_ID_hipOccupancyMaxPotentialBlockSize: return "hipOccupancyMaxPotentialBlockSize";
322  case HIP_API_ID_hipDeviceGetAttribute: return "hipDeviceGetAttribute";
323  case HIP_API_ID_hipMemcpyDtoH: return "hipMemcpyDtoH";
324  case HIP_API_ID_hipCtxDisablePeerAccess: return "hipCtxDisablePeerAccess";
325  case HIP_API_ID_hipMallocManaged: return "hipMallocManaged";
326  case HIP_API_ID_hipDeviceGetByPCIBusId: return "hipDeviceGetByPCIBusId";
327  case HIP_API_ID_hipIpcGetMemHandle: return "hipIpcGetMemHandle";
328  case HIP_API_ID_hipMemcpyHtoDAsync: return "hipMemcpyHtoDAsync";
329  case HIP_API_ID_hipCtxGetDevice: return "hipCtxGetDevice";
330  case HIP_API_ID_hipMemset3D: return "hipMemset3D";
331  case HIP_API_ID_hipModuleLoadData: return "hipModuleLoadData";
332  case HIP_API_ID_hipDeviceTotalMem: return "hipDeviceTotalMem";
333  case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor: return "hipOccupancyMaxActiveBlocksPerMultiprocessor";
334  case HIP_API_ID_hipCtxSetCurrent: return "hipCtxSetCurrent";
335  case HIP_API_ID_hipGetErrorString: return "hipGetErrorString";
336  case HIP_API_ID_hipDevicePrimaryCtxRetain: return "hipDevicePrimaryCtxRetain";
337  case HIP_API_ID_hipDeviceDisablePeerAccess: return "hipDeviceDisablePeerAccess";
338  case HIP_API_ID_hipStreamCreateWithFlags: return "hipStreamCreateWithFlags";
339  case HIP_API_ID_hipMemcpyFromArray: return "hipMemcpyFromArray";
340  case HIP_API_ID_hipMemcpy2DAsync: return "hipMemcpy2DAsync";
341  case HIP_API_ID_hipFuncGetAttributes: return "hipFuncGetAttributes";
342  case HIP_API_ID_hipGetSymbolSize: return "hipGetSymbolSize";
343  case HIP_API_ID_hipEventCreateWithFlags: return "hipEventCreateWithFlags";
344  case HIP_API_ID_hipStreamQuery: return "hipStreamQuery";
345  case HIP_API_ID_hipDeviceGetPCIBusId: return "hipDeviceGetPCIBusId";
346  case HIP_API_ID_hipMemcpy: return "hipMemcpy";
347  case HIP_API_ID_hipPeekAtLastError: return "hipPeekAtLastError";
348  case HIP_API_ID_hipExtLaunchMultiKernelMultiDevice: return "hipExtLaunchMultiKernelMultiDevice";
349  case HIP_API_ID_hipStreamAddCallback: return "hipStreamAddCallback";
350  case HIP_API_ID_hipMemcpyToArray: return "hipMemcpyToArray";
351  case HIP_API_ID_hipMemsetD32: return "hipMemsetD32";
352  case HIP_API_ID_hipDeviceSynchronize: return "hipDeviceSynchronize";
353  case HIP_API_ID_hipDeviceGetCacheConfig: return "hipDeviceGetCacheConfig";
354  case HIP_API_ID_hipMalloc3D: return "hipMalloc3D";
355  case HIP_API_ID_hipPointerGetAttributes: return "hipPointerGetAttributes";
356  case HIP_API_ID_hipMemsetAsync: return "hipMemsetAsync";
357  case HIP_API_ID_hipMemcpyToSymbol: return "hipMemcpyToSymbol";
358  case HIP_API_ID_hipCtxPushCurrent: return "hipCtxPushCurrent";
359  case HIP_API_ID_hipMemcpyPeer: return "hipMemcpyPeer";
360  case HIP_API_ID_hipEventSynchronize: return "hipEventSynchronize";
361  case HIP_API_ID_hipMemcpyDtoDAsync: return "hipMemcpyDtoDAsync";
362  case HIP_API_ID_hipExtMallocWithFlags: return "hipExtMallocWithFlags";
363  case HIP_API_ID_hipCtxEnablePeerAccess: return "hipCtxEnablePeerAccess";
364  case HIP_API_ID_hipMemcpyDtoHAsync: return "hipMemcpyDtoHAsync";
365  case HIP_API_ID_hipModuleLaunchKernel: return "hipModuleLaunchKernel";
366  case HIP_API_ID_hipModuleGetTexRef: return "hipModuleGetTexRef";
367  case HIP_API_ID_hipDeviceGetLimit: return "hipDeviceGetLimit";
368  case HIP_API_ID_hipModuleLoadDataEx: return "hipModuleLoadDataEx";
369  case HIP_API_ID_hipRuntimeGetVersion: return "hipRuntimeGetVersion";
370  case HIP_API_ID_hipGetDeviceProperties: return "hipGetDeviceProperties";
371  case HIP_API_ID_hipFreeArray: return "hipFreeArray";
372  case HIP_API_ID_hipDevicePrimaryCtxRelease: return "hipDevicePrimaryCtxRelease";
373  case HIP_API_ID_hipHostGetDevicePointer: return "hipHostGetDevicePointer";
374  case HIP_API_ID_hipMemcpyParam2D: return "hipMemcpyParam2D";
375  case HIP_API_ID_hipModuleGetFunction: return "hipModuleGetFunction";
376  case HIP_API_ID_hipMemsetD32Async: return "hipMemsetD32Async";
377  case HIP_API_ID_hipGetDevice: return "hipGetDevice";
378  case HIP_API_ID_hipGetDeviceCount: return "hipGetDeviceCount";
379  };
380  return "unknown";
381 };
382 
383 // HIP API callbacks data structure
385  uint64_t correlation_id;
386  uint32_t phase;
387  union {
388  struct {
389  hipStream_t* stream;
390  unsigned int flags;
391  int priority;
392  } hipStreamCreateWithPriority;
393  struct {
394  const void* symbolName;
395  const void* src;
396  size_t sizeBytes;
397  size_t offset;
398  hipMemcpyKind kind;
399  hipStream_t stream;
400  } hipMemcpyToSymbolAsync;
401  struct {
402  void** ptr;
403  size_t* pitch;
404  size_t width;
405  size_t height;
406  } hipMallocPitch;
407  struct {
408  void** ptr;
409  size_t size;
410  } hipMalloc;
411  struct {
412  char* name;
413  int len;
414  hipDevice_t device;
415  } hipDeviceGetName;
416  struct {
417  hipEvent_t event;
418  hipStream_t stream;
419  } hipEventRecord;
420  struct {
421  int deviceId;
422  } hipSetDevice;
423  struct {
424  hipCtx_t ctx;
425  int* apiVersion;
426  } hipCtxGetApiVersion;
427  struct {
428  const void* arg;
429  size_t size;
430  size_t offset;
431  } hipSetupArgument;
432  struct {
433  void* dst;
434  const void* symbolName;
435  size_t sizeBytes;
436  size_t offset;
437  hipMemcpyKind kind;
438  hipStream_t stream;
439  } hipMemcpyFromSymbolAsync;
440  struct {
441  int device1;
442  int device2;
443  unsigned int* linktype;
444  unsigned int* hopcount;
445  } hipExtGetLinkTypeAndHopCount;
446  struct {
447  hipDeviceptr_t dst;
448  hipDeviceptr_t src;
449  size_t sizeBytes;
450  } hipMemcpyDtoD;
451  struct {
452  void* ptr;
453  } hipHostFree;
454  struct {
455  hipArray* dst;
456  size_t wOffset;
457  size_t hOffset;
458  const void* src;
459  size_t spitch;
460  size_t width;
461  size_t height;
462  hipMemcpyKind kind;
463  } hipMemcpy2DToArray;
464  struct {
465  hipFuncCache_t* cacheConfig;
466  } hipCtxGetCacheConfig;
467  struct {
468  hipStream_t stream;
469  hipEvent_t event;
470  unsigned int flags;
471  } hipStreamWaitEvent;
472  struct {
473  int* leastPriority;
474  int* greatestPriority;
475  } hipDeviceGetStreamPriorityRange;
476  struct {
477  hipModule_t* module;
478  const char* fname;
479  } hipModuleLoad;
480  struct {
481  hipDevice_t dev;
482  unsigned int flags;
483  } hipDevicePrimaryCtxSetFlags;
484  struct {
485  const void* f;
486  dim3 gridDim;
487  dim3 blockDimX;
488  void** kernelParams;
489  unsigned int sharedMemBytes;
490  hipStream_t stream;
491  } hipLaunchCooperativeKernel;
492  struct {
493  hipLaunchParams* launchParamsList;
494  int numDevices;
495  unsigned int flags;
496  } hipLaunchCooperativeKernelMultiDevice;
497  struct {
498  void* dst;
499  const void* src;
500  size_t sizeBytes;
501  hipMemcpyKind kind;
502  hipStream_t stream;
503  } hipMemcpyAsync;
504  struct {
505  hipArray** array;
506  const hipChannelFormatDesc* desc;
507  hipExtent extent;
508  unsigned int flags;
509  } hipMalloc3DArray;
510  struct {
511  hipStream_t* stream;
512  } hipStreamCreate;
513  struct {
514  hipCtx_t* ctx;
515  } hipCtxGetCurrent;
516  struct {
517  hipDevice_t dev;
518  unsigned int* flags;
519  int* active;
520  } hipDevicePrimaryCtxGetState;
521  struct {
522  hipEvent_t event;
523  } hipEventQuery;
524  struct {
525  hipEvent_t* event;
526  } hipEventCreate;
527  struct {
528  hipDeviceptr_t* pbase;
529  size_t* psize;
530  hipDeviceptr_t dptr;
531  } hipMemGetAddressRange;
532  struct {
533  void* dst;
534  const void* symbolName;
535  size_t sizeBytes;
536  size_t offset;
537  hipMemcpyKind kind;
538  } hipMemcpyFromSymbol;
539  struct {
540  hipArray** pHandle;
541  const HIP_ARRAY_DESCRIPTOR* pAllocateArray;
542  } hipArrayCreate;
543  struct {
544  hipStream_t stream;
545  unsigned int* flags;
546  } hipStreamGetFlags;
547  struct {
548  hipArray** array;
549  const hipChannelFormatDesc* desc;
550  size_t width;
551  size_t height;
552  unsigned int flags;
553  } hipMallocArray;
554  struct {
555  hipSharedMemConfig* pConfig;
556  } hipCtxGetSharedMemConfig;
557  struct {
558  void* ptr;
559  size_t* size;
560  } hipMemPtrGetInfo;
561  struct {
562  int* value;
563  hipFunction_attribute attrib;
564  hipFunction_t hfunc;
565  } hipFuncGetAttribute;
566  struct {
567  unsigned int* flags;
568  } hipCtxGetFlags;
569  struct {
570  hipStream_t stream;
571  } hipStreamDestroy;
572  struct {
573  hipPitchedPtr pitchedDevPtr;
574  int value;
575  hipExtent extent;
576  hipStream_t stream;
577  } hipMemset3DAsync;
578  struct {
579  const hipMemcpy3DParms* p;
580  } hipMemcpy3D;
581  struct {
582  unsigned int flags;
583  } hipInit;
584  struct {
585  void* dst;
586  hipArray* srcArray;
587  size_t srcOffset;
588  size_t count;
589  } hipMemcpyAtoH;
590  struct {
591  hipStream_t stream;
592  int* priority;
593  } hipStreamGetPriority;
594  struct {
595  void* dst;
596  size_t pitch;
597  int value;
598  size_t width;
599  size_t height;
600  } hipMemset2D;
601  struct {
602  void* dst;
603  size_t pitch;
604  int value;
605  size_t width;
606  size_t height;
607  hipStream_t stream;
608  } hipMemset2DAsync;
609  struct {
610  int* canAccessPeer;
611  int deviceId;
612  int peerDeviceId;
613  } hipDeviceCanAccessPeer;
614  struct {
615  int peerDeviceId;
616  unsigned int flags;
617  } hipDeviceEnablePeerAccess;
618  struct {
619  const void* function_address;
620  dim3 numBlocks;
621  dim3 dimBlocks;
622  void** args;
623  size_t sharedMemBytes;
624  hipStream_t stream;
625  } hipLaunchKernel;
626  struct {
627  hipModule_t module;
628  } hipModuleUnload;
629  struct {
630  void* hostPtr;
631  } hipHostUnregister;
632  struct {
633  const void* func;
634  } hipLaunchByPtr;
635  struct {
636  hipStream_t stream;
637  } hipStreamSynchronize;
638  struct {
639  hipFuncCache_t cacheConfig;
640  } hipDeviceSetCacheConfig;
641  struct {
642  hipError_t hip_error;
643  } hipGetErrorName;
644  struct {
645  hipDeviceptr_t dst;
646  void* src;
647  size_t sizeBytes;
648  } hipMemcpyHtoD;
649  struct {
650  hipDeviceptr_t* dptr;
651  size_t* bytes;
652  hipModule_t hmod;
653  const char* name;
654  } hipModuleGetGlobal;
655  struct {
656  hipArray* dstArray;
657  size_t dstOffset;
658  const void* srcHost;
659  size_t count;
660  } hipMemcpyHtoA;
661  struct {
662  hipCtx_t* ctx;
663  unsigned int flags;
664  hipDevice_t device;
665  } hipCtxCreate;
666  struct {
667  void* dst;
668  size_t dpitch;
669  const void* src;
670  size_t spitch;
671  size_t width;
672  size_t height;
673  hipMemcpyKind kind;
674  } hipMemcpy2D;
675  struct {
676  void* devPtr;
677  } hipIpcCloseMemHandle;
678  struct {
679  int* device;
680  const hipDeviceProp_t* prop;
681  } hipChooseDevice;
682  struct {
683  hipSharedMemConfig config;
684  } hipDeviceSetSharedMemConfig;
685  struct {
686  int* major;
687  int* minor;
688  hipDevice_t device;
689  } hipDeviceComputeCapability;
690  struct {
691  hipDevice_t* device;
692  int ordinal;
693  } hipDeviceGet;
694  struct {
695  hipFuncCache_t cacheConfig;
696  } hipCtxSetCacheConfig;
697  struct {
698  const void* func;
699  hipFuncCache_t config;
700  } hipFuncSetCacheConfig;
701  struct {
702  void* dst;
703  int dstDeviceId;
704  const void* src;
705  int srcDevice;
706  size_t sizeBytes;
707  hipStream_t stream;
708  } hipMemcpyPeerAsync;
709  struct {
710  float* ms;
711  hipEvent_t start;
712  hipEvent_t stop;
713  } hipEventElapsedTime;
714  struct {
715  hipDevice_t dev;
716  } hipDevicePrimaryCtxReset;
717  struct {
718  const hipMemcpy3DParms* p;
719  hipStream_t stream;
720  } hipMemcpy3DAsync;
721  struct {
722  hipEvent_t event;
723  } hipEventDestroy;
724  struct {
725  hipCtx_t* ctx;
726  } hipCtxPopCurrent;
727  struct {
728  void** devPtr;
729  const void* symbolName;
730  } hipGetSymbolAddress;
731  struct {
732  unsigned int* flagsPtr;
733  void* hostPtr;
734  } hipHostGetFlags;
735  struct {
736  void** ptr;
737  size_t size;
738  unsigned int flags;
739  } hipHostMalloc;
740  struct {
741  int* driverVersion;
742  } hipDriverGetVersion;
743  struct {
744  size_t* free;
745  size_t* total;
746  } hipMemGetInfo;
747  struct {
748  void* dst;
749  int value;
750  size_t sizeBytes;
751  } hipMemset;
752  struct {
753  hipDeviceptr_t dest;
754  unsigned char value;
755  size_t sizeBytes;
756  } hipMemsetD8;
757  struct {
758  const hip_Memcpy2D* pCopy;
759  hipStream_t stream;
760  } hipMemcpyParam2DAsync;
761  struct {
762  void* hostPtr;
763  size_t sizeBytes;
764  unsigned int flags;
765  } hipHostRegister;
766  struct {
767  hipSharedMemConfig config;
768  } hipCtxSetSharedMemConfig;
769  struct {
770  hipArray** array;
771  const HIP_ARRAY3D_DESCRIPTOR* pAllocateArray;
772  } hipArray3DCreate;
773  struct {
774  void** devPtr;
775  hipIpcMemHandle_t handle;
776  unsigned int flags;
777  } hipIpcOpenMemHandle;
778  struct {
779  hipCtx_t ctx;
780  } hipCtxDestroy;
781  struct {
782  hipSharedMemConfig* pConfig;
783  } hipDeviceGetSharedMemConfig;
784  struct {
785  unsigned int* numBlocks;
786  hipFunction_t f;
787  unsigned int blockSize;
788  size_t dynSharedMemPerBlk;
789  unsigned int flags;
790  } hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
791  struct {
792  unsigned int flags;
793  } hipSetDeviceFlags;
794  struct {
795  hipFunction_t f;
796  unsigned int globalWorkSizeX;
797  unsigned int globalWorkSizeY;
798  unsigned int globalWorkSizeZ;
799  unsigned int localWorkSizeX;
800  unsigned int localWorkSizeY;
801  unsigned int localWorkSizeZ;
802  size_t sharedMemBytes;
803  hipStream_t hStream;
804  void** kernelParams;
805  void** extra;
806  hipEvent_t startEvent;
807  hipEvent_t stopEvent;
808  } hipHccModuleLaunchKernel;
809  struct {
810  void* ptr;
811  } hipFree;
812  struct {
813  unsigned int* gridSize;
814  unsigned int* blockSize;
815  hipFunction_t f;
816  size_t dynSharedMemPerBlk;
817  unsigned int blockSizeLimit;
818  } hipOccupancyMaxPotentialBlockSize;
819  struct {
820  int* pi;
822  int deviceId;
823  } hipDeviceGetAttribute;
824  struct {
825  void* dst;
826  hipDeviceptr_t src;
827  size_t sizeBytes;
828  } hipMemcpyDtoH;
829  struct {
830  hipCtx_t peerCtx;
831  } hipCtxDisablePeerAccess;
832  struct {
833  void** devPtr;
834  size_t size;
835  unsigned int flags;
836  } hipMallocManaged;
837  struct {
838  int* device;
839  const char* pciBusId;
840  } hipDeviceGetByPCIBusId;
841  struct {
842  hipIpcMemHandle_t* handle;
843  void* devPtr;
844  } hipIpcGetMemHandle;
845  struct {
846  hipDeviceptr_t dst;
847  void* src;
848  size_t sizeBytes;
849  hipStream_t stream;
850  } hipMemcpyHtoDAsync;
851  struct {
852  hipDevice_t* device;
853  } hipCtxGetDevice;
854  struct {
855  hipPitchedPtr pitchedDevPtr;
856  int value;
857  hipExtent extent;
858  } hipMemset3D;
859  struct {
860  hipModule_t* module;
861  const void* image;
862  } hipModuleLoadData;
863  struct {
864  size_t* bytes;
865  hipDevice_t device;
866  } hipDeviceTotalMem;
867  struct {
868  unsigned int* numBlocks;
869  hipFunction_t f;
870  unsigned int blockSize;
871  size_t dynSharedMemPerBlk;
872  } hipOccupancyMaxActiveBlocksPerMultiprocessor;
873  struct {
874  hipCtx_t ctx;
875  } hipCtxSetCurrent;
876  struct {
877  hipError_t hipError;
878  } hipGetErrorString;
879  struct {
880  hipCtx_t* pctx;
881  hipDevice_t dev;
882  } hipDevicePrimaryCtxRetain;
883  struct {
884  int peerDeviceId;
885  } hipDeviceDisablePeerAccess;
886  struct {
887  hipStream_t* stream;
888  unsigned int flags;
889  } hipStreamCreateWithFlags;
890  struct {
891  void* dst;
892  hipArray_const_t srcArray;
893  size_t wOffset;
894  size_t hOffset;
895  size_t count;
896  hipMemcpyKind kind;
897  } hipMemcpyFromArray;
898  struct {
899  void* dst;
900  size_t dpitch;
901  const void* src;
902  size_t spitch;
903  size_t width;
904  size_t height;
905  hipMemcpyKind kind;
906  hipStream_t stream;
907  } hipMemcpy2DAsync;
908  struct {
909  hipFuncAttributes* attr;
910  const void* func;
911  } hipFuncGetAttributes;
912  struct {
913  size_t* size;
914  const void* symbolName;
915  } hipGetSymbolSize;
916  struct {
917  hipEvent_t* event;
918  unsigned int flags;
919  } hipEventCreateWithFlags;
920  struct {
921  hipStream_t stream;
922  } hipStreamQuery;
923  struct {
924  char* pciBusId;
925  int len;
926  int device;
927  } hipDeviceGetPCIBusId;
928  struct {
929  void* dst;
930  const void* src;
931  size_t sizeBytes;
932  hipMemcpyKind kind;
933  } hipMemcpy;
934  struct {
935  hipLaunchParams* launchParamsList;
936  int numDevices;
937  unsigned int flags;
938  } hipExtLaunchMultiKernelMultiDevice;
939  struct {
940  hipStream_t stream;
941  hipStreamCallback_t callback;
942  void* userData;
943  unsigned int flags;
944  } hipStreamAddCallback;
945  struct {
946  hipArray* dst;
947  size_t wOffset;
948  size_t hOffset;
949  const void* src;
950  size_t count;
951  hipMemcpyKind kind;
952  } hipMemcpyToArray;
953  struct {
954  hipDeviceptr_t dest;
955  int value;
956  size_t count;
957  } hipMemsetD32;
958  struct {
959  hipFuncCache_t* cacheConfig;
960  } hipDeviceGetCacheConfig;
961  struct {
962  hipPitchedPtr* pitchedDevPtr;
963  hipExtent extent;
964  } hipMalloc3D;
965  struct {
966  hipPointerAttribute_t* attributes;
967  const void* ptr;
968  } hipPointerGetAttributes;
969  struct {
970  void* dst;
971  int value;
972  size_t sizeBytes;
973  hipStream_t stream;
974  } hipMemsetAsync;
975  struct {
976  const void* symbolName;
977  const void* src;
978  size_t sizeBytes;
979  size_t offset;
980  hipMemcpyKind kind;
981  } hipMemcpyToSymbol;
982  struct {
983  hipCtx_t ctx;
984  } hipCtxPushCurrent;
985  struct {
986  void* dst;
987  int dstDeviceId;
988  const void* src;
989  int srcDeviceId;
990  size_t sizeBytes;
991  } hipMemcpyPeer;
992  struct {
993  hipEvent_t event;
994  } hipEventSynchronize;
995  struct {
996  hipDeviceptr_t dst;
997  hipDeviceptr_t src;
998  size_t sizeBytes;
999  hipStream_t stream;
1000  } hipMemcpyDtoDAsync;
1001  struct {
1002  void** ptr;
1003  size_t sizeBytes;
1004  unsigned int flags;
1005  } hipExtMallocWithFlags;
1006  struct {
1007  hipCtx_t peerCtx;
1008  unsigned int flags;
1009  } hipCtxEnablePeerAccess;
1010  struct {
1011  void* dst;
1012  hipDeviceptr_t src;
1013  size_t sizeBytes;
1014  hipStream_t stream;
1015  } hipMemcpyDtoHAsync;
1016  struct {
1017  hipFunction_t f;
1018  unsigned int gridDimX;
1019  unsigned int gridDimY;
1020  unsigned int gridDimZ;
1021  unsigned int blockDimX;
1022  unsigned int blockDimY;
1023  unsigned int blockDimZ;
1024  unsigned int sharedMemBytes;
1025  hipStream_t stream;
1026  void** kernelParams;
1027  void** extra;
1028  } hipModuleLaunchKernel;
1029  struct {
1030  textureReference** texRef;
1031  hipModule_t hmod;
1032  const char* name;
1033  } hipModuleGetTexRef;
1034  struct {
1035  size_t* pValue;
1036  enum hipLimit_t limit;
1037  } hipDeviceGetLimit;
1038  struct {
1039  hipModule_t* module;
1040  const void* image;
1041  unsigned int numOptions;
1042  hipJitOption* options;
1043  void** optionValues;
1044  } hipModuleLoadDataEx;
1045  struct {
1046  int* runtimeVersion;
1047  } hipRuntimeGetVersion;
1048  struct {
1049  hipDeviceProp_t* prop;
1050  int deviceId;
1051  } hipGetDeviceProperties;
1052  struct {
1053  hipArray* array;
1054  } hipFreeArray;
1055  struct {
1056  hipDevice_t dev;
1057  } hipDevicePrimaryCtxRelease;
1058  struct {
1059  void** devPtr;
1060  void* hstPtr;
1061  unsigned int flags;
1062  } hipHostGetDevicePointer;
1063  struct {
1064  const hip_Memcpy2D* pCopy;
1065  } hipMemcpyParam2D;
1066  struct {
1067  hipFunction_t* function;
1068  hipModule_t module;
1069  const char* kname;
1070  } hipModuleGetFunction;
1071  struct {
1072  hipDeviceptr_t dst;
1073  int value;
1074  size_t count;
1075  hipStream_t stream;
1076  } hipMemsetD32Async;
1077  struct {
1078  int* deviceId;
1079  } hipGetDevice;
1080  struct {
1081  int* count;
1082  } hipGetDeviceCount;
1083  } args;
1084 };
1085 
1086 // HIP API callbacks args data filling macros
1087 // hipStreamCreateWithPriority[('hipStream_t*', 'stream'), ('unsigned int', 'flags'), ('int', 'priority')]
1088 #define INIT_hipStreamCreateWithPriority_CB_ARGS_DATA(cb_data) { \
1089  cb_data.args.hipStreamCreateWithPriority.stream = stream; \
1090  cb_data.args.hipStreamCreateWithPriority.flags = flags; \
1091  cb_data.args.hipStreamCreateWithPriority.priority = priority; \
1092 };
1093 // hipMemcpyToSymbolAsync[('const void*', 'symbolName'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
1094 #define INIT_hipMemcpyToSymbolAsync_CB_ARGS_DATA(cb_data) { \
1095 };
1096 // hipMallocPitch[('void**', 'ptr'), ('size_t*', 'pitch'), ('size_t', 'width'), ('size_t', 'height')]
1097 #define INIT_hipMallocPitch_CB_ARGS_DATA(cb_data) { \
1098  cb_data.args.hipMallocPitch.ptr = ptr; \
1099  cb_data.args.hipMallocPitch.pitch = pitch; \
1100  cb_data.args.hipMallocPitch.width = width; \
1101  cb_data.args.hipMallocPitch.height = height; \
1102 };
1103 // hipMalloc[('void**', 'ptr'), ('size_t', 'size')]
1104 #define INIT_hipMalloc_CB_ARGS_DATA(cb_data) { \
1105  cb_data.args.hipMalloc.ptr = ptr; \
1106  cb_data.args.hipMalloc.size = sizeBytes; \
1107 };
1108 // hipDeviceGetName[('char*', 'name'), ('int', 'len'), ('hipDevice_t', 'device')]
1109 #define INIT_hipDeviceGetName_CB_ARGS_DATA(cb_data) { \
1110  cb_data.args.hipDeviceGetName.name = name; \
1111  cb_data.args.hipDeviceGetName.len = len; \
1112  cb_data.args.hipDeviceGetName.device = device; \
1113 };
1114 // hipEventRecord[('hipEvent_t', 'event'), ('hipStream_t', 'stream')]
1115 #define INIT_hipEventRecord_CB_ARGS_DATA(cb_data) { \
1116  cb_data.args.hipEventRecord.event = event; \
1117  cb_data.args.hipEventRecord.stream = stream; \
1118 };
1119 // hipCtxSynchronize[]
1120 #define INIT_hipCtxSynchronize_CB_ARGS_DATA(cb_data) { \
1121 };
1122 // hipSetDevice[('int', 'deviceId')]
1123 #define INIT_hipSetDevice_CB_ARGS_DATA(cb_data) { \
1124  cb_data.args.hipSetDevice.deviceId = deviceId; \
1125 };
1126 // hipCtxGetApiVersion[('hipCtx_t', 'ctx'), ('int*', 'apiVersion')]
1127 #define INIT_hipCtxGetApiVersion_CB_ARGS_DATA(cb_data) { \
1128  cb_data.args.hipCtxGetApiVersion.ctx = ctx; \
1129  cb_data.args.hipCtxGetApiVersion.apiVersion = apiVersion; \
1130 };
1131 // hipSetupArgument[('const void*', 'arg'), ('size_t', 'size'), ('size_t', 'offset')]
1132 #define INIT_hipSetupArgument_CB_ARGS_DATA(cb_data) { \
1133  cb_data.args.hipSetupArgument.arg = arg; \
1134  cb_data.args.hipSetupArgument.size = size; \
1135  cb_data.args.hipSetupArgument.offset = offset; \
1136 };
1137 // hipMemcpyFromSymbolAsync[('void*', 'dst'), ('const void*', 'symbolName'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
1138 #define INIT_hipMemcpyFromSymbolAsync_CB_ARGS_DATA(cb_data) { \
1139 };
1140 // hipExtGetLinkTypeAndHopCount[('int', 'device1'), ('int', 'device2'), ('unsigned int*', 'linktype'), ('unsigned int*', 'hopcount')]
1141 #define INIT_hipExtGetLinkTypeAndHopCount_CB_ARGS_DATA(cb_data) { \
1142  cb_data.args.hipExtGetLinkTypeAndHopCount.device1 = device1; \
1143  cb_data.args.hipExtGetLinkTypeAndHopCount.device2 = device2; \
1144  cb_data.args.hipExtGetLinkTypeAndHopCount.linktype = linktype; \
1145  cb_data.args.hipExtGetLinkTypeAndHopCount.hopcount = hopcount; \
1146 };
1147 // hipMemcpyDtoD[('hipDeviceptr_t', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes')]
1148 #define INIT_hipMemcpyDtoD_CB_ARGS_DATA(cb_data) { \
1149  cb_data.args.hipMemcpyDtoD.dst = dst; \
1150  cb_data.args.hipMemcpyDtoD.src = src; \
1151  cb_data.args.hipMemcpyDtoD.sizeBytes = sizeBytes; \
1152 };
1153 // hipHostFree[('void*', 'ptr')]
1154 #define INIT_hipHostFree_CB_ARGS_DATA(cb_data) { \
1155  cb_data.args.hipHostFree.ptr = ptr; \
1156 };
1157 // hipMemcpy2DToArray[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
1158 #define INIT_hipMemcpy2DToArray_CB_ARGS_DATA(cb_data) { \
1159  cb_data.args.hipMemcpy2DToArray.dst = dst; \
1160  cb_data.args.hipMemcpy2DToArray.wOffset = wOffset; \
1161  cb_data.args.hipMemcpy2DToArray.hOffset = hOffset; \
1162  cb_data.args.hipMemcpy2DToArray.src = src; \
1163  cb_data.args.hipMemcpy2DToArray.spitch = spitch; \
1164  cb_data.args.hipMemcpy2DToArray.width = width; \
1165  cb_data.args.hipMemcpy2DToArray.height = height; \
1166  cb_data.args.hipMemcpy2DToArray.kind = kind; \
1167 };
1168 // hipCtxGetCacheConfig[('hipFuncCache_t*', 'cacheConfig')]
1169 #define INIT_hipCtxGetCacheConfig_CB_ARGS_DATA(cb_data) { \
1170  cb_data.args.hipCtxGetCacheConfig.cacheConfig = cacheConfig; \
1171 };
1172 // hipStreamWaitEvent[('hipStream_t', 'stream'), ('hipEvent_t', 'event'), ('unsigned int', 'flags')]
1173 #define INIT_hipStreamWaitEvent_CB_ARGS_DATA(cb_data) { \
1174  cb_data.args.hipStreamWaitEvent.stream = stream; \
1175  cb_data.args.hipStreamWaitEvent.event = event; \
1176  cb_data.args.hipStreamWaitEvent.flags = flags; \
1177 };
1178 // hipDeviceGetStreamPriorityRange[('int*', 'leastPriority'), ('int*', 'greatestPriority')]
1179 #define INIT_hipDeviceGetStreamPriorityRange_CB_ARGS_DATA(cb_data) { \
1180  cb_data.args.hipDeviceGetStreamPriorityRange.leastPriority = leastPriority; \
1181  cb_data.args.hipDeviceGetStreamPriorityRange.greatestPriority = greatestPriority; \
1182 };
1183 // hipModuleLoad[('hipModule_t*', 'module'), ('const char*', 'fname')]
1184 #define INIT_hipModuleLoad_CB_ARGS_DATA(cb_data) { \
1185  cb_data.args.hipModuleLoad.module = module; \
1186  cb_data.args.hipModuleLoad.fname = fname; \
1187 };
1188 // hipDevicePrimaryCtxSetFlags[('hipDevice_t', 'dev'), ('unsigned int', 'flags')]
1189 #define INIT_hipDevicePrimaryCtxSetFlags_CB_ARGS_DATA(cb_data) { \
1190  cb_data.args.hipDevicePrimaryCtxSetFlags.dev = dev; \
1191  cb_data.args.hipDevicePrimaryCtxSetFlags.flags = flags; \
1192 };
1193 // hipLaunchCooperativeKernel[('const void*', 'f'), ('dim3', 'gridDim'), ('dim3', 'blockDimX'), ('void**', 'kernelParams'), ('unsigned int', 'sharedMemBytes'), ('hipStream_t', 'stream')]
1194 #define INIT_hipLaunchCooperativeKernel_CB_ARGS_DATA(cb_data) { \
1195  cb_data.args.hipLaunchCooperativeKernel.f = f; \
1196  cb_data.args.hipLaunchCooperativeKernel.gridDim = gridDim; \
1197  cb_data.args.hipLaunchCooperativeKernel.blockDimX = blockDimX; \
1198  cb_data.args.hipLaunchCooperativeKernel.kernelParams = kernelParams; \
1199  cb_data.args.hipLaunchCooperativeKernel.sharedMemBytes = sharedMemBytes; \
1200  cb_data.args.hipLaunchCooperativeKernel.stream = stream; \
1201 };
1202 // hipLaunchCooperativeKernelMultiDevice[('hipLaunchParams*', 'launchParamsList'), ('int', 'numDevices'), ('unsigned int', 'flags')]
1203 #define INIT_hipLaunchCooperativeKernelMultiDevice_CB_ARGS_DATA(cb_data) { \
1204 };
1205 // hipMemcpyAsync[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
1206 #define INIT_hipMemcpyAsync_CB_ARGS_DATA(cb_data) { \
1207  cb_data.args.hipMemcpyAsync.dst = dst; \
1208  cb_data.args.hipMemcpyAsync.src = src; \
1209  cb_data.args.hipMemcpyAsync.sizeBytes = sizeBytes; \
1210  cb_data.args.hipMemcpyAsync.kind = kind; \
1211  cb_data.args.hipMemcpyAsync.stream = stream; \
1212 };
1213 // hipMalloc3DArray[('hipArray**', 'array'), ('const hipChannelFormatDesc*', 'desc'), ('hipExtent', 'extent'), ('unsigned int', 'flags')]
1214 #define INIT_hipMalloc3DArray_CB_ARGS_DATA(cb_data) { \
1215  cb_data.args.hipMalloc3DArray.array = array; \
1216  cb_data.args.hipMalloc3DArray.desc = desc; \
1217  cb_data.args.hipMalloc3DArray.extent = extent; \
1218  cb_data.args.hipMalloc3DArray.flags = flags; \
1219 };
1220 // hipStreamCreate[('hipStream_t*', 'stream')]
1221 #define INIT_hipStreamCreate_CB_ARGS_DATA(cb_data) { \
1222  cb_data.args.hipStreamCreate.stream = stream; \
1223 };
1224 // hipCtxGetCurrent[('hipCtx_t*', 'ctx')]
1225 #define INIT_hipCtxGetCurrent_CB_ARGS_DATA(cb_data) { \
1226  cb_data.args.hipCtxGetCurrent.ctx = ctx; \
1227 };
1228 // hipDevicePrimaryCtxGetState[('hipDevice_t', 'dev'), ('unsigned int*', 'flags'), ('int*', 'active')]
1229 #define INIT_hipDevicePrimaryCtxGetState_CB_ARGS_DATA(cb_data) { \
1230  cb_data.args.hipDevicePrimaryCtxGetState.dev = dev; \
1231  cb_data.args.hipDevicePrimaryCtxGetState.flags = flags; \
1232  cb_data.args.hipDevicePrimaryCtxGetState.active = active; \
1233 };
1234 // hipEventQuery[('hipEvent_t', 'event')]
1235 #define INIT_hipEventQuery_CB_ARGS_DATA(cb_data) { \
1236  cb_data.args.hipEventQuery.event = event; \
1237 };
1238 // hipEventCreate[('hipEvent_t*', 'event')]
1239 #define INIT_hipEventCreate_CB_ARGS_DATA(cb_data) { \
1240  cb_data.args.hipEventCreate.event = event; \
1241 };
1242 // hipMemGetAddressRange[('hipDeviceptr_t*', 'pbase'), ('size_t*', 'psize'), ('hipDeviceptr_t', 'dptr')]
1243 #define INIT_hipMemGetAddressRange_CB_ARGS_DATA(cb_data) { \
1244  cb_data.args.hipMemGetAddressRange.pbase = pbase; \
1245  cb_data.args.hipMemGetAddressRange.psize = psize; \
1246  cb_data.args.hipMemGetAddressRange.dptr = dptr; \
1247 };
1248 // hipMemcpyFromSymbol[('void*', 'dst'), ('const void*', 'symbolName'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind')]
1249 #define INIT_hipMemcpyFromSymbol_CB_ARGS_DATA(cb_data) { \
1250 };
1251 // hipArrayCreate[('hipArray**', 'pHandle'), ('const HIP_ARRAY_DESCRIPTOR*', 'pAllocateArray')]
1252 #define INIT_hipArrayCreate_CB_ARGS_DATA(cb_data) { \
1253  cb_data.args.hipArrayCreate.pHandle = array; \
1254  cb_data.args.hipArrayCreate.pAllocateArray = pAllocateArray; \
1255 };
1256 // hipStreamGetFlags[('hipStream_t', 'stream'), ('unsigned int*', 'flags')]
1257 #define INIT_hipStreamGetFlags_CB_ARGS_DATA(cb_data) { \
1258  cb_data.args.hipStreamGetFlags.stream = stream; \
1259  cb_data.args.hipStreamGetFlags.flags = flags; \
1260 };
1261 // hipMallocArray[('hipArray**', 'array'), ('const hipChannelFormatDesc*', 'desc'), ('size_t', 'width'), ('size_t', 'height'), ('unsigned int', 'flags')]
1262 #define INIT_hipMallocArray_CB_ARGS_DATA(cb_data) { \
1263  cb_data.args.hipMallocArray.array = array; \
1264  cb_data.args.hipMallocArray.desc = desc; \
1265  cb_data.args.hipMallocArray.width = width; \
1266  cb_data.args.hipMallocArray.height = height; \
1267  cb_data.args.hipMallocArray.flags = flags; \
1268 };
1269 // hipCtxGetSharedMemConfig[('hipSharedMemConfig*', 'pConfig')]
1270 #define INIT_hipCtxGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
1271  cb_data.args.hipCtxGetSharedMemConfig.pConfig = pConfig; \
1272 };
1273 // hipMemPtrGetInfo[('void*', 'ptr'), ('size_t*', 'size')]
1274 #define INIT_hipMemPtrGetInfo_CB_ARGS_DATA(cb_data) { \
1275  cb_data.args.hipMemPtrGetInfo.ptr = ptr; \
1276  cb_data.args.hipMemPtrGetInfo.size = size; \
1277 };
1278 // hipFuncGetAttribute[('int*', 'value'), ('hipFunction_attribute', 'attrib'), ('hipFunction_t', 'hfunc')]
1279 #define INIT_hipFuncGetAttribute_CB_ARGS_DATA(cb_data) { \
1280  cb_data.args.hipFuncGetAttribute.value = value; \
1281  cb_data.args.hipFuncGetAttribute.attrib = attrib; \
1282  cb_data.args.hipFuncGetAttribute.hfunc = hfunc; \
1283 };
1284 // hipCtxGetFlags[('unsigned int*', 'flags')]
1285 #define INIT_hipCtxGetFlags_CB_ARGS_DATA(cb_data) { \
1286  cb_data.args.hipCtxGetFlags.flags = flags; \
1287 };
1288 // hipStreamDestroy[('hipStream_t', 'stream')]
1289 #define INIT_hipStreamDestroy_CB_ARGS_DATA(cb_data) { \
1290  cb_data.args.hipStreamDestroy.stream = stream; \
1291 };
1292 // hipMemset3DAsync[('hipPitchedPtr', 'pitchedDevPtr'), ('int', 'value'), ('hipExtent', 'extent'), ('hipStream_t', 'stream')]
1293 #define INIT_hipMemset3DAsync_CB_ARGS_DATA(cb_data) { \
1294  cb_data.args.hipMemset3DAsync.pitchedDevPtr = pitchedDevPtr; \
1295  cb_data.args.hipMemset3DAsync.value = value; \
1296  cb_data.args.hipMemset3DAsync.extent = extent; \
1297  cb_data.args.hipMemset3DAsync.stream = stream; \
1298 };
1299 // hipMemcpy3D[('const hipMemcpy3DParms*', 'p')]
1300 #define INIT_hipMemcpy3D_CB_ARGS_DATA(cb_data) { \
1301  cb_data.args.hipMemcpy3D.p = p; \
1302 };
1303 // hipInit[('unsigned int', 'flags')]
1304 #define INIT_hipInit_CB_ARGS_DATA(cb_data) { \
1305  cb_data.args.hipInit.flags = flags; \
1306 };
1307 // hipMemcpyAtoH[('void*', 'dst'), ('hipArray*', 'srcArray'), ('size_t', 'srcOffset'), ('size_t', 'count')]
1308 #define INIT_hipMemcpyAtoH_CB_ARGS_DATA(cb_data) { \
1309  cb_data.args.hipMemcpyAtoH.dst = dst; \
1310  cb_data.args.hipMemcpyAtoH.srcArray = srcArray; \
1311  cb_data.args.hipMemcpyAtoH.srcOffset = srcOffset; \
1312  cb_data.args.hipMemcpyAtoH.count = count; \
1313 };
1314 // hipStreamGetPriority[('hipStream_t', 'stream'), ('int*', 'priority')]
1315 #define INIT_hipStreamGetPriority_CB_ARGS_DATA(cb_data) { \
1316  cb_data.args.hipStreamGetPriority.stream = stream; \
1317  cb_data.args.hipStreamGetPriority.priority = priority; \
1318 };
1319 // hipMemset2D[('void*', 'dst'), ('size_t', 'pitch'), ('int', 'value'), ('size_t', 'width'), ('size_t', 'height')]
1320 #define INIT_hipMemset2D_CB_ARGS_DATA(cb_data) { \
1321  cb_data.args.hipMemset2D.dst = dst; \
1322  cb_data.args.hipMemset2D.pitch = pitch; \
1323  cb_data.args.hipMemset2D.value = value; \
1324  cb_data.args.hipMemset2D.width = width; \
1325  cb_data.args.hipMemset2D.height = height; \
1326 };
1327 // hipMemset2DAsync[('void*', 'dst'), ('size_t', 'pitch'), ('int', 'value'), ('size_t', 'width'), ('size_t', 'height'), ('hipStream_t', 'stream')]
1328 #define INIT_hipMemset2DAsync_CB_ARGS_DATA(cb_data) { \
1329  cb_data.args.hipMemset2DAsync.dst = dst; \
1330  cb_data.args.hipMemset2DAsync.pitch = pitch; \
1331  cb_data.args.hipMemset2DAsync.value = value; \
1332  cb_data.args.hipMemset2DAsync.width = width; \
1333  cb_data.args.hipMemset2DAsync.height = height; \
1334  cb_data.args.hipMemset2DAsync.stream = stream; \
1335 };
1336 // hipDeviceCanAccessPeer[('int*', 'canAccessPeer'), ('int', 'deviceId'), ('int', 'peerDeviceId')]
1337 #define INIT_hipDeviceCanAccessPeer_CB_ARGS_DATA(cb_data) { \
1338  cb_data.args.hipDeviceCanAccessPeer.canAccessPeer = canAccessPeer; \
1339  cb_data.args.hipDeviceCanAccessPeer.deviceId = deviceId; \
1340  cb_data.args.hipDeviceCanAccessPeer.peerDeviceId = peerDeviceId; \
1341 };
1342 // hipDeviceEnablePeerAccess[('int', 'peerDeviceId'), ('unsigned int', 'flags')]
1343 #define INIT_hipDeviceEnablePeerAccess_CB_ARGS_DATA(cb_data) { \
1344  cb_data.args.hipDeviceEnablePeerAccess.peerDeviceId = peerDeviceId; \
1345  cb_data.args.hipDeviceEnablePeerAccess.flags = flags; \
1346 };
1347 // hipLaunchKernel[('const void*', 'function_address'), ('dim3', 'numBlocks'), ('dim3', 'dimBlocks'), ('void**', 'args'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'stream')]
1348 #define INIT_hipLaunchKernel_CB_ARGS_DATA(cb_data) { \
1349  cb_data.args.hipLaunchKernel.function_address = func_addr; \
1350  cb_data.args.hipLaunchKernel.numBlocks = numBlocks; \
1351  cb_data.args.hipLaunchKernel.dimBlocks = dimBlocks; \
1352  cb_data.args.hipLaunchKernel.args = args; \
1353  cb_data.args.hipLaunchKernel.sharedMemBytes = sharedMemBytes; \
1354  cb_data.args.hipLaunchKernel.stream = stream; \
1355 };
1356 // hipModuleUnload[('hipModule_t', 'module')]
1357 #define INIT_hipModuleUnload_CB_ARGS_DATA(cb_data) { \
1358  cb_data.args.hipModuleUnload.module = hmod; \
1359 };
1360 // hipHostUnregister[('void*', 'hostPtr')]
1361 #define INIT_hipHostUnregister_CB_ARGS_DATA(cb_data) { \
1362  cb_data.args.hipHostUnregister.hostPtr = hostPtr; \
1363 };
1364 // hipProfilerStop[]
1365 #define INIT_hipProfilerStop_CB_ARGS_DATA(cb_data) { \
1366 };
1367 // hipLaunchByPtr[('const void*', 'func')]
1368 #define INIT_hipLaunchByPtr_CB_ARGS_DATA(cb_data) { \
1369  cb_data.args.hipLaunchByPtr.func = hostFunction; \
1370 };
1371 // hipStreamSynchronize[('hipStream_t', 'stream')]
1372 #define INIT_hipStreamSynchronize_CB_ARGS_DATA(cb_data) { \
1373  cb_data.args.hipStreamSynchronize.stream = stream; \
1374 };
1375 // hipDeviceSetCacheConfig[('hipFuncCache_t', 'cacheConfig')]
1376 #define INIT_hipDeviceSetCacheConfig_CB_ARGS_DATA(cb_data) { \
1377  cb_data.args.hipDeviceSetCacheConfig.cacheConfig = cacheConfig; \
1378 };
1379 // hipGetErrorName[('hipError_t', 'hip_error')]
1380 #define INIT_hipGetErrorName_CB_ARGS_DATA(cb_data) { \
1381  cb_data.args.hipGetErrorName.hip_error = hip_error; \
1382 };
1383 // hipMemcpyHtoD[('hipDeviceptr_t', 'dst'), ('void*', 'src'), ('size_t', 'sizeBytes')]
1384 #define INIT_hipMemcpyHtoD_CB_ARGS_DATA(cb_data) { \
1385  cb_data.args.hipMemcpyHtoD.dst = dst; \
1386  cb_data.args.hipMemcpyHtoD.src = src; \
1387  cb_data.args.hipMemcpyHtoD.sizeBytes = sizeBytes; \
1388 };
1389 // hipModuleGetGlobal[('hipDeviceptr_t*', 'dptr'), ('size_t*', 'bytes'), ('hipModule_t', 'hmod'), ('const char*', 'name')]
1390 #define INIT_hipModuleGetGlobal_CB_ARGS_DATA(cb_data) { \
1391  cb_data.args.hipModuleGetGlobal.dptr = dptr; \
1392  cb_data.args.hipModuleGetGlobal.bytes = bytes; \
1393  cb_data.args.hipModuleGetGlobal.hmod = hmod; \
1394  cb_data.args.hipModuleGetGlobal.name = name; \
1395 };
1396 // hipMemcpyHtoA[('hipArray*', 'dstArray'), ('size_t', 'dstOffset'), ('const void*', 'srcHost'), ('size_t', 'count')]
1397 #define INIT_hipMemcpyHtoA_CB_ARGS_DATA(cb_data) { \
1398  cb_data.args.hipMemcpyHtoA.dstArray = dstArray; \
1399  cb_data.args.hipMemcpyHtoA.dstOffset = dstOffset; \
1400  cb_data.args.hipMemcpyHtoA.srcHost = srcHost; \
1401  cb_data.args.hipMemcpyHtoA.count = count; \
1402 };
1403 // hipCtxCreate[('hipCtx_t*', 'ctx'), ('unsigned int', 'flags'), ('hipDevice_t', 'device')]
1404 #define INIT_hipCtxCreate_CB_ARGS_DATA(cb_data) { \
1405  cb_data.args.hipCtxCreate.ctx = ctx; \
1406  cb_data.args.hipCtxCreate.flags = flags; \
1407  cb_data.args.hipCtxCreate.device = device; \
1408 };
1409 // hipMemcpy2D[('void*', 'dst'), ('size_t', 'dpitch'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
1410 #define INIT_hipMemcpy2D_CB_ARGS_DATA(cb_data) { \
1411  cb_data.args.hipMemcpy2D.dst = dst; \
1412  cb_data.args.hipMemcpy2D.dpitch = dpitch; \
1413  cb_data.args.hipMemcpy2D.src = src; \
1414  cb_data.args.hipMemcpy2D.spitch = spitch; \
1415  cb_data.args.hipMemcpy2D.width = width; \
1416  cb_data.args.hipMemcpy2D.height = height; \
1417  cb_data.args.hipMemcpy2D.kind = kind; \
1418 };
1419 // hipIpcCloseMemHandle[('void*', 'devPtr')]
1420 #define INIT_hipIpcCloseMemHandle_CB_ARGS_DATA(cb_data) { \
1421  cb_data.args.hipIpcCloseMemHandle.devPtr = devPtr; \
1422 };
1423 // hipChooseDevice[('int*', 'device'), ('const hipDeviceProp_t*', 'prop')]
1424 #define INIT_hipChooseDevice_CB_ARGS_DATA(cb_data) { \
1425  cb_data.args.hipChooseDevice.device = device; \
1426  cb_data.args.hipChooseDevice.prop = prop; \
1427 };
1428 // hipDeviceSetSharedMemConfig[('hipSharedMemConfig', 'config')]
1429 #define INIT_hipDeviceSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
1430  cb_data.args.hipDeviceSetSharedMemConfig.config = config; \
1431 };
1432 // hipDeviceComputeCapability[('int*', 'major'), ('int*', 'minor'), ('hipDevice_t', 'device')]
1433 #define INIT_hipDeviceComputeCapability_CB_ARGS_DATA(cb_data) { \
1434  cb_data.args.hipDeviceComputeCapability.major = major; \
1435  cb_data.args.hipDeviceComputeCapability.minor = minor; \
1436  cb_data.args.hipDeviceComputeCapability.device = device; \
1437 };
1438 // hipDeviceGet[('hipDevice_t*', 'device'), ('int', 'ordinal')]
1439 #define INIT_hipDeviceGet_CB_ARGS_DATA(cb_data) { \
1440  cb_data.args.hipDeviceGet.device = device; \
1441  cb_data.args.hipDeviceGet.ordinal = deviceId; \
1442 };
1443 // hipProfilerStart[]
1444 #define INIT_hipProfilerStart_CB_ARGS_DATA(cb_data) { \
1445 };
1446 // hipCtxSetCacheConfig[('hipFuncCache_t', 'cacheConfig')]
1447 #define INIT_hipCtxSetCacheConfig_CB_ARGS_DATA(cb_data) { \
1448  cb_data.args.hipCtxSetCacheConfig.cacheConfig = cacheConfig; \
1449 };
1450 // hipFuncSetCacheConfig[('const void*', 'func'), ('hipFuncCache_t', 'config')]
1451 #define INIT_hipFuncSetCacheConfig_CB_ARGS_DATA(cb_data) { \
1452  cb_data.args.hipFuncSetCacheConfig.func = func; \
1453  cb_data.args.hipFuncSetCacheConfig.config = cacheConfig; \
1454 };
1455 // hipMemcpyPeerAsync[('void*', 'dst'), ('int', 'dstDeviceId'), ('const void*', 'src'), ('int', 'srcDevice'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
1456 #define INIT_hipMemcpyPeerAsync_CB_ARGS_DATA(cb_data) { \
1457  cb_data.args.hipMemcpyPeerAsync.dst = dst; \
1458  cb_data.args.hipMemcpyPeerAsync.dstDeviceId = dstDevice; \
1459  cb_data.args.hipMemcpyPeerAsync.src = src; \
1460  cb_data.args.hipMemcpyPeerAsync.srcDevice = srcDevice; \
1461  cb_data.args.hipMemcpyPeerAsync.sizeBytes = sizeBytes; \
1462  cb_data.args.hipMemcpyPeerAsync.stream = stream; \
1463 };
1464 // hipEventElapsedTime[('float*', 'ms'), ('hipEvent_t', 'start'), ('hipEvent_t', 'stop')]
1465 #define INIT_hipEventElapsedTime_CB_ARGS_DATA(cb_data) { \
1466  cb_data.args.hipEventElapsedTime.ms = ms; \
1467  cb_data.args.hipEventElapsedTime.start = start; \
1468  cb_data.args.hipEventElapsedTime.stop = stop; \
1469 };
1470 // hipDevicePrimaryCtxReset[('hipDevice_t', 'dev')]
1471 #define INIT_hipDevicePrimaryCtxReset_CB_ARGS_DATA(cb_data) { \
1472  cb_data.args.hipDevicePrimaryCtxReset.dev = dev; \
1473 };
1474 // hipMemcpy3DAsync[('const hipMemcpy3DParms*', 'p'), ('hipStream_t', 'stream')]
1475 #define INIT_hipMemcpy3DAsync_CB_ARGS_DATA(cb_data) { \
1476  cb_data.args.hipMemcpy3DAsync.p = p; \
1477  cb_data.args.hipMemcpy3DAsync.stream = stream; \
1478 };
1479 // hipEventDestroy[('hipEvent_t', 'event')]
1480 #define INIT_hipEventDestroy_CB_ARGS_DATA(cb_data) { \
1481  cb_data.args.hipEventDestroy.event = event; \
1482 };
1483 // hipCtxPopCurrent[('hipCtx_t*', 'ctx')]
1484 #define INIT_hipCtxPopCurrent_CB_ARGS_DATA(cb_data) { \
1485  cb_data.args.hipCtxPopCurrent.ctx = ctx; \
1486 };
1487 // hipGetSymbolAddress[('void**', 'devPtr'), ('const void*', 'symbolName')]
1488 #define INIT_hipGetSymbolAddress_CB_ARGS_DATA(cb_data) { \
1489 };
1490 // hipHostGetFlags[('unsigned int*', 'flagsPtr'), ('void*', 'hostPtr')]
1491 #define INIT_hipHostGetFlags_CB_ARGS_DATA(cb_data) { \
1492  cb_data.args.hipHostGetFlags.flagsPtr = flagsPtr; \
1493  cb_data.args.hipHostGetFlags.hostPtr = hostPtr; \
1494 };
1495 // hipHostMalloc[('void**', 'ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
1496 #define INIT_hipHostMalloc_CB_ARGS_DATA(cb_data) { \
1497  cb_data.args.hipHostMalloc.ptr = ptr; \
1498  cb_data.args.hipHostMalloc.size = sizeBytes; \
1499  cb_data.args.hipHostMalloc.flags = flags; \
1500 };
1501 // hipDriverGetVersion[('int*', 'driverVersion')]
1502 #define INIT_hipDriverGetVersion_CB_ARGS_DATA(cb_data) { \
1503  cb_data.args.hipDriverGetVersion.driverVersion = driverVersion; \
1504 };
1505 // hipMemGetInfo[('size_t*', 'free'), ('size_t*', 'total')]
1506 #define INIT_hipMemGetInfo_CB_ARGS_DATA(cb_data) { \
1507  cb_data.args.hipMemGetInfo.free = free; \
1508  cb_data.args.hipMemGetInfo.total = total; \
1509 };
1510 // hipDeviceReset[]
1511 #define INIT_hipDeviceReset_CB_ARGS_DATA(cb_data) { \
1512 };
1513 // hipMemset[('void*', 'dst'), ('int', 'value'), ('size_t', 'sizeBytes')]
1514 #define INIT_hipMemset_CB_ARGS_DATA(cb_data) { \
1515  cb_data.args.hipMemset.dst = dst; \
1516  cb_data.args.hipMemset.value = value; \
1517  cb_data.args.hipMemset.sizeBytes = sizeBytes; \
1518 };
1519 // hipMemsetD8[('hipDeviceptr_t', 'dest'), ('unsigned char', 'value'), ('size_t', 'sizeBytes')]
1520 #define INIT_hipMemsetD8_CB_ARGS_DATA(cb_data) { \
1521  cb_data.args.hipMemsetD8.dest = dst; \
1522  cb_data.args.hipMemsetD8.value = value; \
1523  cb_data.args.hipMemsetD8.sizeBytes = sizeBytes; \
1524 };
1525 // hipMemcpyParam2DAsync[('const hip_Memcpy2D*', 'pCopy'), ('hipStream_t', 'stream')]
1526 #define INIT_hipMemcpyParam2DAsync_CB_ARGS_DATA(cb_data) { \
1527  cb_data.args.hipMemcpyParam2DAsync.pCopy = pCopy; \
1528  cb_data.args.hipMemcpyParam2DAsync.stream = stream; \
1529 };
1530 // hipHostRegister[('void*', 'hostPtr'), ('size_t', 'sizeBytes'), ('unsigned int', 'flags')]
1531 #define INIT_hipHostRegister_CB_ARGS_DATA(cb_data) { \
1532  cb_data.args.hipHostRegister.hostPtr = hostPtr; \
1533  cb_data.args.hipHostRegister.sizeBytes = sizeBytes; \
1534  cb_data.args.hipHostRegister.flags = flags; \
1535 };
1536 // hipCtxSetSharedMemConfig[('hipSharedMemConfig', 'config')]
1537 #define INIT_hipCtxSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
1538  cb_data.args.hipCtxSetSharedMemConfig.config = config; \
1539 };
1540 // hipArray3DCreate[('hipArray**', 'array'), ('const HIP_ARRAY3D_DESCRIPTOR*', 'pAllocateArray')]
1541 #define INIT_hipArray3DCreate_CB_ARGS_DATA(cb_data) { \
1542  cb_data.args.hipArray3DCreate.array = array; \
1543  cb_data.args.hipArray3DCreate.pAllocateArray = pAllocateArray; \
1544 };
1545 // hipIpcOpenMemHandle[('void**', 'devPtr'), ('hipIpcMemHandle_t', 'handle'), ('unsigned int', 'flags')]
1546 #define INIT_hipIpcOpenMemHandle_CB_ARGS_DATA(cb_data) { \
1547  cb_data.args.hipIpcOpenMemHandle.devPtr = devPtr; \
1548  cb_data.args.hipIpcOpenMemHandle.handle = handle; \
1549  cb_data.args.hipIpcOpenMemHandle.flags = flags; \
1550 };
1551 // hipGetLastError[]
1552 #define INIT_hipGetLastError_CB_ARGS_DATA(cb_data) { \
1553 };
1554 // hipCtxDestroy[('hipCtx_t', 'ctx')]
1555 #define INIT_hipCtxDestroy_CB_ARGS_DATA(cb_data) { \
1556  cb_data.args.hipCtxDestroy.ctx = ctx; \
1557 };
1558 // hipDeviceGetSharedMemConfig[('hipSharedMemConfig*', 'pConfig')]
1559 #define INIT_hipDeviceGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
1560  cb_data.args.hipDeviceGetSharedMemConfig.pConfig = pConfig; \
1561 };
1562 // hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags[('unsigned int*', 'numBlocks'), ('hipFunction_t', 'f'), ('unsigned int', 'blockSize'), ('size_t', 'dynSharedMemPerBlk'), ('unsigned int', 'flags')]
1563 #define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_CB_ARGS_DATA(cb_data) { \
1564  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks = numBlocks; \
1565  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f = f; \
1566  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize = blockSize; \
1567  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynSharedMemPerBlk = dynSharedMemPerBlk; \
1568  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags = flags; \
1569 };
1570 // hipSetDeviceFlags[('unsigned int', 'flags')]
1571 #define INIT_hipSetDeviceFlags_CB_ARGS_DATA(cb_data) { \
1572  cb_data.args.hipSetDeviceFlags.flags = flags; \
1573 };
1574 // hipHccModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'globalWorkSizeX'), ('unsigned int', 'globalWorkSizeY'), ('unsigned int', 'globalWorkSizeZ'), ('unsigned int', 'localWorkSizeX'), ('unsigned int', 'localWorkSizeY'), ('unsigned int', 'localWorkSizeZ'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'hStream'), ('void**', 'kernelParams'), ('void**', 'extra'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent')]
1575 #define INIT_hipHccModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \
1576  cb_data.args.hipHccModuleLaunchKernel.f = f; \
1577  cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeX = globalWorkSizeX; \
1578  cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeY = globalWorkSizeY; \
1579  cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeZ = globalWorkSizeZ; \
1580  cb_data.args.hipHccModuleLaunchKernel.localWorkSizeX = localWorkSizeX; \
1581  cb_data.args.hipHccModuleLaunchKernel.localWorkSizeY = localWorkSizeY; \
1582  cb_data.args.hipHccModuleLaunchKernel.localWorkSizeZ = localWorkSizeZ; \
1583  cb_data.args.hipHccModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \
1584  cb_data.args.hipHccModuleLaunchKernel.hStream = hStream; \
1585  cb_data.args.hipHccModuleLaunchKernel.kernelParams = kernelParams; \
1586  cb_data.args.hipHccModuleLaunchKernel.extra = extra; \
1587  cb_data.args.hipHccModuleLaunchKernel.startEvent = startEvent; \
1588  cb_data.args.hipHccModuleLaunchKernel.stopEvent = stopEvent; \
1589 };
1590 // hipFree[('void*', 'ptr')]
1591 #define INIT_hipFree_CB_ARGS_DATA(cb_data) { \
1592  cb_data.args.hipFree.ptr = ptr; \
1593 };
1594 // hipOccupancyMaxPotentialBlockSize[('unsigned int*', 'gridSize'), ('unsigned int*', 'blockSize'), ('hipFunction_t', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('unsigned int', 'blockSizeLimit')]
1595 #define INIT_hipOccupancyMaxPotentialBlockSize_CB_ARGS_DATA(cb_data) { \
1596  cb_data.args.hipOccupancyMaxPotentialBlockSize.gridSize = gridSize; \
1597  cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSize = blockSize; \
1598  cb_data.args.hipOccupancyMaxPotentialBlockSize.f = f; \
1599  cb_data.args.hipOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk = dynSharedMemPerBlk; \
1600  cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSizeLimit = blockSizeLimit; \
1601 };
1602 // hipDeviceGetAttribute[('int*', 'pi'), ('hipDeviceAttribute_t', 'attr'), ('int', 'deviceId')]
1603 #define INIT_hipDeviceGetAttribute_CB_ARGS_DATA(cb_data) { \
1604  cb_data.args.hipDeviceGetAttribute.pi = pi; \
1605  cb_data.args.hipDeviceGetAttribute.attr = attr; \
1606  cb_data.args.hipDeviceGetAttribute.deviceId = device; \
1607 };
1608 // hipMemcpyDtoH[('void*', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes')]
1609 #define INIT_hipMemcpyDtoH_CB_ARGS_DATA(cb_data) { \
1610  cb_data.args.hipMemcpyDtoH.dst = dst; \
1611  cb_data.args.hipMemcpyDtoH.src = src; \
1612  cb_data.args.hipMemcpyDtoH.sizeBytes = sizeBytes; \
1613 };
1614 // hipCtxDisablePeerAccess[('hipCtx_t', 'peerCtx')]
1615 #define INIT_hipCtxDisablePeerAccess_CB_ARGS_DATA(cb_data) { \
1616  cb_data.args.hipCtxDisablePeerAccess.peerCtx = peerCtx; \
1617 };
1618 // hipMallocManaged[('void**', 'devPtr'), ('size_t', 'size'), ('unsigned int', 'flags')]
1619 #define INIT_hipMallocManaged_CB_ARGS_DATA(cb_data) { \
1620  cb_data.args.hipMallocManaged.devPtr = devPtr; \
1621  cb_data.args.hipMallocManaged.size = size; \
1622  cb_data.args.hipMallocManaged.flags = flags; \
1623 };
1624 // hipDeviceGetByPCIBusId[('int*', 'device'), ('const char*', 'pciBusId')]
1625 #define INIT_hipDeviceGetByPCIBusId_CB_ARGS_DATA(cb_data) { \
1626  cb_data.args.hipDeviceGetByPCIBusId.device = device; \
1627  cb_data.args.hipDeviceGetByPCIBusId.pciBusId = pciBusId; \
1628 };
1629 // hipIpcGetMemHandle[('hipIpcMemHandle_t*', 'handle'), ('void*', 'devPtr')]
1630 #define INIT_hipIpcGetMemHandle_CB_ARGS_DATA(cb_data) { \
1631  cb_data.args.hipIpcGetMemHandle.handle = handle; \
1632  cb_data.args.hipIpcGetMemHandle.devPtr = devPtr; \
1633 };
1634 // hipMemcpyHtoDAsync[('hipDeviceptr_t', 'dst'), ('void*', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
1635 #define INIT_hipMemcpyHtoDAsync_CB_ARGS_DATA(cb_data) { \
1636  cb_data.args.hipMemcpyHtoDAsync.dst = dst; \
1637  cb_data.args.hipMemcpyHtoDAsync.src = src; \
1638  cb_data.args.hipMemcpyHtoDAsync.sizeBytes = sizeBytes; \
1639  cb_data.args.hipMemcpyHtoDAsync.stream = stream; \
1640 };
1641 // hipCtxGetDevice[('hipDevice_t*', 'device')]
1642 #define INIT_hipCtxGetDevice_CB_ARGS_DATA(cb_data) { \
1643  cb_data.args.hipCtxGetDevice.device = device; \
1644 };
1645 // hipMemset3D[('hipPitchedPtr', 'pitchedDevPtr'), ('int', 'value'), ('hipExtent', 'extent')]
1646 #define INIT_hipMemset3D_CB_ARGS_DATA(cb_data) { \
1647  cb_data.args.hipMemset3D.pitchedDevPtr = pitchedDevPtr; \
1648  cb_data.args.hipMemset3D.value = value; \
1649  cb_data.args.hipMemset3D.extent = extent; \
1650 };
1651 // hipModuleLoadData[('hipModule_t*', 'module'), ('const void*', 'image')]
1652 #define INIT_hipModuleLoadData_CB_ARGS_DATA(cb_data) { \
1653  cb_data.args.hipModuleLoadData.module = module; \
1654  cb_data.args.hipModuleLoadData.image = image; \
1655 };
1656 // hipDeviceTotalMem[('size_t*', 'bytes'), ('hipDevice_t', 'device')]
1657 #define INIT_hipDeviceTotalMem_CB_ARGS_DATA(cb_data) { \
1658  cb_data.args.hipDeviceTotalMem.bytes = bytes; \
1659  cb_data.args.hipDeviceTotalMem.device = device; \
1660 };
1661 // hipOccupancyMaxActiveBlocksPerMultiprocessor[('unsigned int*', 'numBlocks'), ('hipFunction_t', 'f'), ('unsigned int', 'blockSize'), ('size_t', 'dynSharedMemPerBlk')]
1662 #define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessor_CB_ARGS_DATA(cb_data) { \
1663  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks = numBlocks; \
1664  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.f = f; \
1665  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.blockSize = blockSize; \
1666  cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.dynSharedMemPerBlk = dynSharedMemPerBlk; \
1667 };
1668 // hipCtxSetCurrent[('hipCtx_t', 'ctx')]
1669 #define INIT_hipCtxSetCurrent_CB_ARGS_DATA(cb_data) { \
1670  cb_data.args.hipCtxSetCurrent.ctx = ctx; \
1671 };
1672 // hipGetErrorString[('hipError_t', 'hipError')]
1673 #define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \
1674  cb_data.args.hipGetErrorString.hipError = hip_error; \
1675 };
1676 // hipDevicePrimaryCtxRetain[('hipCtx_t*', 'pctx'), ('hipDevice_t', 'dev')]
1677 #define INIT_hipDevicePrimaryCtxRetain_CB_ARGS_DATA(cb_data) { \
1678  cb_data.args.hipDevicePrimaryCtxRetain.pctx = pctx; \
1679  cb_data.args.hipDevicePrimaryCtxRetain.dev = dev; \
1680 };
1681 // hipDeviceDisablePeerAccess[('int', 'peerDeviceId')]
1682 #define INIT_hipDeviceDisablePeerAccess_CB_ARGS_DATA(cb_data) { \
1683  cb_data.args.hipDeviceDisablePeerAccess.peerDeviceId = peerDeviceId; \
1684 };
1685 // hipStreamCreateWithFlags[('hipStream_t*', 'stream'), ('unsigned int', 'flags')]
1686 #define INIT_hipStreamCreateWithFlags_CB_ARGS_DATA(cb_data) { \
1687  cb_data.args.hipStreamCreateWithFlags.stream = stream; \
1688  cb_data.args.hipStreamCreateWithFlags.flags = flags; \
1689 };
1690 // hipMemcpyFromArray[('void*', 'dst'), ('hipArray_const_t', 'srcArray'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'count'), ('hipMemcpyKind', 'kind')]
1691 #define INIT_hipMemcpyFromArray_CB_ARGS_DATA(cb_data) { \
1692  cb_data.args.hipMemcpyFromArray.dst = dst; \
1693  cb_data.args.hipMemcpyFromArray.srcArray = srcArray; \
1694  cb_data.args.hipMemcpyFromArray.wOffset = wOffset; \
1695  cb_data.args.hipMemcpyFromArray.hOffset = hOffset; \
1696  cb_data.args.hipMemcpyFromArray.count = count; \
1697  cb_data.args.hipMemcpyFromArray.kind = kind; \
1698 };
1699 // hipMemcpy2DAsync[('void*', 'dst'), ('size_t', 'dpitch'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
1700 #define INIT_hipMemcpy2DAsync_CB_ARGS_DATA(cb_data) { \
1701  cb_data.args.hipMemcpy2DAsync.dst = dst; \
1702  cb_data.args.hipMemcpy2DAsync.dpitch = dpitch; \
1703  cb_data.args.hipMemcpy2DAsync.src = src; \
1704  cb_data.args.hipMemcpy2DAsync.spitch = spitch; \
1705  cb_data.args.hipMemcpy2DAsync.width = width; \
1706  cb_data.args.hipMemcpy2DAsync.height = height; \
1707  cb_data.args.hipMemcpy2DAsync.kind = kind; \
1708  cb_data.args.hipMemcpy2DAsync.stream = stream; \
1709 };
1710 // hipFuncGetAttributes[('hipFuncAttributes*', 'attr'), ('const void*', 'func')]
1711 #define INIT_hipFuncGetAttributes_CB_ARGS_DATA(cb_data) { \
1712  cb_data.args.hipFuncGetAttributes.attr = attr; \
1713  cb_data.args.hipFuncGetAttributes.func = func; \
1714 };
1715 // hipGetSymbolSize[('size_t*', 'size'), ('const void*', 'symbolName')]
1716 #define INIT_hipGetSymbolSize_CB_ARGS_DATA(cb_data) { \
1717 };
1718 // hipEventCreateWithFlags[('hipEvent_t*', 'event'), ('unsigned int', 'flags')]
1719 #define INIT_hipEventCreateWithFlags_CB_ARGS_DATA(cb_data) { \
1720  cb_data.args.hipEventCreateWithFlags.event = event; \
1721  cb_data.args.hipEventCreateWithFlags.flags = flags; \
1722 };
1723 // hipStreamQuery[('hipStream_t', 'stream')]
1724 #define INIT_hipStreamQuery_CB_ARGS_DATA(cb_data) { \
1725  cb_data.args.hipStreamQuery.stream = stream; \
1726 };
1727 // hipDeviceGetPCIBusId[('char*', 'pciBusId'), ('int', 'len'), ('int', 'device')]
1728 #define INIT_hipDeviceGetPCIBusId_CB_ARGS_DATA(cb_data) { \
1729  cb_data.args.hipDeviceGetPCIBusId.pciBusId = pciBusId; \
1730  cb_data.args.hipDeviceGetPCIBusId.len = len; \
1731  cb_data.args.hipDeviceGetPCIBusId.device = device; \
1732 };
1733 // hipMemcpy[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind')]
1734 #define INIT_hipMemcpy_CB_ARGS_DATA(cb_data) { \
1735  cb_data.args.hipMemcpy.dst = dst; \
1736  cb_data.args.hipMemcpy.src = src; \
1737  cb_data.args.hipMemcpy.sizeBytes = sizeBytes; \
1738  cb_data.args.hipMemcpy.kind = kind; \
1739 };
1740 // hipPeekAtLastError[]
1741 #define INIT_hipPeekAtLastError_CB_ARGS_DATA(cb_data) { \
1742 };
1743 // hipExtLaunchMultiKernelMultiDevice[('hipLaunchParams*', 'launchParamsList'), ('int', 'numDevices'), ('unsigned int', 'flags')]
1744 #define INIT_hipExtLaunchMultiKernelMultiDevice_CB_ARGS_DATA(cb_data) { \
1745  cb_data.args.hipExtLaunchMultiKernelMultiDevice.launchParamsList = launchParamsList; \
1746  cb_data.args.hipExtLaunchMultiKernelMultiDevice.numDevices = numDevices; \
1747  cb_data.args.hipExtLaunchMultiKernelMultiDevice.flags = flags; \
1748 };
1749 // hipStreamAddCallback[('hipStream_t', 'stream'), ('hipStreamCallback_t', 'callback'), ('void*', 'userData'), ('unsigned int', 'flags')]
1750 #define INIT_hipStreamAddCallback_CB_ARGS_DATA(cb_data) { \
1751  cb_data.args.hipStreamAddCallback.stream = stream; \
1752  cb_data.args.hipStreamAddCallback.callback = callback; \
1753  cb_data.args.hipStreamAddCallback.userData = userData; \
1754  cb_data.args.hipStreamAddCallback.flags = flags; \
1755 };
1756 // hipMemcpyToArray[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'count'), ('hipMemcpyKind', 'kind')]
1757 #define INIT_hipMemcpyToArray_CB_ARGS_DATA(cb_data) { \
1758  cb_data.args.hipMemcpyToArray.dst = dst; \
1759  cb_data.args.hipMemcpyToArray.wOffset = wOffset; \
1760  cb_data.args.hipMemcpyToArray.hOffset = hOffset; \
1761  cb_data.args.hipMemcpyToArray.src = src; \
1762  cb_data.args.hipMemcpyToArray.count = count; \
1763  cb_data.args.hipMemcpyToArray.kind = kind; \
1764 };
1765 // hipMemsetD32[('hipDeviceptr_t', 'dest'), ('int', 'value'), ('size_t', 'count')]
1766 #define INIT_hipMemsetD32_CB_ARGS_DATA(cb_data) { \
1767  cb_data.args.hipMemsetD32.dest = dst; \
1768  cb_data.args.hipMemsetD32.value = value; \
1769  cb_data.args.hipMemsetD32.count = count; \
1770 };
1771 // hipDeviceSynchronize[]
1772 #define INIT_hipDeviceSynchronize_CB_ARGS_DATA(cb_data) { \
1773 };
1774 // hipDeviceGetCacheConfig[('hipFuncCache_t*', 'cacheConfig')]
1775 #define INIT_hipDeviceGetCacheConfig_CB_ARGS_DATA(cb_data) { \
1776  cb_data.args.hipDeviceGetCacheConfig.cacheConfig = cacheConfig; \
1777 };
1778 // hipMalloc3D[('hipPitchedPtr*', 'pitchedDevPtr'), ('hipExtent', 'extent')]
1779 #define INIT_hipMalloc3D_CB_ARGS_DATA(cb_data) { \
1780  cb_data.args.hipMalloc3D.pitchedDevPtr = pitchedDevPtr; \
1781  cb_data.args.hipMalloc3D.extent = extent; \
1782 };
1783 // hipPointerGetAttributes[('hipPointerAttribute_t*', 'attributes'), ('const void*', 'ptr')]
1784 #define INIT_hipPointerGetAttributes_CB_ARGS_DATA(cb_data) { \
1785  cb_data.args.hipPointerGetAttributes.attributes = attributes; \
1786  cb_data.args.hipPointerGetAttributes.ptr = ptr; \
1787 };
1788 // hipMemsetAsync[('void*', 'dst'), ('int', 'value'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
1789 #define INIT_hipMemsetAsync_CB_ARGS_DATA(cb_data) { \
1790  cb_data.args.hipMemsetAsync.dst = dst; \
1791  cb_data.args.hipMemsetAsync.value = value; \
1792  cb_data.args.hipMemsetAsync.sizeBytes = sizeBytes; \
1793  cb_data.args.hipMemsetAsync.stream = stream; \
1794 };
1795 // hipMemcpyToSymbol[('const void*', 'symbolName'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind')]
1796 #define INIT_hipMemcpyToSymbol_CB_ARGS_DATA(cb_data) { \
1797 };
1798 // hipCtxPushCurrent[('hipCtx_t', 'ctx')]
1799 #define INIT_hipCtxPushCurrent_CB_ARGS_DATA(cb_data) { \
1800  cb_data.args.hipCtxPushCurrent.ctx = ctx; \
1801 };
1802 // hipMemcpyPeer[('void*', 'dst'), ('int', 'dstDeviceId'), ('const void*', 'src'), ('int', 'srcDeviceId'), ('size_t', 'sizeBytes')]
1803 #define INIT_hipMemcpyPeer_CB_ARGS_DATA(cb_data) { \
1804  cb_data.args.hipMemcpyPeer.dst = dst; \
1805  cb_data.args.hipMemcpyPeer.dstDeviceId = dstDevice; \
1806  cb_data.args.hipMemcpyPeer.src = src; \
1807  cb_data.args.hipMemcpyPeer.srcDeviceId = srcDevice; \
1808  cb_data.args.hipMemcpyPeer.sizeBytes = sizeBytes; \
1809 };
1810 // hipEventSynchronize[('hipEvent_t', 'event')]
1811 #define INIT_hipEventSynchronize_CB_ARGS_DATA(cb_data) { \
1812  cb_data.args.hipEventSynchronize.event = event; \
1813 };
1814 // hipMemcpyDtoDAsync[('hipDeviceptr_t', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
1815 #define INIT_hipMemcpyDtoDAsync_CB_ARGS_DATA(cb_data) { \
1816  cb_data.args.hipMemcpyDtoDAsync.dst = dst; \
1817  cb_data.args.hipMemcpyDtoDAsync.src = src; \
1818  cb_data.args.hipMemcpyDtoDAsync.sizeBytes = sizeBytes; \
1819  cb_data.args.hipMemcpyDtoDAsync.stream = stream; \
1820 };
1821 // hipExtMallocWithFlags[('void**', 'ptr'), ('size_t', 'sizeBytes'), ('unsigned int', 'flags')]
1822 #define INIT_hipExtMallocWithFlags_CB_ARGS_DATA(cb_data) { \
1823  cb_data.args.hipExtMallocWithFlags.ptr = ptr; \
1824  cb_data.args.hipExtMallocWithFlags.sizeBytes = sizeBytes; \
1825  cb_data.args.hipExtMallocWithFlags.flags = flags; \
1826 };
1827 // hipCtxEnablePeerAccess[('hipCtx_t', 'peerCtx'), ('unsigned int', 'flags')]
1828 #define INIT_hipCtxEnablePeerAccess_CB_ARGS_DATA(cb_data) { \
1829  cb_data.args.hipCtxEnablePeerAccess.peerCtx = peerCtx; \
1830  cb_data.args.hipCtxEnablePeerAccess.flags = flags; \
1831 };
1832 // hipMemcpyDtoHAsync[('void*', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
1833 #define INIT_hipMemcpyDtoHAsync_CB_ARGS_DATA(cb_data) { \
1834  cb_data.args.hipMemcpyDtoHAsync.dst = dst; \
1835  cb_data.args.hipMemcpyDtoHAsync.src = src; \
1836  cb_data.args.hipMemcpyDtoHAsync.sizeBytes = sizeBytes; \
1837  cb_data.args.hipMemcpyDtoHAsync.stream = stream; \
1838 };
1839 // hipModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'gridDimX'), ('unsigned int', 'gridDimY'), ('unsigned int', 'gridDimZ'), ('unsigned int', 'blockDimX'), ('unsigned int', 'blockDimY'), ('unsigned int', 'blockDimZ'), ('unsigned int', 'sharedMemBytes'), ('hipStream_t', 'stream'), ('void**', 'kernelParams'), ('void**', 'extra')]
1840 #define INIT_hipModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \
1841  cb_data.args.hipModuleLaunchKernel.f = f; \
1842  cb_data.args.hipModuleLaunchKernel.gridDimX = gridDimX; \
1843  cb_data.args.hipModuleLaunchKernel.gridDimY = gridDimY; \
1844  cb_data.args.hipModuleLaunchKernel.gridDimZ = gridDimZ; \
1845  cb_data.args.hipModuleLaunchKernel.blockDimX = blockDimX; \
1846  cb_data.args.hipModuleLaunchKernel.blockDimY = blockDimY; \
1847  cb_data.args.hipModuleLaunchKernel.blockDimZ = blockDimZ; \
1848  cb_data.args.hipModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \
1849  cb_data.args.hipModuleLaunchKernel.stream = hStream; \
1850  cb_data.args.hipModuleLaunchKernel.kernelParams = kernelParams; \
1851  cb_data.args.hipModuleLaunchKernel.extra = extra; \
1852 };
1853 // hipModuleGetTexRef[('textureReference**', 'texRef'), ('hipModule_t', 'hmod'), ('const char*', 'name')]
1854 #define INIT_hipModuleGetTexRef_CB_ARGS_DATA(cb_data) { \
1855  cb_data.args.hipModuleGetTexRef.texRef = texRef; \
1856  cb_data.args.hipModuleGetTexRef.hmod = hmod; \
1857  cb_data.args.hipModuleGetTexRef.name = name; \
1858 };
1859 // hipDeviceGetLimit[('size_t*', 'pValue'), ('hipLimit_t', 'limit')]
1860 #define INIT_hipDeviceGetLimit_CB_ARGS_DATA(cb_data) { \
1861  cb_data.args.hipDeviceGetLimit.pValue = pValue; \
1862  cb_data.args.hipDeviceGetLimit.limit = limit; \
1863 };
1864 // hipModuleLoadDataEx[('hipModule_t*', 'module'), ('const void*', 'image'), ('unsigned int', 'numOptions'), ('hipJitOption*', 'options'), ('void**', 'optionValues')]
1865 #define INIT_hipModuleLoadDataEx_CB_ARGS_DATA(cb_data) { \
1866  cb_data.args.hipModuleLoadDataEx.module = module; \
1867  cb_data.args.hipModuleLoadDataEx.image = image; \
1868  cb_data.args.hipModuleLoadDataEx.numOptions = numOptions; \
1869  cb_data.args.hipModuleLoadDataEx.options = options; \
1870  cb_data.args.hipModuleLoadDataEx.optionValues = optionValues; \
1871 };
1872 // hipRuntimeGetVersion[('int*', 'runtimeVersion')]
1873 #define INIT_hipRuntimeGetVersion_CB_ARGS_DATA(cb_data) { \
1874  cb_data.args.hipRuntimeGetVersion.runtimeVersion = runtimeVersion; \
1875 };
1876 // hipGetDeviceProperties[('hipDeviceProp_t*', 'prop'), ('int', 'deviceId')]
1877 #define INIT_hipGetDeviceProperties_CB_ARGS_DATA(cb_data) { \
1878  cb_data.args.hipGetDeviceProperties.prop = props; \
1879  cb_data.args.hipGetDeviceProperties.deviceId = device; \
1880 };
1881 // hipFreeArray[('hipArray*', 'array')]
1882 #define INIT_hipFreeArray_CB_ARGS_DATA(cb_data) { \
1883  cb_data.args.hipFreeArray.array = array; \
1884 };
1885 // hipDevicePrimaryCtxRelease[('hipDevice_t', 'dev')]
1886 #define INIT_hipDevicePrimaryCtxRelease_CB_ARGS_DATA(cb_data) { \
1887  cb_data.args.hipDevicePrimaryCtxRelease.dev = dev; \
1888 };
1889 // hipHostGetDevicePointer[('void**', 'devPtr'), ('void*', 'hstPtr'), ('unsigned int', 'flags')]
1890 #define INIT_hipHostGetDevicePointer_CB_ARGS_DATA(cb_data) { \
1891  cb_data.args.hipHostGetDevicePointer.devPtr = devicePointer; \
1892  cb_data.args.hipHostGetDevicePointer.hstPtr = hostPointer; \
1893  cb_data.args.hipHostGetDevicePointer.flags = flags; \
1894 };
1895 // hipMemcpyParam2D[('const hip_Memcpy2D*', 'pCopy')]
1896 #define INIT_hipMemcpyParam2D_CB_ARGS_DATA(cb_data) { \
1897  cb_data.args.hipMemcpyParam2D.pCopy = pCopy; \
1898 };
1899 // hipModuleGetFunction[('hipFunction_t*', 'function'), ('hipModule_t', 'module'), ('const char*', 'kname')]
1900 #define INIT_hipModuleGetFunction_CB_ARGS_DATA(cb_data) { \
1901  cb_data.args.hipModuleGetFunction.function = hfunc; \
1902  cb_data.args.hipModuleGetFunction.module = hmod; \
1903  cb_data.args.hipModuleGetFunction.kname = name; \
1904 };
1905 // hipMemsetD32Async[('hipDeviceptr_t', 'dst'), ('int', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
1906 #define INIT_hipMemsetD32Async_CB_ARGS_DATA(cb_data) { \
1907  cb_data.args.hipMemsetD32Async.dst = dst; \
1908  cb_data.args.hipMemsetD32Async.value = value; \
1909  cb_data.args.hipMemsetD32Async.count = count; \
1910  cb_data.args.hipMemsetD32Async.stream = stream; \
1911 };
1912 // hipGetDevice[('int*', 'deviceId')]
1913 #define INIT_hipGetDevice_CB_ARGS_DATA(cb_data) { \
1914  cb_data.args.hipGetDevice.deviceId = deviceId; \
1915 };
1916 // hipGetDeviceCount[('int*', 'count')]
1917 #define INIT_hipGetDeviceCount_CB_ARGS_DATA(cb_data) { \
1918  cb_data.args.hipGetDeviceCount.count = count; \
1919 };
1920 #define INIT_CB_ARGS_DATA(cb_id, cb_data) INIT_##cb_id##_CB_ARGS_DATA(cb_data)
1921 #endif // _HIP_PROF_STR_H
Definition: hip_runtime_api.h:279
Definition: driver_types.h:240
Definition: hip_runtime_api.h:144
Definition: hip_module.cpp:107
Definition: hip_runtime_api.h:122
Definition: hip_hcc_internal.h:902
Definition: texture_types.h:74
Definition: driver_types.h:77
hipDeviceAttribute_t
Definition: hip_runtime_api.h:268
Definition: hip_runtime_api.h:270
void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
Definition: hip_runtime_api.h:844
Definition: driver_types.h:68
Definition: driver_types.h:253
Definition: driver_types.h:61
Definition: driver_types.h:233
hipFuncCache_t
Definition: hip_runtime_api.h:246
Definition: hip_runtime_api.h:83
hipSharedMemConfig
Definition: hip_runtime_api.h:257
Definition: driver_types.h:38
Definition: hip_hcc_internal.h:722
Definition: hip_hcc_internal.h:544
Definition: driver_types.h:90
Definition: hip_runtime_api.h:107
Definition: hip_hcc_internal.h:391
Definition: hip_prof_str.h:384