2 #ifndef _HIP_PROF_STR_H 3 #define _HIP_PROF_STR_H 6 #define INIT_NONE_CB_ARGS_DATA(cb_data) {}; 7 #define INIT_hipModuleGetFunctionEx_CB_ARGS_DATA(cb_data) {}; 8 #define INIT_hipDestroySurfaceObject_CB_ARGS_DATA(cb_data) {}; 9 #define INIT_hipDestroyTextureObject_CB_ARGS_DATA(cb_data) {}; 10 #define INIT_hipTexRefSetAddress_CB_ARGS_DATA(cb_data) {}; 11 #define INIT_hipBindTexture2D_CB_ARGS_DATA(cb_data) {}; 12 #define INIT_hipCreateTextureObject_CB_ARGS_DATA(cb_data) {}; 13 #define INIT_hipBindTextureToMipmappedArray_CB_ARGS_DATA(cb_data) {}; 14 #define INIT_hipBindTextureToArray_CB_ARGS_DATA(cb_data) {}; 15 #define INIT_hipTexRefSetFormat_CB_ARGS_DATA(cb_data) {}; 16 #define INIT_hipMemcpyHtoH_CB_ARGS_DATA(cb_data) {}; 17 #define INIT_hipTexRefSetArray_CB_ARGS_DATA(cb_data) {}; 18 #define INIT_hipTexRefSetAddress2D_CB_ARGS_DATA(cb_data) {}; 19 #define INIT_hipGetTextureObjectResourceViewDesc_CB_ARGS_DATA(cb_data) {}; 20 #define INIT_hipUnbindTexture_CB_ARGS_DATA(cb_data) {}; 21 #define INIT_hipTexRefSetFilterMode_CB_ARGS_DATA(cb_data) {}; 22 #define INIT_hipGetTextureAlignmentOffset_CB_ARGS_DATA(cb_data) {}; 23 #define INIT_hipCreateSurfaceObject_CB_ARGS_DATA(cb_data) {}; 24 #define INIT_hipGetChannelDesc_CB_ARGS_DATA(cb_data) {}; 25 #define INIT_hipHccGetAcceleratorView_CB_ARGS_DATA(cb_data) {}; 26 #define INIT_hipExtModuleLaunchKernel_CB_ARGS_DATA(cb_data) {}; 27 #define INIT_hipGetTextureObjectResourceDesc_CB_ARGS_DATA(cb_data) {}; 28 #define INIT_hipGetTextureReference_CB_ARGS_DATA(cb_data) {}; 29 #define INIT_hipTexRefSetAddressMode_CB_ARGS_DATA(cb_data) {}; 30 #define INIT_hipTexRefSetFlags_CB_ARGS_DATA(cb_data) {}; 31 #define INIT_hipBindTexture_CB_ARGS_DATA(cb_data) {}; 32 #define INIT_hipHccGetAccelerator_CB_ARGS_DATA(cb_data) {}; 33 #define INIT_hipGetTextureObjectTextureDesc_CB_ARGS_DATA(cb_data) {}; 37 HIP_API_ID_hipStreamCreateWithPriority = 0,
38 HIP_API_ID_hipMemcpyToSymbolAsync = 1,
39 HIP_API_ID_hipMallocPitch = 2,
40 HIP_API_ID_hipMalloc = 3,
41 HIP_API_ID_hipDeviceGetName = 4,
42 HIP_API_ID_hipEventRecord = 5,
43 HIP_API_ID_hipCtxSynchronize = 6,
44 HIP_API_ID_hipSetDevice = 7,
45 HIP_API_ID_hipCtxGetApiVersion = 8,
46 HIP_API_ID_hipSetupArgument = 9,
47 HIP_API_ID_hipMemcpyFromSymbolAsync = 10,
48 HIP_API_ID_hipExtGetLinkTypeAndHopCount = 11,
49 HIP_API_ID_hipMemcpyDtoD = 12,
50 HIP_API_ID_hipHostFree = 13,
51 HIP_API_ID_hipMemcpy2DToArray = 14,
52 HIP_API_ID_hipCtxGetCacheConfig = 15,
53 HIP_API_ID_hipStreamWaitEvent = 16,
54 HIP_API_ID_hipDeviceGetStreamPriorityRange = 17,
55 HIP_API_ID_hipModuleLoad = 18,
56 HIP_API_ID_hipDevicePrimaryCtxSetFlags = 19,
57 HIP_API_ID_hipLaunchCooperativeKernel = 20,
58 HIP_API_ID_hipLaunchCooperativeKernelMultiDevice = 21,
59 HIP_API_ID_hipMemcpyAsync = 22,
60 HIP_API_ID_hipMalloc3DArray = 23,
61 HIP_API_ID_hipStreamCreate = 24,
62 HIP_API_ID_hipCtxGetCurrent = 25,
63 HIP_API_ID_hipDevicePrimaryCtxGetState = 26,
64 HIP_API_ID_hipEventQuery = 27,
65 HIP_API_ID_hipEventCreate = 28,
66 HIP_API_ID_hipMemGetAddressRange = 29,
67 HIP_API_ID_hipMemcpyFromSymbol = 30,
68 HIP_API_ID_hipArrayCreate = 31,
69 HIP_API_ID_hipStreamGetFlags = 32,
70 HIP_API_ID_hipMallocArray = 33,
71 HIP_API_ID_hipCtxGetSharedMemConfig = 34,
72 HIP_API_ID_hipMemPtrGetInfo = 35,
73 HIP_API_ID_hipFuncGetAttribute = 36,
74 HIP_API_ID_hipCtxGetFlags = 37,
75 HIP_API_ID_hipStreamDestroy = 38,
76 HIP_API_ID_hipMemset3DAsync = 39,
77 HIP_API_ID_hipMemcpy3D = 40,
78 HIP_API_ID_hipInit = 41,
79 HIP_API_ID_hipMemcpyAtoH = 42,
80 HIP_API_ID_hipStreamGetPriority = 43,
81 HIP_API_ID_hipMemset2D = 44,
82 HIP_API_ID_hipMemset2DAsync = 45,
83 HIP_API_ID_hipDeviceCanAccessPeer = 46,
84 HIP_API_ID_hipDeviceEnablePeerAccess = 47,
85 HIP_API_ID_hipLaunchKernel = 48,
86 HIP_API_ID_hipModuleUnload = 49,
87 HIP_API_ID_hipHostUnregister = 50,
88 HIP_API_ID_hipProfilerStop = 51,
89 HIP_API_ID_hipLaunchByPtr = 52,
90 HIP_API_ID_hipStreamSynchronize = 53,
91 HIP_API_ID_hipDeviceSetCacheConfig = 54,
92 HIP_API_ID_hipGetErrorName = 55,
93 HIP_API_ID_hipMemcpyHtoD = 56,
94 HIP_API_ID_hipModuleGetGlobal = 57,
95 HIP_API_ID_hipMemcpyHtoA = 58,
96 HIP_API_ID_hipCtxCreate = 59,
97 HIP_API_ID_hipMemcpy2D = 60,
98 HIP_API_ID_hipIpcCloseMemHandle = 61,
99 HIP_API_ID_hipChooseDevice = 62,
100 HIP_API_ID_hipDeviceSetSharedMemConfig = 63,
101 HIP_API_ID_hipDeviceComputeCapability = 64,
102 HIP_API_ID_hipDeviceGet = 65,
103 HIP_API_ID_hipProfilerStart = 66,
104 HIP_API_ID_hipCtxSetCacheConfig = 67,
105 HIP_API_ID_hipFuncSetCacheConfig = 68,
106 HIP_API_ID_hipMemcpyPeerAsync = 69,
107 HIP_API_ID_hipEventElapsedTime = 70,
108 HIP_API_ID_hipDevicePrimaryCtxReset = 71,
109 HIP_API_ID_hipMemcpy3DAsync = 72,
110 HIP_API_ID_hipEventDestroy = 73,
111 HIP_API_ID_hipCtxPopCurrent = 74,
112 HIP_API_ID_hipGetSymbolAddress = 75,
113 HIP_API_ID_hipHostGetFlags = 76,
114 HIP_API_ID_hipHostMalloc = 77,
115 HIP_API_ID_hipDriverGetVersion = 78,
116 HIP_API_ID_hipMemGetInfo = 79,
117 HIP_API_ID_hipDeviceReset = 80,
118 HIP_API_ID_hipMemset = 81,
119 HIP_API_ID_hipMemsetD8 = 82,
120 HIP_API_ID_hipMemcpyParam2DAsync = 83,
121 HIP_API_ID_hipHostRegister = 84,
122 HIP_API_ID_hipCtxSetSharedMemConfig = 85,
123 HIP_API_ID_hipArray3DCreate = 86,
124 HIP_API_ID_hipIpcOpenMemHandle = 87,
125 HIP_API_ID_hipGetLastError = 88,
126 HIP_API_ID_hipCtxDestroy = 89,
127 HIP_API_ID_hipDeviceGetSharedMemConfig = 90,
128 HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = 91,
129 HIP_API_ID_hipSetDeviceFlags = 92,
130 HIP_API_ID_hipHccModuleLaunchKernel = 93,
131 HIP_API_ID_hipFree = 94,
132 HIP_API_ID_hipOccupancyMaxPotentialBlockSize = 95,
133 HIP_API_ID_hipDeviceGetAttribute = 96,
134 HIP_API_ID_hipMemcpyDtoH = 97,
135 HIP_API_ID_hipCtxDisablePeerAccess = 98,
136 HIP_API_ID_hipMallocManaged = 99,
137 HIP_API_ID_hipDeviceGetByPCIBusId = 100,
138 HIP_API_ID_hipIpcGetMemHandle = 101,
139 HIP_API_ID_hipMemcpyHtoDAsync = 102,
140 HIP_API_ID_hipCtxGetDevice = 103,
141 HIP_API_ID_hipMemset3D = 104,
142 HIP_API_ID_hipModuleLoadData = 105,
143 HIP_API_ID_hipDeviceTotalMem = 106,
144 HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor = 107,
145 HIP_API_ID_hipCtxSetCurrent = 108,
146 HIP_API_ID_hipGetErrorString = 109,
147 HIP_API_ID_hipDevicePrimaryCtxRetain = 110,
148 HIP_API_ID_hipDeviceDisablePeerAccess = 111,
149 HIP_API_ID_hipStreamCreateWithFlags = 112,
150 HIP_API_ID_hipMemcpyFromArray = 113,
151 HIP_API_ID_hipMemcpy2DAsync = 114,
152 HIP_API_ID_hipFuncGetAttributes = 115,
153 HIP_API_ID_hipGetSymbolSize = 116,
154 HIP_API_ID_hipEventCreateWithFlags = 117,
155 HIP_API_ID_hipStreamQuery = 118,
156 HIP_API_ID_hipDeviceGetPCIBusId = 119,
157 HIP_API_ID_hipMemcpy = 120,
158 HIP_API_ID_hipPeekAtLastError = 121,
159 HIP_API_ID_hipExtLaunchMultiKernelMultiDevice = 122,
160 HIP_API_ID_hipStreamAddCallback = 123,
161 HIP_API_ID_hipMemcpyToArray = 124,
162 HIP_API_ID_hipMemsetD32 = 125,
163 HIP_API_ID_hipDeviceSynchronize = 126,
164 HIP_API_ID_hipDeviceGetCacheConfig = 127,
165 HIP_API_ID_hipMalloc3D = 128,
166 HIP_API_ID_hipPointerGetAttributes = 129,
167 HIP_API_ID_hipMemsetAsync = 130,
168 HIP_API_ID_hipMemcpyToSymbol = 131,
169 HIP_API_ID_hipCtxPushCurrent = 132,
170 HIP_API_ID_hipMemcpyPeer = 133,
171 HIP_API_ID_hipEventSynchronize = 134,
172 HIP_API_ID_hipMemcpyDtoDAsync = 135,
173 HIP_API_ID_hipExtMallocWithFlags = 136,
174 HIP_API_ID_hipCtxEnablePeerAccess = 137,
175 HIP_API_ID_hipMemcpyDtoHAsync = 138,
176 HIP_API_ID_hipModuleLaunchKernel = 139,
177 HIP_API_ID_hipModuleGetTexRef = 140,
178 HIP_API_ID_hipDeviceGetLimit = 141,
179 HIP_API_ID_hipModuleLoadDataEx = 142,
180 HIP_API_ID_hipRuntimeGetVersion = 143,
181 HIP_API_ID_hipGetDeviceProperties = 144,
182 HIP_API_ID_hipFreeArray = 145,
183 HIP_API_ID_hipDevicePrimaryCtxRelease = 146,
184 HIP_API_ID_hipHostGetDevicePointer = 147,
185 HIP_API_ID_hipMemcpyParam2D = 148,
186 HIP_API_ID_hipModuleGetFunction = 149,
187 HIP_API_ID_hipMemsetD32Async = 150,
188 HIP_API_ID_hipGetDevice = 151,
189 HIP_API_ID_hipGetDeviceCount = 152,
190 HIP_API_ID_NUMBER = 153,
191 HIP_API_ID_ANY = 154,
193 HIP_API_ID_NONE = HIP_API_ID_NUMBER,
194 HIP_API_ID_hipModuleGetFunctionEx = HIP_API_ID_NUMBER,
195 HIP_API_ID_hipDestroySurfaceObject = HIP_API_ID_NUMBER,
196 HIP_API_ID_hipDestroyTextureObject = HIP_API_ID_NUMBER,
197 HIP_API_ID_hipTexRefSetAddress = HIP_API_ID_NUMBER,
198 HIP_API_ID_hipBindTexture2D = HIP_API_ID_NUMBER,
199 HIP_API_ID_hipCreateTextureObject = HIP_API_ID_NUMBER,
200 HIP_API_ID_hipBindTextureToMipmappedArray = HIP_API_ID_NUMBER,
201 HIP_API_ID_hipBindTextureToArray = HIP_API_ID_NUMBER,
202 HIP_API_ID_hipTexRefSetFormat = HIP_API_ID_NUMBER,
203 HIP_API_ID_hipMemcpyHtoH = HIP_API_ID_NUMBER,
204 HIP_API_ID_hipTexRefSetArray = HIP_API_ID_NUMBER,
205 HIP_API_ID_hipTexRefSetAddress2D = HIP_API_ID_NUMBER,
206 HIP_API_ID_hipGetTextureObjectResourceViewDesc = HIP_API_ID_NUMBER,
207 HIP_API_ID_hipUnbindTexture = HIP_API_ID_NUMBER,
208 HIP_API_ID_hipTexRefSetFilterMode = HIP_API_ID_NUMBER,
209 HIP_API_ID_hipGetTextureAlignmentOffset = HIP_API_ID_NUMBER,
210 HIP_API_ID_hipCreateSurfaceObject = HIP_API_ID_NUMBER,
211 HIP_API_ID_hipGetChannelDesc = HIP_API_ID_NUMBER,
212 HIP_API_ID_hipHccGetAcceleratorView = HIP_API_ID_NUMBER,
213 HIP_API_ID_hipExtModuleLaunchKernel = HIP_API_ID_NUMBER,
214 HIP_API_ID_hipGetTextureObjectResourceDesc = HIP_API_ID_NUMBER,
215 HIP_API_ID_hipGetTextureReference = HIP_API_ID_NUMBER,
216 HIP_API_ID_hipTexRefSetAddressMode = HIP_API_ID_NUMBER,
217 HIP_API_ID_hipTexRefSetFlags = HIP_API_ID_NUMBER,
218 HIP_API_ID_hipBindTexture = HIP_API_ID_NUMBER,
219 HIP_API_ID_hipHccGetAccelerator = HIP_API_ID_NUMBER,
220 HIP_API_ID_hipGetTextureObjectTextureDesc = HIP_API_ID_NUMBER,
224 static inline const char* hip_api_name(
const uint32_t
id) {
226 case HIP_API_ID_hipStreamCreateWithPriority:
return "hipStreamCreateWithPriority";
227 case HIP_API_ID_hipMemcpyToSymbolAsync:
return "hipMemcpyToSymbolAsync";
228 case HIP_API_ID_hipMallocPitch:
return "hipMallocPitch";
229 case HIP_API_ID_hipMalloc:
return "hipMalloc";
230 case HIP_API_ID_hipDeviceGetName:
return "hipDeviceGetName";
231 case HIP_API_ID_hipEventRecord:
return "hipEventRecord";
232 case HIP_API_ID_hipCtxSynchronize:
return "hipCtxSynchronize";
233 case HIP_API_ID_hipSetDevice:
return "hipSetDevice";
234 case HIP_API_ID_hipCtxGetApiVersion:
return "hipCtxGetApiVersion";
235 case HIP_API_ID_hipSetupArgument:
return "hipSetupArgument";
236 case HIP_API_ID_hipMemcpyFromSymbolAsync:
return "hipMemcpyFromSymbolAsync";
237 case HIP_API_ID_hipExtGetLinkTypeAndHopCount:
return "hipExtGetLinkTypeAndHopCount";
238 case HIP_API_ID_hipMemcpyDtoD:
return "hipMemcpyDtoD";
239 case HIP_API_ID_hipHostFree:
return "hipHostFree";
240 case HIP_API_ID_hipMemcpy2DToArray:
return "hipMemcpy2DToArray";
241 case HIP_API_ID_hipCtxGetCacheConfig:
return "hipCtxGetCacheConfig";
242 case HIP_API_ID_hipStreamWaitEvent:
return "hipStreamWaitEvent";
243 case HIP_API_ID_hipDeviceGetStreamPriorityRange:
return "hipDeviceGetStreamPriorityRange";
244 case HIP_API_ID_hipModuleLoad:
return "hipModuleLoad";
245 case HIP_API_ID_hipDevicePrimaryCtxSetFlags:
return "hipDevicePrimaryCtxSetFlags";
246 case HIP_API_ID_hipLaunchCooperativeKernel:
return "hipLaunchCooperativeKernel";
247 case HIP_API_ID_hipLaunchCooperativeKernelMultiDevice:
return "hipLaunchCooperativeKernelMultiDevice";
248 case HIP_API_ID_hipMemcpyAsync:
return "hipMemcpyAsync";
249 case HIP_API_ID_hipMalloc3DArray:
return "hipMalloc3DArray";
250 case HIP_API_ID_hipStreamCreate:
return "hipStreamCreate";
251 case HIP_API_ID_hipCtxGetCurrent:
return "hipCtxGetCurrent";
252 case HIP_API_ID_hipDevicePrimaryCtxGetState:
return "hipDevicePrimaryCtxGetState";
253 case HIP_API_ID_hipEventQuery:
return "hipEventQuery";
254 case HIP_API_ID_hipEventCreate:
return "hipEventCreate";
255 case HIP_API_ID_hipMemGetAddressRange:
return "hipMemGetAddressRange";
256 case HIP_API_ID_hipMemcpyFromSymbol:
return "hipMemcpyFromSymbol";
257 case HIP_API_ID_hipArrayCreate:
return "hipArrayCreate";
258 case HIP_API_ID_hipStreamGetFlags:
return "hipStreamGetFlags";
259 case HIP_API_ID_hipMallocArray:
return "hipMallocArray";
260 case HIP_API_ID_hipCtxGetSharedMemConfig:
return "hipCtxGetSharedMemConfig";
261 case HIP_API_ID_hipMemPtrGetInfo:
return "hipMemPtrGetInfo";
262 case HIP_API_ID_hipFuncGetAttribute:
return "hipFuncGetAttribute";
263 case HIP_API_ID_hipCtxGetFlags:
return "hipCtxGetFlags";
264 case HIP_API_ID_hipStreamDestroy:
return "hipStreamDestroy";
265 case HIP_API_ID_hipMemset3DAsync:
return "hipMemset3DAsync";
266 case HIP_API_ID_hipMemcpy3D:
return "hipMemcpy3D";
267 case HIP_API_ID_hipInit:
return "hipInit";
268 case HIP_API_ID_hipMemcpyAtoH:
return "hipMemcpyAtoH";
269 case HIP_API_ID_hipStreamGetPriority:
return "hipStreamGetPriority";
270 case HIP_API_ID_hipMemset2D:
return "hipMemset2D";
271 case HIP_API_ID_hipMemset2DAsync:
return "hipMemset2DAsync";
272 case HIP_API_ID_hipDeviceCanAccessPeer:
return "hipDeviceCanAccessPeer";
273 case HIP_API_ID_hipDeviceEnablePeerAccess:
return "hipDeviceEnablePeerAccess";
274 case HIP_API_ID_hipLaunchKernel:
return "hipLaunchKernel";
275 case HIP_API_ID_hipModuleUnload:
return "hipModuleUnload";
276 case HIP_API_ID_hipHostUnregister:
return "hipHostUnregister";
277 case HIP_API_ID_hipProfilerStop:
return "hipProfilerStop";
278 case HIP_API_ID_hipLaunchByPtr:
return "hipLaunchByPtr";
279 case HIP_API_ID_hipStreamSynchronize:
return "hipStreamSynchronize";
280 case HIP_API_ID_hipDeviceSetCacheConfig:
return "hipDeviceSetCacheConfig";
281 case HIP_API_ID_hipGetErrorName:
return "hipGetErrorName";
282 case HIP_API_ID_hipMemcpyHtoD:
return "hipMemcpyHtoD";
283 case HIP_API_ID_hipModuleGetGlobal:
return "hipModuleGetGlobal";
284 case HIP_API_ID_hipMemcpyHtoA:
return "hipMemcpyHtoA";
285 case HIP_API_ID_hipCtxCreate:
return "hipCtxCreate";
286 case HIP_API_ID_hipMemcpy2D:
return "hipMemcpy2D";
287 case HIP_API_ID_hipIpcCloseMemHandle:
return "hipIpcCloseMemHandle";
288 case HIP_API_ID_hipChooseDevice:
return "hipChooseDevice";
289 case HIP_API_ID_hipDeviceSetSharedMemConfig:
return "hipDeviceSetSharedMemConfig";
290 case HIP_API_ID_hipDeviceComputeCapability:
return "hipDeviceComputeCapability";
291 case HIP_API_ID_hipDeviceGet:
return "hipDeviceGet";
292 case HIP_API_ID_hipProfilerStart:
return "hipProfilerStart";
293 case HIP_API_ID_hipCtxSetCacheConfig:
return "hipCtxSetCacheConfig";
294 case HIP_API_ID_hipFuncSetCacheConfig:
return "hipFuncSetCacheConfig";
295 case HIP_API_ID_hipMemcpyPeerAsync:
return "hipMemcpyPeerAsync";
296 case HIP_API_ID_hipEventElapsedTime:
return "hipEventElapsedTime";
297 case HIP_API_ID_hipDevicePrimaryCtxReset:
return "hipDevicePrimaryCtxReset";
298 case HIP_API_ID_hipMemcpy3DAsync:
return "hipMemcpy3DAsync";
299 case HIP_API_ID_hipEventDestroy:
return "hipEventDestroy";
300 case HIP_API_ID_hipCtxPopCurrent:
return "hipCtxPopCurrent";
301 case HIP_API_ID_hipGetSymbolAddress:
return "hipGetSymbolAddress";
302 case HIP_API_ID_hipHostGetFlags:
return "hipHostGetFlags";
303 case HIP_API_ID_hipHostMalloc:
return "hipHostMalloc";
304 case HIP_API_ID_hipDriverGetVersion:
return "hipDriverGetVersion";
305 case HIP_API_ID_hipMemGetInfo:
return "hipMemGetInfo";
306 case HIP_API_ID_hipDeviceReset:
return "hipDeviceReset";
307 case HIP_API_ID_hipMemset:
return "hipMemset";
308 case HIP_API_ID_hipMemsetD8:
return "hipMemsetD8";
309 case HIP_API_ID_hipMemcpyParam2DAsync:
return "hipMemcpyParam2DAsync";
310 case HIP_API_ID_hipHostRegister:
return "hipHostRegister";
311 case HIP_API_ID_hipCtxSetSharedMemConfig:
return "hipCtxSetSharedMemConfig";
312 case HIP_API_ID_hipArray3DCreate:
return "hipArray3DCreate";
313 case HIP_API_ID_hipIpcOpenMemHandle:
return "hipIpcOpenMemHandle";
314 case HIP_API_ID_hipGetLastError:
return "hipGetLastError";
315 case HIP_API_ID_hipCtxDestroy:
return "hipCtxDestroy";
316 case HIP_API_ID_hipDeviceGetSharedMemConfig:
return "hipDeviceGetSharedMemConfig";
317 case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
return "hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags";
318 case HIP_API_ID_hipSetDeviceFlags:
return "hipSetDeviceFlags";
319 case HIP_API_ID_hipHccModuleLaunchKernel:
return "hipHccModuleLaunchKernel";
320 case HIP_API_ID_hipFree:
return "hipFree";
321 case HIP_API_ID_hipOccupancyMaxPotentialBlockSize:
return "hipOccupancyMaxPotentialBlockSize";
322 case HIP_API_ID_hipDeviceGetAttribute:
return "hipDeviceGetAttribute";
323 case HIP_API_ID_hipMemcpyDtoH:
return "hipMemcpyDtoH";
324 case HIP_API_ID_hipCtxDisablePeerAccess:
return "hipCtxDisablePeerAccess";
325 case HIP_API_ID_hipMallocManaged:
return "hipMallocManaged";
326 case HIP_API_ID_hipDeviceGetByPCIBusId:
return "hipDeviceGetByPCIBusId";
327 case HIP_API_ID_hipIpcGetMemHandle:
return "hipIpcGetMemHandle";
328 case HIP_API_ID_hipMemcpyHtoDAsync:
return "hipMemcpyHtoDAsync";
329 case HIP_API_ID_hipCtxGetDevice:
return "hipCtxGetDevice";
330 case HIP_API_ID_hipMemset3D:
return "hipMemset3D";
331 case HIP_API_ID_hipModuleLoadData:
return "hipModuleLoadData";
332 case HIP_API_ID_hipDeviceTotalMem:
return "hipDeviceTotalMem";
333 case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor:
return "hipOccupancyMaxActiveBlocksPerMultiprocessor";
334 case HIP_API_ID_hipCtxSetCurrent:
return "hipCtxSetCurrent";
335 case HIP_API_ID_hipGetErrorString:
return "hipGetErrorString";
336 case HIP_API_ID_hipDevicePrimaryCtxRetain:
return "hipDevicePrimaryCtxRetain";
337 case HIP_API_ID_hipDeviceDisablePeerAccess:
return "hipDeviceDisablePeerAccess";
338 case HIP_API_ID_hipStreamCreateWithFlags:
return "hipStreamCreateWithFlags";
339 case HIP_API_ID_hipMemcpyFromArray:
return "hipMemcpyFromArray";
340 case HIP_API_ID_hipMemcpy2DAsync:
return "hipMemcpy2DAsync";
341 case HIP_API_ID_hipFuncGetAttributes:
return "hipFuncGetAttributes";
342 case HIP_API_ID_hipGetSymbolSize:
return "hipGetSymbolSize";
343 case HIP_API_ID_hipEventCreateWithFlags:
return "hipEventCreateWithFlags";
344 case HIP_API_ID_hipStreamQuery:
return "hipStreamQuery";
345 case HIP_API_ID_hipDeviceGetPCIBusId:
return "hipDeviceGetPCIBusId";
346 case HIP_API_ID_hipMemcpy:
return "hipMemcpy";
347 case HIP_API_ID_hipPeekAtLastError:
return "hipPeekAtLastError";
348 case HIP_API_ID_hipExtLaunchMultiKernelMultiDevice:
return "hipExtLaunchMultiKernelMultiDevice";
349 case HIP_API_ID_hipStreamAddCallback:
return "hipStreamAddCallback";
350 case HIP_API_ID_hipMemcpyToArray:
return "hipMemcpyToArray";
351 case HIP_API_ID_hipMemsetD32:
return "hipMemsetD32";
352 case HIP_API_ID_hipDeviceSynchronize:
return "hipDeviceSynchronize";
353 case HIP_API_ID_hipDeviceGetCacheConfig:
return "hipDeviceGetCacheConfig";
354 case HIP_API_ID_hipMalloc3D:
return "hipMalloc3D";
355 case HIP_API_ID_hipPointerGetAttributes:
return "hipPointerGetAttributes";
356 case HIP_API_ID_hipMemsetAsync:
return "hipMemsetAsync";
357 case HIP_API_ID_hipMemcpyToSymbol:
return "hipMemcpyToSymbol";
358 case HIP_API_ID_hipCtxPushCurrent:
return "hipCtxPushCurrent";
359 case HIP_API_ID_hipMemcpyPeer:
return "hipMemcpyPeer";
360 case HIP_API_ID_hipEventSynchronize:
return "hipEventSynchronize";
361 case HIP_API_ID_hipMemcpyDtoDAsync:
return "hipMemcpyDtoDAsync";
362 case HIP_API_ID_hipExtMallocWithFlags:
return "hipExtMallocWithFlags";
363 case HIP_API_ID_hipCtxEnablePeerAccess:
return "hipCtxEnablePeerAccess";
364 case HIP_API_ID_hipMemcpyDtoHAsync:
return "hipMemcpyDtoHAsync";
365 case HIP_API_ID_hipModuleLaunchKernel:
return "hipModuleLaunchKernel";
366 case HIP_API_ID_hipModuleGetTexRef:
return "hipModuleGetTexRef";
367 case HIP_API_ID_hipDeviceGetLimit:
return "hipDeviceGetLimit";
368 case HIP_API_ID_hipModuleLoadDataEx:
return "hipModuleLoadDataEx";
369 case HIP_API_ID_hipRuntimeGetVersion:
return "hipRuntimeGetVersion";
370 case HIP_API_ID_hipGetDeviceProperties:
return "hipGetDeviceProperties";
371 case HIP_API_ID_hipFreeArray:
return "hipFreeArray";
372 case HIP_API_ID_hipDevicePrimaryCtxRelease:
return "hipDevicePrimaryCtxRelease";
373 case HIP_API_ID_hipHostGetDevicePointer:
return "hipHostGetDevicePointer";
374 case HIP_API_ID_hipMemcpyParam2D:
return "hipMemcpyParam2D";
375 case HIP_API_ID_hipModuleGetFunction:
return "hipModuleGetFunction";
376 case HIP_API_ID_hipMemsetD32Async:
return "hipMemsetD32Async";
377 case HIP_API_ID_hipGetDevice:
return "hipGetDevice";
378 case HIP_API_ID_hipGetDeviceCount:
return "hipGetDeviceCount";
385 uint64_t correlation_id;
392 } hipStreamCreateWithPriority;
394 const void* symbolName;
400 } hipMemcpyToSymbolAsync;
426 } hipCtxGetApiVersion;
434 const void* symbolName;
439 } hipMemcpyFromSymbolAsync;
443 unsigned int* linktype;
444 unsigned int* hopcount;
445 } hipExtGetLinkTypeAndHopCount;
463 } hipMemcpy2DToArray;
466 } hipCtxGetCacheConfig;
471 } hipStreamWaitEvent;
474 int* greatestPriority;
475 } hipDeviceGetStreamPriorityRange;
483 } hipDevicePrimaryCtxSetFlags;
489 unsigned int sharedMemBytes;
491 } hipLaunchCooperativeKernel;
496 } hipLaunchCooperativeKernelMultiDevice;
520 } hipDevicePrimaryCtxGetState;
528 hipDeviceptr_t* pbase;
531 } hipMemGetAddressRange;
534 const void* symbolName;
538 } hipMemcpyFromSymbol;
556 } hipCtxGetSharedMemConfig;
563 hipFunction_attribute attrib;
565 } hipFuncGetAttribute;
593 } hipStreamGetPriority;
613 } hipDeviceCanAccessPeer;
617 } hipDeviceEnablePeerAccess;
619 const void* function_address;
623 size_t sharedMemBytes;
637 } hipStreamSynchronize;
640 } hipDeviceSetCacheConfig;
642 hipError_t hip_error;
650 hipDeviceptr_t* dptr;
654 } hipModuleGetGlobal;
677 } hipIpcCloseMemHandle;
684 } hipDeviceSetSharedMemConfig;
689 } hipDeviceComputeCapability;
696 } hipCtxSetCacheConfig;
700 } hipFuncSetCacheConfig;
708 } hipMemcpyPeerAsync;
713 } hipEventElapsedTime;
716 } hipDevicePrimaryCtxReset;
729 const void* symbolName;
730 } hipGetSymbolAddress;
732 unsigned int* flagsPtr;
742 } hipDriverGetVersion;
760 } hipMemcpyParam2DAsync;
768 } hipCtxSetSharedMemConfig;
777 } hipIpcOpenMemHandle;
783 } hipDeviceGetSharedMemConfig;
785 unsigned int* numBlocks;
787 unsigned int blockSize;
788 size_t dynSharedMemPerBlk;
790 } hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
796 unsigned int globalWorkSizeX;
797 unsigned int globalWorkSizeY;
798 unsigned int globalWorkSizeZ;
799 unsigned int localWorkSizeX;
800 unsigned int localWorkSizeY;
801 unsigned int localWorkSizeZ;
802 size_t sharedMemBytes;
808 } hipHccModuleLaunchKernel;
813 unsigned int* gridSize;
814 unsigned int* blockSize;
816 size_t dynSharedMemPerBlk;
817 unsigned int blockSizeLimit;
818 } hipOccupancyMaxPotentialBlockSize;
823 } hipDeviceGetAttribute;
831 } hipCtxDisablePeerAccess;
839 const char* pciBusId;
840 } hipDeviceGetByPCIBusId;
844 } hipIpcGetMemHandle;
850 } hipMemcpyHtoDAsync;
868 unsigned int* numBlocks;
870 unsigned int blockSize;
871 size_t dynSharedMemPerBlk;
872 } hipOccupancyMaxActiveBlocksPerMultiprocessor;
882 } hipDevicePrimaryCtxRetain;
885 } hipDeviceDisablePeerAccess;
889 } hipStreamCreateWithFlags;
897 } hipMemcpyFromArray;
911 } hipFuncGetAttributes;
914 const void* symbolName;
919 } hipEventCreateWithFlags;
927 } hipDeviceGetPCIBusId;
938 } hipExtLaunchMultiKernelMultiDevice;
944 } hipStreamAddCallback;
960 } hipDeviceGetCacheConfig;
968 } hipPointerGetAttributes;
976 const void* symbolName;
994 } hipEventSynchronize;
1000 } hipMemcpyDtoDAsync;
1005 } hipExtMallocWithFlags;
1009 } hipCtxEnablePeerAccess;
1015 } hipMemcpyDtoHAsync;
1018 unsigned int gridDimX;
1019 unsigned int gridDimY;
1020 unsigned int gridDimZ;
1021 unsigned int blockDimX;
1022 unsigned int blockDimY;
1023 unsigned int blockDimZ;
1024 unsigned int sharedMemBytes;
1026 void** kernelParams;
1028 } hipModuleLaunchKernel;
1033 } hipModuleGetTexRef;
1036 enum hipLimit_t limit;
1037 } hipDeviceGetLimit;
1041 unsigned int numOptions;
1042 hipJitOption* options;
1043 void** optionValues;
1044 } hipModuleLoadDataEx;
1046 int* runtimeVersion;
1047 } hipRuntimeGetVersion;
1051 } hipGetDeviceProperties;
1057 } hipDevicePrimaryCtxRelease;
1062 } hipHostGetDevicePointer;
1070 } hipModuleGetFunction;
1076 } hipMemsetD32Async;
1082 } hipGetDeviceCount;
1088 #define INIT_hipStreamCreateWithPriority_CB_ARGS_DATA(cb_data) { \ 1089 cb_data.args.hipStreamCreateWithPriority.stream = stream; \ 1090 cb_data.args.hipStreamCreateWithPriority.flags = flags; \ 1091 cb_data.args.hipStreamCreateWithPriority.priority = priority; \ 1094 #define INIT_hipMemcpyToSymbolAsync_CB_ARGS_DATA(cb_data) { \ 1097 #define INIT_hipMallocPitch_CB_ARGS_DATA(cb_data) { \ 1098 cb_data.args.hipMallocPitch.ptr = ptr; \ 1099 cb_data.args.hipMallocPitch.pitch = pitch; \ 1100 cb_data.args.hipMallocPitch.width = width; \ 1101 cb_data.args.hipMallocPitch.height = height; \ 1104 #define INIT_hipMalloc_CB_ARGS_DATA(cb_data) { \ 1105 cb_data.args.hipMalloc.ptr = ptr; \ 1106 cb_data.args.hipMalloc.size = sizeBytes; \ 1109 #define INIT_hipDeviceGetName_CB_ARGS_DATA(cb_data) { \ 1110 cb_data.args.hipDeviceGetName.name = name; \ 1111 cb_data.args.hipDeviceGetName.len = len; \ 1112 cb_data.args.hipDeviceGetName.device = device; \ 1115 #define INIT_hipEventRecord_CB_ARGS_DATA(cb_data) { \ 1116 cb_data.args.hipEventRecord.event = event; \ 1117 cb_data.args.hipEventRecord.stream = stream; \ 1120 #define INIT_hipCtxSynchronize_CB_ARGS_DATA(cb_data) { \ 1123 #define INIT_hipSetDevice_CB_ARGS_DATA(cb_data) { \ 1124 cb_data.args.hipSetDevice.deviceId = deviceId; \ 1127 #define INIT_hipCtxGetApiVersion_CB_ARGS_DATA(cb_data) { \ 1128 cb_data.args.hipCtxGetApiVersion.ctx = ctx; \ 1129 cb_data.args.hipCtxGetApiVersion.apiVersion = apiVersion; \ 1132 #define INIT_hipSetupArgument_CB_ARGS_DATA(cb_data) { \ 1133 cb_data.args.hipSetupArgument.arg = arg; \ 1134 cb_data.args.hipSetupArgument.size = size; \ 1135 cb_data.args.hipSetupArgument.offset = offset; \ 1138 #define INIT_hipMemcpyFromSymbolAsync_CB_ARGS_DATA(cb_data) { \ 1141 #define INIT_hipExtGetLinkTypeAndHopCount_CB_ARGS_DATA(cb_data) { \ 1142 cb_data.args.hipExtGetLinkTypeAndHopCount.device1 = device1; \ 1143 cb_data.args.hipExtGetLinkTypeAndHopCount.device2 = device2; \ 1144 cb_data.args.hipExtGetLinkTypeAndHopCount.linktype = linktype; \ 1145 cb_data.args.hipExtGetLinkTypeAndHopCount.hopcount = hopcount; \ 1148 #define INIT_hipMemcpyDtoD_CB_ARGS_DATA(cb_data) { \ 1149 cb_data.args.hipMemcpyDtoD.dst = dst; \ 1150 cb_data.args.hipMemcpyDtoD.src = src; \ 1151 cb_data.args.hipMemcpyDtoD.sizeBytes = sizeBytes; \ 1154 #define INIT_hipHostFree_CB_ARGS_DATA(cb_data) { \ 1155 cb_data.args.hipHostFree.ptr = ptr; \ 1158 #define INIT_hipMemcpy2DToArray_CB_ARGS_DATA(cb_data) { \ 1159 cb_data.args.hipMemcpy2DToArray.dst = dst; \ 1160 cb_data.args.hipMemcpy2DToArray.wOffset = wOffset; \ 1161 cb_data.args.hipMemcpy2DToArray.hOffset = hOffset; \ 1162 cb_data.args.hipMemcpy2DToArray.src = src; \ 1163 cb_data.args.hipMemcpy2DToArray.spitch = spitch; \ 1164 cb_data.args.hipMemcpy2DToArray.width = width; \ 1165 cb_data.args.hipMemcpy2DToArray.height = height; \ 1166 cb_data.args.hipMemcpy2DToArray.kind = kind; \ 1169 #define INIT_hipCtxGetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1170 cb_data.args.hipCtxGetCacheConfig.cacheConfig = cacheConfig; \ 1173 #define INIT_hipStreamWaitEvent_CB_ARGS_DATA(cb_data) { \ 1174 cb_data.args.hipStreamWaitEvent.stream = stream; \ 1175 cb_data.args.hipStreamWaitEvent.event = event; \ 1176 cb_data.args.hipStreamWaitEvent.flags = flags; \ 1179 #define INIT_hipDeviceGetStreamPriorityRange_CB_ARGS_DATA(cb_data) { \ 1180 cb_data.args.hipDeviceGetStreamPriorityRange.leastPriority = leastPriority; \ 1181 cb_data.args.hipDeviceGetStreamPriorityRange.greatestPriority = greatestPriority; \ 1184 #define INIT_hipModuleLoad_CB_ARGS_DATA(cb_data) { \ 1185 cb_data.args.hipModuleLoad.module = module; \ 1186 cb_data.args.hipModuleLoad.fname = fname; \ 1189 #define INIT_hipDevicePrimaryCtxSetFlags_CB_ARGS_DATA(cb_data) { \ 1190 cb_data.args.hipDevicePrimaryCtxSetFlags.dev = dev; \ 1191 cb_data.args.hipDevicePrimaryCtxSetFlags.flags = flags; \ 1194 #define INIT_hipLaunchCooperativeKernel_CB_ARGS_DATA(cb_data) { \ 1195 cb_data.args.hipLaunchCooperativeKernel.f = f; \ 1196 cb_data.args.hipLaunchCooperativeKernel.gridDim = gridDim; \ 1197 cb_data.args.hipLaunchCooperativeKernel.blockDimX = blockDimX; \ 1198 cb_data.args.hipLaunchCooperativeKernel.kernelParams = kernelParams; \ 1199 cb_data.args.hipLaunchCooperativeKernel.sharedMemBytes = sharedMemBytes; \ 1200 cb_data.args.hipLaunchCooperativeKernel.stream = stream; \ 1203 #define INIT_hipLaunchCooperativeKernelMultiDevice_CB_ARGS_DATA(cb_data) { \ 1206 #define INIT_hipMemcpyAsync_CB_ARGS_DATA(cb_data) { \ 1207 cb_data.args.hipMemcpyAsync.dst = dst; \ 1208 cb_data.args.hipMemcpyAsync.src = src; \ 1209 cb_data.args.hipMemcpyAsync.sizeBytes = sizeBytes; \ 1210 cb_data.args.hipMemcpyAsync.kind = kind; \ 1211 cb_data.args.hipMemcpyAsync.stream = stream; \ 1214 #define INIT_hipMalloc3DArray_CB_ARGS_DATA(cb_data) { \ 1215 cb_data.args.hipMalloc3DArray.array = array; \ 1216 cb_data.args.hipMalloc3DArray.desc = desc; \ 1217 cb_data.args.hipMalloc3DArray.extent = extent; \ 1218 cb_data.args.hipMalloc3DArray.flags = flags; \ 1221 #define INIT_hipStreamCreate_CB_ARGS_DATA(cb_data) { \ 1222 cb_data.args.hipStreamCreate.stream = stream; \ 1225 #define INIT_hipCtxGetCurrent_CB_ARGS_DATA(cb_data) { \ 1226 cb_data.args.hipCtxGetCurrent.ctx = ctx; \ 1229 #define INIT_hipDevicePrimaryCtxGetState_CB_ARGS_DATA(cb_data) { \ 1230 cb_data.args.hipDevicePrimaryCtxGetState.dev = dev; \ 1231 cb_data.args.hipDevicePrimaryCtxGetState.flags = flags; \ 1232 cb_data.args.hipDevicePrimaryCtxGetState.active = active; \ 1235 #define INIT_hipEventQuery_CB_ARGS_DATA(cb_data) { \ 1236 cb_data.args.hipEventQuery.event = event; \ 1239 #define INIT_hipEventCreate_CB_ARGS_DATA(cb_data) { \ 1240 cb_data.args.hipEventCreate.event = event; \ 1243 #define INIT_hipMemGetAddressRange_CB_ARGS_DATA(cb_data) { \ 1244 cb_data.args.hipMemGetAddressRange.pbase = pbase; \ 1245 cb_data.args.hipMemGetAddressRange.psize = psize; \ 1246 cb_data.args.hipMemGetAddressRange.dptr = dptr; \ 1249 #define INIT_hipMemcpyFromSymbol_CB_ARGS_DATA(cb_data) { \ 1252 #define INIT_hipArrayCreate_CB_ARGS_DATA(cb_data) { \ 1253 cb_data.args.hipArrayCreate.pHandle = array; \ 1254 cb_data.args.hipArrayCreate.pAllocateArray = pAllocateArray; \ 1257 #define INIT_hipStreamGetFlags_CB_ARGS_DATA(cb_data) { \ 1258 cb_data.args.hipStreamGetFlags.stream = stream; \ 1259 cb_data.args.hipStreamGetFlags.flags = flags; \ 1262 #define INIT_hipMallocArray_CB_ARGS_DATA(cb_data) { \ 1263 cb_data.args.hipMallocArray.array = array; \ 1264 cb_data.args.hipMallocArray.desc = desc; \ 1265 cb_data.args.hipMallocArray.width = width; \ 1266 cb_data.args.hipMallocArray.height = height; \ 1267 cb_data.args.hipMallocArray.flags = flags; \ 1270 #define INIT_hipCtxGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1271 cb_data.args.hipCtxGetSharedMemConfig.pConfig = pConfig; \ 1274 #define INIT_hipMemPtrGetInfo_CB_ARGS_DATA(cb_data) { \ 1275 cb_data.args.hipMemPtrGetInfo.ptr = ptr; \ 1276 cb_data.args.hipMemPtrGetInfo.size = size; \ 1279 #define INIT_hipFuncGetAttribute_CB_ARGS_DATA(cb_data) { \ 1280 cb_data.args.hipFuncGetAttribute.value = value; \ 1281 cb_data.args.hipFuncGetAttribute.attrib = attrib; \ 1282 cb_data.args.hipFuncGetAttribute.hfunc = hfunc; \ 1285 #define INIT_hipCtxGetFlags_CB_ARGS_DATA(cb_data) { \ 1286 cb_data.args.hipCtxGetFlags.flags = flags; \ 1289 #define INIT_hipStreamDestroy_CB_ARGS_DATA(cb_data) { \ 1290 cb_data.args.hipStreamDestroy.stream = stream; \ 1293 #define INIT_hipMemset3DAsync_CB_ARGS_DATA(cb_data) { \ 1294 cb_data.args.hipMemset3DAsync.pitchedDevPtr = pitchedDevPtr; \ 1295 cb_data.args.hipMemset3DAsync.value = value; \ 1296 cb_data.args.hipMemset3DAsync.extent = extent; \ 1297 cb_data.args.hipMemset3DAsync.stream = stream; \ 1300 #define INIT_hipMemcpy3D_CB_ARGS_DATA(cb_data) { \ 1301 cb_data.args.hipMemcpy3D.p = p; \ 1304 #define INIT_hipInit_CB_ARGS_DATA(cb_data) { \ 1305 cb_data.args.hipInit.flags = flags; \ 1308 #define INIT_hipMemcpyAtoH_CB_ARGS_DATA(cb_data) { \ 1309 cb_data.args.hipMemcpyAtoH.dst = dst; \ 1310 cb_data.args.hipMemcpyAtoH.srcArray = srcArray; \ 1311 cb_data.args.hipMemcpyAtoH.srcOffset = srcOffset; \ 1312 cb_data.args.hipMemcpyAtoH.count = count; \ 1315 #define INIT_hipStreamGetPriority_CB_ARGS_DATA(cb_data) { \ 1316 cb_data.args.hipStreamGetPriority.stream = stream; \ 1317 cb_data.args.hipStreamGetPriority.priority = priority; \ 1320 #define INIT_hipMemset2D_CB_ARGS_DATA(cb_data) { \ 1321 cb_data.args.hipMemset2D.dst = dst; \ 1322 cb_data.args.hipMemset2D.pitch = pitch; \ 1323 cb_data.args.hipMemset2D.value = value; \ 1324 cb_data.args.hipMemset2D.width = width; \ 1325 cb_data.args.hipMemset2D.height = height; \ 1328 #define INIT_hipMemset2DAsync_CB_ARGS_DATA(cb_data) { \ 1329 cb_data.args.hipMemset2DAsync.dst = dst; \ 1330 cb_data.args.hipMemset2DAsync.pitch = pitch; \ 1331 cb_data.args.hipMemset2DAsync.value = value; \ 1332 cb_data.args.hipMemset2DAsync.width = width; \ 1333 cb_data.args.hipMemset2DAsync.height = height; \ 1334 cb_data.args.hipMemset2DAsync.stream = stream; \ 1337 #define INIT_hipDeviceCanAccessPeer_CB_ARGS_DATA(cb_data) { \ 1338 cb_data.args.hipDeviceCanAccessPeer.canAccessPeer = canAccessPeer; \ 1339 cb_data.args.hipDeviceCanAccessPeer.deviceId = deviceId; \ 1340 cb_data.args.hipDeviceCanAccessPeer.peerDeviceId = peerDeviceId; \ 1343 #define INIT_hipDeviceEnablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1344 cb_data.args.hipDeviceEnablePeerAccess.peerDeviceId = peerDeviceId; \ 1345 cb_data.args.hipDeviceEnablePeerAccess.flags = flags; \ 1348 #define INIT_hipLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1349 cb_data.args.hipLaunchKernel.function_address = func_addr; \ 1350 cb_data.args.hipLaunchKernel.numBlocks = numBlocks; \ 1351 cb_data.args.hipLaunchKernel.dimBlocks = dimBlocks; \ 1352 cb_data.args.hipLaunchKernel.args = args; \ 1353 cb_data.args.hipLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1354 cb_data.args.hipLaunchKernel.stream = stream; \ 1357 #define INIT_hipModuleUnload_CB_ARGS_DATA(cb_data) { \ 1358 cb_data.args.hipModuleUnload.module = hmod; \ 1361 #define INIT_hipHostUnregister_CB_ARGS_DATA(cb_data) { \ 1362 cb_data.args.hipHostUnregister.hostPtr = hostPtr; \ 1365 #define INIT_hipProfilerStop_CB_ARGS_DATA(cb_data) { \ 1368 #define INIT_hipLaunchByPtr_CB_ARGS_DATA(cb_data) { \ 1369 cb_data.args.hipLaunchByPtr.func = hostFunction; \ 1372 #define INIT_hipStreamSynchronize_CB_ARGS_DATA(cb_data) { \ 1373 cb_data.args.hipStreamSynchronize.stream = stream; \ 1376 #define INIT_hipDeviceSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1377 cb_data.args.hipDeviceSetCacheConfig.cacheConfig = cacheConfig; \ 1380 #define INIT_hipGetErrorName_CB_ARGS_DATA(cb_data) { \ 1381 cb_data.args.hipGetErrorName.hip_error = hip_error; \ 1384 #define INIT_hipMemcpyHtoD_CB_ARGS_DATA(cb_data) { \ 1385 cb_data.args.hipMemcpyHtoD.dst = dst; \ 1386 cb_data.args.hipMemcpyHtoD.src = src; \ 1387 cb_data.args.hipMemcpyHtoD.sizeBytes = sizeBytes; \ 1390 #define INIT_hipModuleGetGlobal_CB_ARGS_DATA(cb_data) { \ 1391 cb_data.args.hipModuleGetGlobal.dptr = dptr; \ 1392 cb_data.args.hipModuleGetGlobal.bytes = bytes; \ 1393 cb_data.args.hipModuleGetGlobal.hmod = hmod; \ 1394 cb_data.args.hipModuleGetGlobal.name = name; \ 1397 #define INIT_hipMemcpyHtoA_CB_ARGS_DATA(cb_data) { \ 1398 cb_data.args.hipMemcpyHtoA.dstArray = dstArray; \ 1399 cb_data.args.hipMemcpyHtoA.dstOffset = dstOffset; \ 1400 cb_data.args.hipMemcpyHtoA.srcHost = srcHost; \ 1401 cb_data.args.hipMemcpyHtoA.count = count; \ 1404 #define INIT_hipCtxCreate_CB_ARGS_DATA(cb_data) { \ 1405 cb_data.args.hipCtxCreate.ctx = ctx; \ 1406 cb_data.args.hipCtxCreate.flags = flags; \ 1407 cb_data.args.hipCtxCreate.device = device; \ 1410 #define INIT_hipMemcpy2D_CB_ARGS_DATA(cb_data) { \ 1411 cb_data.args.hipMemcpy2D.dst = dst; \ 1412 cb_data.args.hipMemcpy2D.dpitch = dpitch; \ 1413 cb_data.args.hipMemcpy2D.src = src; \ 1414 cb_data.args.hipMemcpy2D.spitch = spitch; \ 1415 cb_data.args.hipMemcpy2D.width = width; \ 1416 cb_data.args.hipMemcpy2D.height = height; \ 1417 cb_data.args.hipMemcpy2D.kind = kind; \ 1420 #define INIT_hipIpcCloseMemHandle_CB_ARGS_DATA(cb_data) { \ 1421 cb_data.args.hipIpcCloseMemHandle.devPtr = devPtr; \ 1424 #define INIT_hipChooseDevice_CB_ARGS_DATA(cb_data) { \ 1425 cb_data.args.hipChooseDevice.device = device; \ 1426 cb_data.args.hipChooseDevice.prop = prop; \ 1429 #define INIT_hipDeviceSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1430 cb_data.args.hipDeviceSetSharedMemConfig.config = config; \ 1433 #define INIT_hipDeviceComputeCapability_CB_ARGS_DATA(cb_data) { \ 1434 cb_data.args.hipDeviceComputeCapability.major = major; \ 1435 cb_data.args.hipDeviceComputeCapability.minor = minor; \ 1436 cb_data.args.hipDeviceComputeCapability.device = device; \ 1439 #define INIT_hipDeviceGet_CB_ARGS_DATA(cb_data) { \ 1440 cb_data.args.hipDeviceGet.device = device; \ 1441 cb_data.args.hipDeviceGet.ordinal = deviceId; \ 1444 #define INIT_hipProfilerStart_CB_ARGS_DATA(cb_data) { \ 1447 #define INIT_hipCtxSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1448 cb_data.args.hipCtxSetCacheConfig.cacheConfig = cacheConfig; \ 1451 #define INIT_hipFuncSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1452 cb_data.args.hipFuncSetCacheConfig.func = func; \ 1453 cb_data.args.hipFuncSetCacheConfig.config = cacheConfig; \ 1456 #define INIT_hipMemcpyPeerAsync_CB_ARGS_DATA(cb_data) { \ 1457 cb_data.args.hipMemcpyPeerAsync.dst = dst; \ 1458 cb_data.args.hipMemcpyPeerAsync.dstDeviceId = dstDevice; \ 1459 cb_data.args.hipMemcpyPeerAsync.src = src; \ 1460 cb_data.args.hipMemcpyPeerAsync.srcDevice = srcDevice; \ 1461 cb_data.args.hipMemcpyPeerAsync.sizeBytes = sizeBytes; \ 1462 cb_data.args.hipMemcpyPeerAsync.stream = stream; \ 1465 #define INIT_hipEventElapsedTime_CB_ARGS_DATA(cb_data) { \ 1466 cb_data.args.hipEventElapsedTime.ms = ms; \ 1467 cb_data.args.hipEventElapsedTime.start = start; \ 1468 cb_data.args.hipEventElapsedTime.stop = stop; \ 1471 #define INIT_hipDevicePrimaryCtxReset_CB_ARGS_DATA(cb_data) { \ 1472 cb_data.args.hipDevicePrimaryCtxReset.dev = dev; \ 1475 #define INIT_hipMemcpy3DAsync_CB_ARGS_DATA(cb_data) { \ 1476 cb_data.args.hipMemcpy3DAsync.p = p; \ 1477 cb_data.args.hipMemcpy3DAsync.stream = stream; \ 1480 #define INIT_hipEventDestroy_CB_ARGS_DATA(cb_data) { \ 1481 cb_data.args.hipEventDestroy.event = event; \ 1484 #define INIT_hipCtxPopCurrent_CB_ARGS_DATA(cb_data) { \ 1485 cb_data.args.hipCtxPopCurrent.ctx = ctx; \ 1488 #define INIT_hipGetSymbolAddress_CB_ARGS_DATA(cb_data) { \ 1491 #define INIT_hipHostGetFlags_CB_ARGS_DATA(cb_data) { \ 1492 cb_data.args.hipHostGetFlags.flagsPtr = flagsPtr; \ 1493 cb_data.args.hipHostGetFlags.hostPtr = hostPtr; \ 1496 #define INIT_hipHostMalloc_CB_ARGS_DATA(cb_data) { \ 1497 cb_data.args.hipHostMalloc.ptr = ptr; \ 1498 cb_data.args.hipHostMalloc.size = sizeBytes; \ 1499 cb_data.args.hipHostMalloc.flags = flags; \ 1502 #define INIT_hipDriverGetVersion_CB_ARGS_DATA(cb_data) { \ 1503 cb_data.args.hipDriverGetVersion.driverVersion = driverVersion; \ 1506 #define INIT_hipMemGetInfo_CB_ARGS_DATA(cb_data) { \ 1507 cb_data.args.hipMemGetInfo.free = free; \ 1508 cb_data.args.hipMemGetInfo.total = total; \ 1511 #define INIT_hipDeviceReset_CB_ARGS_DATA(cb_data) { \ 1514 #define INIT_hipMemset_CB_ARGS_DATA(cb_data) { \ 1515 cb_data.args.hipMemset.dst = dst; \ 1516 cb_data.args.hipMemset.value = value; \ 1517 cb_data.args.hipMemset.sizeBytes = sizeBytes; \ 1520 #define INIT_hipMemsetD8_CB_ARGS_DATA(cb_data) { \ 1521 cb_data.args.hipMemsetD8.dest = dst; \ 1522 cb_data.args.hipMemsetD8.value = value; \ 1523 cb_data.args.hipMemsetD8.sizeBytes = sizeBytes; \ 1526 #define INIT_hipMemcpyParam2DAsync_CB_ARGS_DATA(cb_data) { \ 1527 cb_data.args.hipMemcpyParam2DAsync.pCopy = pCopy; \ 1528 cb_data.args.hipMemcpyParam2DAsync.stream = stream; \ 1531 #define INIT_hipHostRegister_CB_ARGS_DATA(cb_data) { \ 1532 cb_data.args.hipHostRegister.hostPtr = hostPtr; \ 1533 cb_data.args.hipHostRegister.sizeBytes = sizeBytes; \ 1534 cb_data.args.hipHostRegister.flags = flags; \ 1537 #define INIT_hipCtxSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1538 cb_data.args.hipCtxSetSharedMemConfig.config = config; \ 1541 #define INIT_hipArray3DCreate_CB_ARGS_DATA(cb_data) { \ 1542 cb_data.args.hipArray3DCreate.array = array; \ 1543 cb_data.args.hipArray3DCreate.pAllocateArray = pAllocateArray; \ 1546 #define INIT_hipIpcOpenMemHandle_CB_ARGS_DATA(cb_data) { \ 1547 cb_data.args.hipIpcOpenMemHandle.devPtr = devPtr; \ 1548 cb_data.args.hipIpcOpenMemHandle.handle = handle; \ 1549 cb_data.args.hipIpcOpenMemHandle.flags = flags; \ 1552 #define INIT_hipGetLastError_CB_ARGS_DATA(cb_data) { \ 1555 #define INIT_hipCtxDestroy_CB_ARGS_DATA(cb_data) { \ 1556 cb_data.args.hipCtxDestroy.ctx = ctx; \ 1559 #define INIT_hipDeviceGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1560 cb_data.args.hipDeviceGetSharedMemConfig.pConfig = pConfig; \ 1563 #define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_CB_ARGS_DATA(cb_data) { \ 1564 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks = numBlocks; \ 1565 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f = f; \ 1566 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize = blockSize; \ 1567 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynSharedMemPerBlk = dynSharedMemPerBlk; \ 1568 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags = flags; \ 1571 #define INIT_hipSetDeviceFlags_CB_ARGS_DATA(cb_data) { \ 1572 cb_data.args.hipSetDeviceFlags.flags = flags; \ 1575 #define INIT_hipHccModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1576 cb_data.args.hipHccModuleLaunchKernel.f = f; \ 1577 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeX = globalWorkSizeX; \ 1578 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeY = globalWorkSizeY; \ 1579 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeZ = globalWorkSizeZ; \ 1580 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeX = localWorkSizeX; \ 1581 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeY = localWorkSizeY; \ 1582 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeZ = localWorkSizeZ; \ 1583 cb_data.args.hipHccModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1584 cb_data.args.hipHccModuleLaunchKernel.hStream = hStream; \ 1585 cb_data.args.hipHccModuleLaunchKernel.kernelParams = kernelParams; \ 1586 cb_data.args.hipHccModuleLaunchKernel.extra = extra; \ 1587 cb_data.args.hipHccModuleLaunchKernel.startEvent = startEvent; \ 1588 cb_data.args.hipHccModuleLaunchKernel.stopEvent = stopEvent; \ 1591 #define INIT_hipFree_CB_ARGS_DATA(cb_data) { \ 1592 cb_data.args.hipFree.ptr = ptr; \ 1595 #define INIT_hipOccupancyMaxPotentialBlockSize_CB_ARGS_DATA(cb_data) { \ 1596 cb_data.args.hipOccupancyMaxPotentialBlockSize.gridSize = gridSize; \ 1597 cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSize = blockSize; \ 1598 cb_data.args.hipOccupancyMaxPotentialBlockSize.f = f; \ 1599 cb_data.args.hipOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk = dynSharedMemPerBlk; \ 1600 cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSizeLimit = blockSizeLimit; \ 1603 #define INIT_hipDeviceGetAttribute_CB_ARGS_DATA(cb_data) { \ 1604 cb_data.args.hipDeviceGetAttribute.pi = pi; \ 1605 cb_data.args.hipDeviceGetAttribute.attr = attr; \ 1606 cb_data.args.hipDeviceGetAttribute.deviceId = device; \ 1609 #define INIT_hipMemcpyDtoH_CB_ARGS_DATA(cb_data) { \ 1610 cb_data.args.hipMemcpyDtoH.dst = dst; \ 1611 cb_data.args.hipMemcpyDtoH.src = src; \ 1612 cb_data.args.hipMemcpyDtoH.sizeBytes = sizeBytes; \ 1615 #define INIT_hipCtxDisablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1616 cb_data.args.hipCtxDisablePeerAccess.peerCtx = peerCtx; \ 1619 #define INIT_hipMallocManaged_CB_ARGS_DATA(cb_data) { \ 1620 cb_data.args.hipMallocManaged.devPtr = devPtr; \ 1621 cb_data.args.hipMallocManaged.size = size; \ 1622 cb_data.args.hipMallocManaged.flags = flags; \ 1625 #define INIT_hipDeviceGetByPCIBusId_CB_ARGS_DATA(cb_data) { \ 1626 cb_data.args.hipDeviceGetByPCIBusId.device = device; \ 1627 cb_data.args.hipDeviceGetByPCIBusId.pciBusId = pciBusId; \ 1630 #define INIT_hipIpcGetMemHandle_CB_ARGS_DATA(cb_data) { \ 1631 cb_data.args.hipIpcGetMemHandle.handle = handle; \ 1632 cb_data.args.hipIpcGetMemHandle.devPtr = devPtr; \ 1635 #define INIT_hipMemcpyHtoDAsync_CB_ARGS_DATA(cb_data) { \ 1636 cb_data.args.hipMemcpyHtoDAsync.dst = dst; \ 1637 cb_data.args.hipMemcpyHtoDAsync.src = src; \ 1638 cb_data.args.hipMemcpyHtoDAsync.sizeBytes = sizeBytes; \ 1639 cb_data.args.hipMemcpyHtoDAsync.stream = stream; \ 1642 #define INIT_hipCtxGetDevice_CB_ARGS_DATA(cb_data) { \ 1643 cb_data.args.hipCtxGetDevice.device = device; \ 1646 #define INIT_hipMemset3D_CB_ARGS_DATA(cb_data) { \ 1647 cb_data.args.hipMemset3D.pitchedDevPtr = pitchedDevPtr; \ 1648 cb_data.args.hipMemset3D.value = value; \ 1649 cb_data.args.hipMemset3D.extent = extent; \ 1652 #define INIT_hipModuleLoadData_CB_ARGS_DATA(cb_data) { \ 1653 cb_data.args.hipModuleLoadData.module = module; \ 1654 cb_data.args.hipModuleLoadData.image = image; \ 1657 #define INIT_hipDeviceTotalMem_CB_ARGS_DATA(cb_data) { \ 1658 cb_data.args.hipDeviceTotalMem.bytes = bytes; \ 1659 cb_data.args.hipDeviceTotalMem.device = device; \ 1662 #define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessor_CB_ARGS_DATA(cb_data) { \ 1663 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks = numBlocks; \ 1664 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.f = f; \ 1665 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.blockSize = blockSize; \ 1666 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.dynSharedMemPerBlk = dynSharedMemPerBlk; \ 1669 #define INIT_hipCtxSetCurrent_CB_ARGS_DATA(cb_data) { \ 1670 cb_data.args.hipCtxSetCurrent.ctx = ctx; \ 1673 #define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \ 1674 cb_data.args.hipGetErrorString.hipError = hip_error; \ 1677 #define INIT_hipDevicePrimaryCtxRetain_CB_ARGS_DATA(cb_data) { \ 1678 cb_data.args.hipDevicePrimaryCtxRetain.pctx = pctx; \ 1679 cb_data.args.hipDevicePrimaryCtxRetain.dev = dev; \ 1682 #define INIT_hipDeviceDisablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1683 cb_data.args.hipDeviceDisablePeerAccess.peerDeviceId = peerDeviceId; \ 1686 #define INIT_hipStreamCreateWithFlags_CB_ARGS_DATA(cb_data) { \ 1687 cb_data.args.hipStreamCreateWithFlags.stream = stream; \ 1688 cb_data.args.hipStreamCreateWithFlags.flags = flags; \ 1691 #define INIT_hipMemcpyFromArray_CB_ARGS_DATA(cb_data) { \ 1692 cb_data.args.hipMemcpyFromArray.dst = dst; \ 1693 cb_data.args.hipMemcpyFromArray.srcArray = srcArray; \ 1694 cb_data.args.hipMemcpyFromArray.wOffset = wOffset; \ 1695 cb_data.args.hipMemcpyFromArray.hOffset = hOffset; \ 1696 cb_data.args.hipMemcpyFromArray.count = count; \ 1697 cb_data.args.hipMemcpyFromArray.kind = kind; \ 1700 #define INIT_hipMemcpy2DAsync_CB_ARGS_DATA(cb_data) { \ 1701 cb_data.args.hipMemcpy2DAsync.dst = dst; \ 1702 cb_data.args.hipMemcpy2DAsync.dpitch = dpitch; \ 1703 cb_data.args.hipMemcpy2DAsync.src = src; \ 1704 cb_data.args.hipMemcpy2DAsync.spitch = spitch; \ 1705 cb_data.args.hipMemcpy2DAsync.width = width; \ 1706 cb_data.args.hipMemcpy2DAsync.height = height; \ 1707 cb_data.args.hipMemcpy2DAsync.kind = kind; \ 1708 cb_data.args.hipMemcpy2DAsync.stream = stream; \ 1711 #define INIT_hipFuncGetAttributes_CB_ARGS_DATA(cb_data) { \ 1712 cb_data.args.hipFuncGetAttributes.attr = attr; \ 1713 cb_data.args.hipFuncGetAttributes.func = func; \ 1716 #define INIT_hipGetSymbolSize_CB_ARGS_DATA(cb_data) { \ 1719 #define INIT_hipEventCreateWithFlags_CB_ARGS_DATA(cb_data) { \ 1720 cb_data.args.hipEventCreateWithFlags.event = event; \ 1721 cb_data.args.hipEventCreateWithFlags.flags = flags; \ 1724 #define INIT_hipStreamQuery_CB_ARGS_DATA(cb_data) { \ 1725 cb_data.args.hipStreamQuery.stream = stream; \ 1728 #define INIT_hipDeviceGetPCIBusId_CB_ARGS_DATA(cb_data) { \ 1729 cb_data.args.hipDeviceGetPCIBusId.pciBusId = pciBusId; \ 1730 cb_data.args.hipDeviceGetPCIBusId.len = len; \ 1731 cb_data.args.hipDeviceGetPCIBusId.device = device; \ 1734 #define INIT_hipMemcpy_CB_ARGS_DATA(cb_data) { \ 1735 cb_data.args.hipMemcpy.dst = dst; \ 1736 cb_data.args.hipMemcpy.src = src; \ 1737 cb_data.args.hipMemcpy.sizeBytes = sizeBytes; \ 1738 cb_data.args.hipMemcpy.kind = kind; \ 1741 #define INIT_hipPeekAtLastError_CB_ARGS_DATA(cb_data) { \ 1744 #define INIT_hipExtLaunchMultiKernelMultiDevice_CB_ARGS_DATA(cb_data) { \ 1745 cb_data.args.hipExtLaunchMultiKernelMultiDevice.launchParamsList = launchParamsList; \ 1746 cb_data.args.hipExtLaunchMultiKernelMultiDevice.numDevices = numDevices; \ 1747 cb_data.args.hipExtLaunchMultiKernelMultiDevice.flags = flags; \ 1750 #define INIT_hipStreamAddCallback_CB_ARGS_DATA(cb_data) { \ 1751 cb_data.args.hipStreamAddCallback.stream = stream; \ 1752 cb_data.args.hipStreamAddCallback.callback = callback; \ 1753 cb_data.args.hipStreamAddCallback.userData = userData; \ 1754 cb_data.args.hipStreamAddCallback.flags = flags; \ 1757 #define INIT_hipMemcpyToArray_CB_ARGS_DATA(cb_data) { \ 1758 cb_data.args.hipMemcpyToArray.dst = dst; \ 1759 cb_data.args.hipMemcpyToArray.wOffset = wOffset; \ 1760 cb_data.args.hipMemcpyToArray.hOffset = hOffset; \ 1761 cb_data.args.hipMemcpyToArray.src = src; \ 1762 cb_data.args.hipMemcpyToArray.count = count; \ 1763 cb_data.args.hipMemcpyToArray.kind = kind; \ 1766 #define INIT_hipMemsetD32_CB_ARGS_DATA(cb_data) { \ 1767 cb_data.args.hipMemsetD32.dest = dst; \ 1768 cb_data.args.hipMemsetD32.value = value; \ 1769 cb_data.args.hipMemsetD32.count = count; \ 1772 #define INIT_hipDeviceSynchronize_CB_ARGS_DATA(cb_data) { \ 1775 #define INIT_hipDeviceGetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1776 cb_data.args.hipDeviceGetCacheConfig.cacheConfig = cacheConfig; \ 1779 #define INIT_hipMalloc3D_CB_ARGS_DATA(cb_data) { \ 1780 cb_data.args.hipMalloc3D.pitchedDevPtr = pitchedDevPtr; \ 1781 cb_data.args.hipMalloc3D.extent = extent; \ 1784 #define INIT_hipPointerGetAttributes_CB_ARGS_DATA(cb_data) { \ 1785 cb_data.args.hipPointerGetAttributes.attributes = attributes; \ 1786 cb_data.args.hipPointerGetAttributes.ptr = ptr; \ 1789 #define INIT_hipMemsetAsync_CB_ARGS_DATA(cb_data) { \ 1790 cb_data.args.hipMemsetAsync.dst = dst; \ 1791 cb_data.args.hipMemsetAsync.value = value; \ 1792 cb_data.args.hipMemsetAsync.sizeBytes = sizeBytes; \ 1793 cb_data.args.hipMemsetAsync.stream = stream; \ 1796 #define INIT_hipMemcpyToSymbol_CB_ARGS_DATA(cb_data) { \ 1799 #define INIT_hipCtxPushCurrent_CB_ARGS_DATA(cb_data) { \ 1800 cb_data.args.hipCtxPushCurrent.ctx = ctx; \ 1803 #define INIT_hipMemcpyPeer_CB_ARGS_DATA(cb_data) { \ 1804 cb_data.args.hipMemcpyPeer.dst = dst; \ 1805 cb_data.args.hipMemcpyPeer.dstDeviceId = dstDevice; \ 1806 cb_data.args.hipMemcpyPeer.src = src; \ 1807 cb_data.args.hipMemcpyPeer.srcDeviceId = srcDevice; \ 1808 cb_data.args.hipMemcpyPeer.sizeBytes = sizeBytes; \ 1811 #define INIT_hipEventSynchronize_CB_ARGS_DATA(cb_data) { \ 1812 cb_data.args.hipEventSynchronize.event = event; \ 1815 #define INIT_hipMemcpyDtoDAsync_CB_ARGS_DATA(cb_data) { \ 1816 cb_data.args.hipMemcpyDtoDAsync.dst = dst; \ 1817 cb_data.args.hipMemcpyDtoDAsync.src = src; \ 1818 cb_data.args.hipMemcpyDtoDAsync.sizeBytes = sizeBytes; \ 1819 cb_data.args.hipMemcpyDtoDAsync.stream = stream; \ 1822 #define INIT_hipExtMallocWithFlags_CB_ARGS_DATA(cb_data) { \ 1823 cb_data.args.hipExtMallocWithFlags.ptr = ptr; \ 1824 cb_data.args.hipExtMallocWithFlags.sizeBytes = sizeBytes; \ 1825 cb_data.args.hipExtMallocWithFlags.flags = flags; \ 1828 #define INIT_hipCtxEnablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1829 cb_data.args.hipCtxEnablePeerAccess.peerCtx = peerCtx; \ 1830 cb_data.args.hipCtxEnablePeerAccess.flags = flags; \ 1833 #define INIT_hipMemcpyDtoHAsync_CB_ARGS_DATA(cb_data) { \ 1834 cb_data.args.hipMemcpyDtoHAsync.dst = dst; \ 1835 cb_data.args.hipMemcpyDtoHAsync.src = src; \ 1836 cb_data.args.hipMemcpyDtoHAsync.sizeBytes = sizeBytes; \ 1837 cb_data.args.hipMemcpyDtoHAsync.stream = stream; \ 1840 #define INIT_hipModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1841 cb_data.args.hipModuleLaunchKernel.f = f; \ 1842 cb_data.args.hipModuleLaunchKernel.gridDimX = gridDimX; \ 1843 cb_data.args.hipModuleLaunchKernel.gridDimY = gridDimY; \ 1844 cb_data.args.hipModuleLaunchKernel.gridDimZ = gridDimZ; \ 1845 cb_data.args.hipModuleLaunchKernel.blockDimX = blockDimX; \ 1846 cb_data.args.hipModuleLaunchKernel.blockDimY = blockDimY; \ 1847 cb_data.args.hipModuleLaunchKernel.blockDimZ = blockDimZ; \ 1848 cb_data.args.hipModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1849 cb_data.args.hipModuleLaunchKernel.stream = hStream; \ 1850 cb_data.args.hipModuleLaunchKernel.kernelParams = kernelParams; \ 1851 cb_data.args.hipModuleLaunchKernel.extra = extra; \ 1854 #define INIT_hipModuleGetTexRef_CB_ARGS_DATA(cb_data) { \ 1855 cb_data.args.hipModuleGetTexRef.texRef = texRef; \ 1856 cb_data.args.hipModuleGetTexRef.hmod = hmod; \ 1857 cb_data.args.hipModuleGetTexRef.name = name; \ 1860 #define INIT_hipDeviceGetLimit_CB_ARGS_DATA(cb_data) { \ 1861 cb_data.args.hipDeviceGetLimit.pValue = pValue; \ 1862 cb_data.args.hipDeviceGetLimit.limit = limit; \ 1865 #define INIT_hipModuleLoadDataEx_CB_ARGS_DATA(cb_data) { \ 1866 cb_data.args.hipModuleLoadDataEx.module = module; \ 1867 cb_data.args.hipModuleLoadDataEx.image = image; \ 1868 cb_data.args.hipModuleLoadDataEx.numOptions = numOptions; \ 1869 cb_data.args.hipModuleLoadDataEx.options = options; \ 1870 cb_data.args.hipModuleLoadDataEx.optionValues = optionValues; \ 1873 #define INIT_hipRuntimeGetVersion_CB_ARGS_DATA(cb_data) { \ 1874 cb_data.args.hipRuntimeGetVersion.runtimeVersion = runtimeVersion; \ 1877 #define INIT_hipGetDeviceProperties_CB_ARGS_DATA(cb_data) { \ 1878 cb_data.args.hipGetDeviceProperties.prop = props; \ 1879 cb_data.args.hipGetDeviceProperties.deviceId = device; \ 1882 #define INIT_hipFreeArray_CB_ARGS_DATA(cb_data) { \ 1883 cb_data.args.hipFreeArray.array = array; \ 1886 #define INIT_hipDevicePrimaryCtxRelease_CB_ARGS_DATA(cb_data) { \ 1887 cb_data.args.hipDevicePrimaryCtxRelease.dev = dev; \ 1890 #define INIT_hipHostGetDevicePointer_CB_ARGS_DATA(cb_data) { \ 1891 cb_data.args.hipHostGetDevicePointer.devPtr = devicePointer; \ 1892 cb_data.args.hipHostGetDevicePointer.hstPtr = hostPointer; \ 1893 cb_data.args.hipHostGetDevicePointer.flags = flags; \ 1896 #define INIT_hipMemcpyParam2D_CB_ARGS_DATA(cb_data) { \ 1897 cb_data.args.hipMemcpyParam2D.pCopy = pCopy; \ 1900 #define INIT_hipModuleGetFunction_CB_ARGS_DATA(cb_data) { \ 1901 cb_data.args.hipModuleGetFunction.function = hfunc; \ 1902 cb_data.args.hipModuleGetFunction.module = hmod; \ 1903 cb_data.args.hipModuleGetFunction.kname = name; \ 1906 #define INIT_hipMemsetD32Async_CB_ARGS_DATA(cb_data) { \ 1907 cb_data.args.hipMemsetD32Async.dst = dst; \ 1908 cb_data.args.hipMemsetD32Async.value = value; \ 1909 cb_data.args.hipMemsetD32Async.count = count; \ 1910 cb_data.args.hipMemsetD32Async.stream = stream; \ 1913 #define INIT_hipGetDevice_CB_ARGS_DATA(cb_data) { \ 1914 cb_data.args.hipGetDevice.deviceId = deviceId; \ 1917 #define INIT_hipGetDeviceCount_CB_ARGS_DATA(cb_data) { \ 1918 cb_data.args.hipGetDeviceCount.count = count; \ 1920 #define INIT_CB_ARGS_DATA(cb_id, cb_data) INIT_##cb_id##_CB_ARGS_DATA(cb_data) 1921 #endif // _HIP_PROF_STR_H Definition: hip_runtime_api.h:279
Definition: driver_types.h:240
Definition: hip_runtime_api.h:144
Definition: hip_module.cpp:107
Definition: hip_runtime_api.h:122
Definition: hip_hcc_internal.h:902
Definition: texture_types.h:74
Definition: driver_types.h:77
hipDeviceAttribute_t
Definition: hip_runtime_api.h:268
Definition: hip_runtime_api.h:270
void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
Definition: hip_runtime_api.h:844
Definition: driver_types.h:68
Definition: driver_types.h:253
Definition: driver_types.h:61
Definition: driver_types.h:233
hipFuncCache_t
Definition: hip_runtime_api.h:246
Definition: hip_runtime_api.h:83
hipSharedMemConfig
Definition: hip_runtime_api.h:257
Definition: hip_hcc_internal.h:722
Definition: hip_hcc_internal.h:544
Definition: driver_types.h:90
Definition: hip_runtime_api.h:107
Definition: hip_hcc_internal.h:391
Definition: hip_prof_str.h:384