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