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