2 #ifndef _HIP_PROF_STR_H 3 #define _HIP_PROF_STR_H 8 #define INIT_NONE_CB_ARGS_DATA(cb_data) {}; 9 #define INIT_hipModuleGetFunctionEx_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_hipBindTextureToArray_CB_ARGS_DATA(cb_data) {}; 14 #define INIT_hipTexRefSetFormat_CB_ARGS_DATA(cb_data) {}; 15 #define INIT_hipMemcpyHtoH_CB_ARGS_DATA(cb_data) {}; 16 #define INIT_hipHccGetAcceleratorView_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_hipBindTextureToMipmappedArray_CB_ARGS_DATA(cb_data) {}; 20 #define INIT_hipTexRefSetAddress2D_CB_ARGS_DATA(cb_data) {}; 21 #define INIT_hipGetTextureObjectResourceViewDesc_CB_ARGS_DATA(cb_data) {}; 22 #define INIT_hipUnbindTexture_CB_ARGS_DATA(cb_data) {}; 23 #define INIT_hipTexRefSetFilterMode_CB_ARGS_DATA(cb_data) {}; 24 #define INIT_hipCreateSurfaceObject_CB_ARGS_DATA(cb_data) {}; 25 #define INIT_hipGetChannelDesc_CB_ARGS_DATA(cb_data) {}; 26 #define INIT_hipGetTextureObjectResourceDesc_CB_ARGS_DATA(cb_data) {}; 27 #define INIT_hipExtModuleLaunchKernel_CB_ARGS_DATA(cb_data) {}; 28 #define INIT_hipGetTextureAlignmentOffset_CB_ARGS_DATA(cb_data) {}; 29 #define INIT_hipDestroySurfaceObject_CB_ARGS_DATA(cb_data) {}; 30 #define INIT_hipGetTextureReference_CB_ARGS_DATA(cb_data) {}; 31 #define INIT_hipTexRefSetAddressMode_CB_ARGS_DATA(cb_data) {}; 32 #define INIT_hipTexRefSetFlags_CB_ARGS_DATA(cb_data) {}; 33 #define INIT_hipBindTexture_CB_ARGS_DATA(cb_data) {}; 34 #define INIT_hipHccGetAccelerator_CB_ARGS_DATA(cb_data) {}; 35 #define INIT_hipGetTextureObjectTextureDesc_CB_ARGS_DATA(cb_data) {}; 39 HIP_API_ID_hipStreamCreateWithPriority = 0,
40 HIP_API_ID_hipMemcpyToSymbolAsync = 1,
41 HIP_API_ID_hipMallocPitch = 2,
42 HIP_API_ID_hipMalloc = 3,
43 HIP_API_ID_hipDeviceGetName = 4,
44 HIP_API_ID_hipEventRecord = 5,
45 HIP_API_ID_hipCtxSynchronize = 6,
46 HIP_API_ID_hipSetDevice = 7,
47 HIP_API_ID_hipCtxGetApiVersion = 8,
48 HIP_API_ID_hipSetupArgument = 9,
49 HIP_API_ID_hipMemcpyFromSymbolAsync = 10,
50 HIP_API_ID_hipExtGetLinkTypeAndHopCount = 11,
51 HIP_API_ID_hipMemcpyDtoD = 12,
52 HIP_API_ID_hipHostFree = 13,
53 HIP_API_ID_hipMemcpy2DToArray = 14,
54 HIP_API_ID_hipCtxGetCacheConfig = 15,
55 HIP_API_ID_hipStreamWaitEvent = 16,
56 HIP_API_ID_hipDeviceGetStreamPriorityRange = 17,
57 HIP_API_ID_hipModuleLoad = 18,
58 HIP_API_ID_hipDevicePrimaryCtxSetFlags = 19,
59 HIP_API_ID_hipMemcpyAsync = 20,
60 HIP_API_ID_hipMalloc3DArray = 21,
61 HIP_API_ID_hipStreamCreate = 22,
62 HIP_API_ID_hipCtxGetCurrent = 23,
63 HIP_API_ID_hipDevicePrimaryCtxGetState = 24,
64 HIP_API_ID_hipEventQuery = 25,
65 HIP_API_ID_hipEventCreate = 26,
66 HIP_API_ID_hipMemGetAddressRange = 27,
67 HIP_API_ID_hipMemcpyFromSymbol = 28,
68 HIP_API_ID_hipArrayCreate = 29,
69 HIP_API_ID_hipStreamGetFlags = 30,
70 HIP_API_ID_hipMallocArray = 31,
71 HIP_API_ID_hipCtxGetSharedMemConfig = 32,
72 HIP_API_ID_hipMemPtrGetInfo = 33,
73 HIP_API_ID_hipCtxGetFlags = 34,
74 HIP_API_ID_hipStreamDestroy = 35,
75 HIP_API_ID_hipMemset3DAsync = 36,
76 HIP_API_ID_hipMemcpy3D = 37,
77 HIP_API_ID_hipInit = 38,
78 HIP_API_ID_hipMemcpyAtoH = 39,
79 HIP_API_ID_hipStreamGetPriority = 40,
80 HIP_API_ID_hipMemset2D = 41,
81 HIP_API_ID_hipMemset2DAsync = 42,
82 HIP_API_ID_hipDeviceCanAccessPeer = 43,
83 HIP_API_ID_hipDeviceEnablePeerAccess = 44,
84 HIP_API_ID_hipModuleUnload = 45,
85 HIP_API_ID_hipHostUnregister = 46,
86 HIP_API_ID_hipProfilerStop = 47,
87 HIP_API_ID_hipLaunchByPtr = 48,
88 HIP_API_ID_hipStreamSynchronize = 49,
89 HIP_API_ID_hipDeviceSetCacheConfig = 50,
90 HIP_API_ID_hipGetErrorName = 51,
91 HIP_API_ID_hipMemcpyHtoD = 52,
92 HIP_API_ID_hipModuleGetGlobal = 53,
93 HIP_API_ID_hipMemcpyHtoA = 54,
94 HIP_API_ID_hipCtxCreate = 55,
95 HIP_API_ID_hipMemcpy2D = 56,
96 HIP_API_ID_hipIpcCloseMemHandle = 57,
97 HIP_API_ID_hipChooseDevice = 58,
98 HIP_API_ID_hipDeviceSetSharedMemConfig = 59,
99 HIP_API_ID_hipDeviceComputeCapability = 60,
100 HIP_API_ID_hipDeviceGet = 61,
101 HIP_API_ID_hipProfilerStart = 62,
102 HIP_API_ID_hipCtxSetCacheConfig = 63,
103 HIP_API_ID_hipFuncSetCacheConfig = 64,
104 HIP_API_ID_hipMemcpyPeerAsync = 65,
105 HIP_API_ID_hipEventElapsedTime = 66,
106 HIP_API_ID_hipDevicePrimaryCtxReset = 67,
107 HIP_API_ID_hipEventDestroy = 68,
108 HIP_API_ID_hipCtxPopCurrent = 69,
109 HIP_API_ID_hipGetSymbolAddress = 70,
110 HIP_API_ID_hipHostGetFlags = 71,
111 HIP_API_ID_hipHostMalloc = 72,
112 HIP_API_ID_hipDriverGetVersion = 73,
113 HIP_API_ID_hipMemGetInfo = 74,
114 HIP_API_ID_hipDeviceReset = 75,
115 HIP_API_ID_hipMemset = 76,
116 HIP_API_ID_hipMemsetD8 = 77,
117 HIP_API_ID_hipHostRegister = 78,
118 HIP_API_ID_hipCtxSetSharedMemConfig = 79,
119 HIP_API_ID_hipArray3DCreate = 80,
120 HIP_API_ID_hipIpcOpenMemHandle = 81,
121 HIP_API_ID_hipGetLastError = 82,
122 HIP_API_ID_hipCtxDestroy = 83,
123 HIP_API_ID_hipDeviceGetSharedMemConfig = 84,
124 HIP_API_ID_hipSetDeviceFlags = 85,
125 HIP_API_ID_hipHccModuleLaunchKernel = 86,
126 HIP_API_ID_hipFree = 87,
127 HIP_API_ID_hipDeviceGetAttribute = 88,
128 HIP_API_ID_hipMemcpyDtoH = 89,
129 HIP_API_ID_hipCtxDisablePeerAccess = 90,
130 HIP_API_ID_hipMallocManaged = 91,
131 HIP_API_ID_hipDeviceGetByPCIBusId = 92,
132 HIP_API_ID_hipIpcGetMemHandle = 93,
133 HIP_API_ID_hipMemcpyHtoDAsync = 94,
134 HIP_API_ID_hipCtxGetDevice = 95,
135 HIP_API_ID_hipMemset3D = 96,
136 HIP_API_ID_hipModuleLoadData = 97,
137 HIP_API_ID_hipDeviceTotalMem = 98,
138 HIP_API_ID_hipCtxSetCurrent = 99,
139 HIP_API_ID_hipGetErrorString = 100,
140 HIP_API_ID_hipDevicePrimaryCtxRetain = 101,
141 HIP_API_ID_hipDeviceDisablePeerAccess = 102,
142 HIP_API_ID_hipStreamCreateWithFlags = 103,
143 HIP_API_ID_hipMemcpyFromArray = 104,
144 HIP_API_ID_hipMemcpy2DAsync = 105,
145 HIP_API_ID_hipGetSymbolSize = 106,
146 HIP_API_ID_hipEventCreateWithFlags = 107,
147 HIP_API_ID_hipStreamQuery = 108,
148 HIP_API_ID_hipDeviceGetPCIBusId = 109,
149 HIP_API_ID_hipMemcpy = 110,
150 HIP_API_ID_hipPeekAtLastError = 111,
151 HIP_API_ID_hipStreamAddCallback = 112,
152 HIP_API_ID_hipMemcpyToArray = 113,
153 HIP_API_ID_hipMemsetD32 = 114,
154 HIP_API_ID_hipDeviceSynchronize = 115,
155 HIP_API_ID_hipDeviceGetCacheConfig = 116,
156 HIP_API_ID_hipMalloc3D = 117,
157 HIP_API_ID_hipPointerGetAttributes = 118,
158 HIP_API_ID_hipMemsetAsync = 119,
159 HIP_API_ID_hipMemcpyToSymbol = 120,
160 HIP_API_ID_hipCtxPushCurrent = 121,
161 HIP_API_ID_hipMemcpyPeer = 122,
162 HIP_API_ID_hipEventSynchronize = 123,
163 HIP_API_ID_hipMemcpyDtoDAsync = 124,
164 HIP_API_ID_hipExtMallocWithFlags = 125,
165 HIP_API_ID_hipCtxEnablePeerAccess = 126,
166 HIP_API_ID_hipMemcpyDtoHAsync = 127,
167 HIP_API_ID_hipModuleLaunchKernel = 128,
168 HIP_API_ID_hipModuleGetTexRef = 129,
169 HIP_API_ID_hipDeviceGetLimit = 130,
170 HIP_API_ID_hipModuleLoadDataEx = 131,
171 HIP_API_ID_hipRuntimeGetVersion = 132,
172 HIP_API_ID_hipGetDeviceProperties = 133,
173 HIP_API_ID_hipFreeArray = 134,
174 HIP_API_ID_hipDevicePrimaryCtxRelease = 135,
175 HIP_API_ID_hipHostGetDevicePointer = 136,
176 HIP_API_ID_hipMemcpyParam2D = 137,
177 HIP_API_ID_hipModuleGetFunction = 138,
178 HIP_API_ID_hipMemsetD32Async = 139,
179 HIP_API_ID_hipGetDevice = 140,
180 HIP_API_ID_hipGetDeviceCount = 141,
181 HIP_API_ID_NUMBER = 142,
182 HIP_API_ID_ANY = 143,
184 HIP_API_ID_NONE = HIP_API_ID_NUMBER,
185 HIP_API_ID_hipModuleGetFunctionEx = HIP_API_ID_NUMBER,
186 HIP_API_ID_hipTexRefSetAddress = HIP_API_ID_NUMBER,
187 HIP_API_ID_hipBindTexture2D = HIP_API_ID_NUMBER,
188 HIP_API_ID_hipCreateTextureObject = HIP_API_ID_NUMBER,
189 HIP_API_ID_hipBindTextureToArray = HIP_API_ID_NUMBER,
190 HIP_API_ID_hipTexRefSetFormat = HIP_API_ID_NUMBER,
191 HIP_API_ID_hipMemcpyHtoH = HIP_API_ID_NUMBER,
192 HIP_API_ID_hipHccGetAcceleratorView = HIP_API_ID_NUMBER,
193 HIP_API_ID_hipDestroyTextureObject = HIP_API_ID_NUMBER,
194 HIP_API_ID_hipTexRefSetArray = HIP_API_ID_NUMBER,
195 HIP_API_ID_hipBindTextureToMipmappedArray = HIP_API_ID_NUMBER,
196 HIP_API_ID_hipTexRefSetAddress2D = HIP_API_ID_NUMBER,
197 HIP_API_ID_hipGetTextureObjectResourceViewDesc = HIP_API_ID_NUMBER,
198 HIP_API_ID_hipUnbindTexture = HIP_API_ID_NUMBER,
199 HIP_API_ID_hipTexRefSetFilterMode = HIP_API_ID_NUMBER,
200 HIP_API_ID_hipCreateSurfaceObject = HIP_API_ID_NUMBER,
201 HIP_API_ID_hipGetChannelDesc = HIP_API_ID_NUMBER,
202 HIP_API_ID_hipGetTextureObjectResourceDesc = HIP_API_ID_NUMBER,
203 HIP_API_ID_hipExtModuleLaunchKernel = HIP_API_ID_NUMBER,
204 HIP_API_ID_hipGetTextureAlignmentOffset = HIP_API_ID_NUMBER,
205 HIP_API_ID_hipDestroySurfaceObject = HIP_API_ID_NUMBER,
206 HIP_API_ID_hipGetTextureReference = HIP_API_ID_NUMBER,
207 HIP_API_ID_hipTexRefSetAddressMode = HIP_API_ID_NUMBER,
208 HIP_API_ID_hipTexRefSetFlags = HIP_API_ID_NUMBER,
209 HIP_API_ID_hipBindTexture = HIP_API_ID_NUMBER,
210 HIP_API_ID_hipHccGetAccelerator = HIP_API_ID_NUMBER,
211 HIP_API_ID_hipGetTextureObjectTextureDesc = HIP_API_ID_NUMBER,
215 static const char* hip_api_name(
const uint32_t&
id) {
217 case HIP_API_ID_hipStreamCreateWithPriority:
return "hipStreamCreateWithPriority";
218 case HIP_API_ID_hipMemcpyToSymbolAsync:
return "hipMemcpyToSymbolAsync";
219 case HIP_API_ID_hipMallocPitch:
return "hipMallocPitch";
220 case HIP_API_ID_hipMalloc:
return "hipMalloc";
221 case HIP_API_ID_hipDeviceGetName:
return "hipDeviceGetName";
222 case HIP_API_ID_hipEventRecord:
return "hipEventRecord";
223 case HIP_API_ID_hipCtxSynchronize:
return "hipCtxSynchronize";
224 case HIP_API_ID_hipSetDevice:
return "hipSetDevice";
225 case HIP_API_ID_hipCtxGetApiVersion:
return "hipCtxGetApiVersion";
226 case HIP_API_ID_hipSetupArgument:
return "hipSetupArgument";
227 case HIP_API_ID_hipMemcpyFromSymbolAsync:
return "hipMemcpyFromSymbolAsync";
228 case HIP_API_ID_hipExtGetLinkTypeAndHopCount:
return "hipExtGetLinkTypeAndHopCount";
229 case HIP_API_ID_hipMemcpyDtoD:
return "hipMemcpyDtoD";
230 case HIP_API_ID_hipHostFree:
return "hipHostFree";
231 case HIP_API_ID_hipMemcpy2DToArray:
return "hipMemcpy2DToArray";
232 case HIP_API_ID_hipCtxGetCacheConfig:
return "hipCtxGetCacheConfig";
233 case HIP_API_ID_hipStreamWaitEvent:
return "hipStreamWaitEvent";
234 case HIP_API_ID_hipDeviceGetStreamPriorityRange:
return "hipDeviceGetStreamPriorityRange";
235 case HIP_API_ID_hipModuleLoad:
return "hipModuleLoad";
236 case HIP_API_ID_hipDevicePrimaryCtxSetFlags:
return "hipDevicePrimaryCtxSetFlags";
237 case HIP_API_ID_hipMemcpyAsync:
return "hipMemcpyAsync";
238 case HIP_API_ID_hipMalloc3DArray:
return "hipMalloc3DArray";
239 case HIP_API_ID_hipStreamCreate:
return "hipStreamCreate";
240 case HIP_API_ID_hipCtxGetCurrent:
return "hipCtxGetCurrent";
241 case HIP_API_ID_hipDevicePrimaryCtxGetState:
return "hipDevicePrimaryCtxGetState";
242 case HIP_API_ID_hipEventQuery:
return "hipEventQuery";
243 case HIP_API_ID_hipEventCreate:
return "hipEventCreate";
244 case HIP_API_ID_hipMemGetAddressRange:
return "hipMemGetAddressRange";
245 case HIP_API_ID_hipMemcpyFromSymbol:
return "hipMemcpyFromSymbol";
246 case HIP_API_ID_hipArrayCreate:
return "hipArrayCreate";
247 case HIP_API_ID_hipStreamGetFlags:
return "hipStreamGetFlags";
248 case HIP_API_ID_hipMallocArray:
return "hipMallocArray";
249 case HIP_API_ID_hipCtxGetSharedMemConfig:
return "hipCtxGetSharedMemConfig";
250 case HIP_API_ID_hipMemPtrGetInfo:
return "hipMemPtrGetInfo";
251 case HIP_API_ID_hipCtxGetFlags:
return "hipCtxGetFlags";
252 case HIP_API_ID_hipStreamDestroy:
return "hipStreamDestroy";
253 case HIP_API_ID_hipMemset3DAsync:
return "hipMemset3DAsync";
254 case HIP_API_ID_hipMemcpy3D:
return "hipMemcpy3D";
255 case HIP_API_ID_hipInit:
return "hipInit";
256 case HIP_API_ID_hipMemcpyAtoH:
return "hipMemcpyAtoH";
257 case HIP_API_ID_hipStreamGetPriority:
return "hipStreamGetPriority";
258 case HIP_API_ID_hipMemset2D:
return "hipMemset2D";
259 case HIP_API_ID_hipMemset2DAsync:
return "hipMemset2DAsync";
260 case HIP_API_ID_hipDeviceCanAccessPeer:
return "hipDeviceCanAccessPeer";
261 case HIP_API_ID_hipDeviceEnablePeerAccess:
return "hipDeviceEnablePeerAccess";
262 case HIP_API_ID_hipModuleUnload:
return "hipModuleUnload";
263 case HIP_API_ID_hipHostUnregister:
return "hipHostUnregister";
264 case HIP_API_ID_hipProfilerStop:
return "hipProfilerStop";
265 case HIP_API_ID_hipLaunchByPtr:
return "hipLaunchByPtr";
266 case HIP_API_ID_hipStreamSynchronize:
return "hipStreamSynchronize";
267 case HIP_API_ID_hipDeviceSetCacheConfig:
return "hipDeviceSetCacheConfig";
268 case HIP_API_ID_hipGetErrorName:
return "hipGetErrorName";
269 case HIP_API_ID_hipMemcpyHtoD:
return "hipMemcpyHtoD";
270 case HIP_API_ID_hipModuleGetGlobal:
return "hipModuleGetGlobal";
271 case HIP_API_ID_hipMemcpyHtoA:
return "hipMemcpyHtoA";
272 case HIP_API_ID_hipCtxCreate:
return "hipCtxCreate";
273 case HIP_API_ID_hipMemcpy2D:
return "hipMemcpy2D";
274 case HIP_API_ID_hipIpcCloseMemHandle:
return "hipIpcCloseMemHandle";
275 case HIP_API_ID_hipChooseDevice:
return "hipChooseDevice";
276 case HIP_API_ID_hipDeviceSetSharedMemConfig:
return "hipDeviceSetSharedMemConfig";
277 case HIP_API_ID_hipDeviceComputeCapability:
return "hipDeviceComputeCapability";
278 case HIP_API_ID_hipDeviceGet:
return "hipDeviceGet";
279 case HIP_API_ID_hipProfilerStart:
return "hipProfilerStart";
280 case HIP_API_ID_hipCtxSetCacheConfig:
return "hipCtxSetCacheConfig";
281 case HIP_API_ID_hipFuncSetCacheConfig:
return "hipFuncSetCacheConfig";
282 case HIP_API_ID_hipMemcpyPeerAsync:
return "hipMemcpyPeerAsync";
283 case HIP_API_ID_hipEventElapsedTime:
return "hipEventElapsedTime";
284 case HIP_API_ID_hipDevicePrimaryCtxReset:
return "hipDevicePrimaryCtxReset";
285 case HIP_API_ID_hipEventDestroy:
return "hipEventDestroy";
286 case HIP_API_ID_hipCtxPopCurrent:
return "hipCtxPopCurrent";
287 case HIP_API_ID_hipGetSymbolAddress:
return "hipGetSymbolAddress";
288 case HIP_API_ID_hipHostGetFlags:
return "hipHostGetFlags";
289 case HIP_API_ID_hipHostMalloc:
return "hipHostMalloc";
290 case HIP_API_ID_hipDriverGetVersion:
return "hipDriverGetVersion";
291 case HIP_API_ID_hipMemGetInfo:
return "hipMemGetInfo";
292 case HIP_API_ID_hipDeviceReset:
return "hipDeviceReset";
293 case HIP_API_ID_hipMemset:
return "hipMemset";
294 case HIP_API_ID_hipMemsetD8:
return "hipMemsetD8";
295 case HIP_API_ID_hipHostRegister:
return "hipHostRegister";
296 case HIP_API_ID_hipCtxSetSharedMemConfig:
return "hipCtxSetSharedMemConfig";
297 case HIP_API_ID_hipArray3DCreate:
return "hipArray3DCreate";
298 case HIP_API_ID_hipIpcOpenMemHandle:
return "hipIpcOpenMemHandle";
299 case HIP_API_ID_hipGetLastError:
return "hipGetLastError";
300 case HIP_API_ID_hipCtxDestroy:
return "hipCtxDestroy";
301 case HIP_API_ID_hipDeviceGetSharedMemConfig:
return "hipDeviceGetSharedMemConfig";
302 case HIP_API_ID_hipSetDeviceFlags:
return "hipSetDeviceFlags";
303 case HIP_API_ID_hipHccModuleLaunchKernel:
return "hipHccModuleLaunchKernel";
304 case HIP_API_ID_hipFree:
return "hipFree";
305 case HIP_API_ID_hipDeviceGetAttribute:
return "hipDeviceGetAttribute";
306 case HIP_API_ID_hipMemcpyDtoH:
return "hipMemcpyDtoH";
307 case HIP_API_ID_hipCtxDisablePeerAccess:
return "hipCtxDisablePeerAccess";
308 case HIP_API_ID_hipMallocManaged:
return "hipMallocManaged";
309 case HIP_API_ID_hipDeviceGetByPCIBusId:
return "hipDeviceGetByPCIBusId";
310 case HIP_API_ID_hipIpcGetMemHandle:
return "hipIpcGetMemHandle";
311 case HIP_API_ID_hipMemcpyHtoDAsync:
return "hipMemcpyHtoDAsync";
312 case HIP_API_ID_hipCtxGetDevice:
return "hipCtxGetDevice";
313 case HIP_API_ID_hipMemset3D:
return "hipMemset3D";
314 case HIP_API_ID_hipModuleLoadData:
return "hipModuleLoadData";
315 case HIP_API_ID_hipDeviceTotalMem:
return "hipDeviceTotalMem";
316 case HIP_API_ID_hipCtxSetCurrent:
return "hipCtxSetCurrent";
317 case HIP_API_ID_hipGetErrorString:
return "hipGetErrorString";
318 case HIP_API_ID_hipDevicePrimaryCtxRetain:
return "hipDevicePrimaryCtxRetain";
319 case HIP_API_ID_hipDeviceDisablePeerAccess:
return "hipDeviceDisablePeerAccess";
320 case HIP_API_ID_hipStreamCreateWithFlags:
return "hipStreamCreateWithFlags";
321 case HIP_API_ID_hipMemcpyFromArray:
return "hipMemcpyFromArray";
322 case HIP_API_ID_hipMemcpy2DAsync:
return "hipMemcpy2DAsync";
323 case HIP_API_ID_hipGetSymbolSize:
return "hipGetSymbolSize";
324 case HIP_API_ID_hipEventCreateWithFlags:
return "hipEventCreateWithFlags";
325 case HIP_API_ID_hipStreamQuery:
return "hipStreamQuery";
326 case HIP_API_ID_hipDeviceGetPCIBusId:
return "hipDeviceGetPCIBusId";
327 case HIP_API_ID_hipMemcpy:
return "hipMemcpy";
328 case HIP_API_ID_hipPeekAtLastError:
return "hipPeekAtLastError";
329 case HIP_API_ID_hipStreamAddCallback:
return "hipStreamAddCallback";
330 case HIP_API_ID_hipMemcpyToArray:
return "hipMemcpyToArray";
331 case HIP_API_ID_hipMemsetD32:
return "hipMemsetD32";
332 case HIP_API_ID_hipDeviceSynchronize:
return "hipDeviceSynchronize";
333 case HIP_API_ID_hipDeviceGetCacheConfig:
return "hipDeviceGetCacheConfig";
334 case HIP_API_ID_hipMalloc3D:
return "hipMalloc3D";
335 case HIP_API_ID_hipPointerGetAttributes:
return "hipPointerGetAttributes";
336 case HIP_API_ID_hipMemsetAsync:
return "hipMemsetAsync";
337 case HIP_API_ID_hipMemcpyToSymbol:
return "hipMemcpyToSymbol";
338 case HIP_API_ID_hipCtxPushCurrent:
return "hipCtxPushCurrent";
339 case HIP_API_ID_hipMemcpyPeer:
return "hipMemcpyPeer";
340 case HIP_API_ID_hipEventSynchronize:
return "hipEventSynchronize";
341 case HIP_API_ID_hipMemcpyDtoDAsync:
return "hipMemcpyDtoDAsync";
342 case HIP_API_ID_hipExtMallocWithFlags:
return "hipExtMallocWithFlags";
343 case HIP_API_ID_hipCtxEnablePeerAccess:
return "hipCtxEnablePeerAccess";
344 case HIP_API_ID_hipMemcpyDtoHAsync:
return "hipMemcpyDtoHAsync";
345 case HIP_API_ID_hipModuleLaunchKernel:
return "hipModuleLaunchKernel";
346 case HIP_API_ID_hipModuleGetTexRef:
return "hipModuleGetTexRef";
347 case HIP_API_ID_hipDeviceGetLimit:
return "hipDeviceGetLimit";
348 case HIP_API_ID_hipModuleLoadDataEx:
return "hipModuleLoadDataEx";
349 case HIP_API_ID_hipRuntimeGetVersion:
return "hipRuntimeGetVersion";
350 case HIP_API_ID_hipGetDeviceProperties:
return "hipGetDeviceProperties";
351 case HIP_API_ID_hipFreeArray:
return "hipFreeArray";
352 case HIP_API_ID_hipDevicePrimaryCtxRelease:
return "hipDevicePrimaryCtxRelease";
353 case HIP_API_ID_hipHostGetDevicePointer:
return "hipHostGetDevicePointer";
354 case HIP_API_ID_hipMemcpyParam2D:
return "hipMemcpyParam2D";
355 case HIP_API_ID_hipModuleGetFunction:
return "hipModuleGetFunction";
356 case HIP_API_ID_hipMemsetD32Async:
return "hipMemsetD32Async";
357 case HIP_API_ID_hipGetDevice:
return "hipGetDevice";
358 case HIP_API_ID_hipGetDeviceCount:
return "hipGetDeviceCount";
365 uint64_t correlation_id;
372 } hipStreamCreateWithPriority;
374 const void* symbolName;
380 } hipMemcpyToSymbolAsync;
406 } hipCtxGetApiVersion;
414 const void* symbolName;
419 } hipMemcpyFromSymbolAsync;
423 unsigned int* linktype;
424 unsigned int* hopcount;
425 } hipExtGetLinkTypeAndHopCount;
443 } hipMemcpy2DToArray;
446 } hipCtxGetCacheConfig;
451 } hipStreamWaitEvent;
454 int* greatestPriority;
455 } hipDeviceGetStreamPriorityRange;
463 } hipDevicePrimaryCtxSetFlags;
487 } hipDevicePrimaryCtxGetState;
495 hipDeviceptr_t* pbase;
498 } hipMemGetAddressRange;
501 const void* symbolName;
505 } hipMemcpyFromSymbol;
523 } hipCtxGetSharedMemConfig;
555 } hipStreamGetPriority;
575 } hipDeviceCanAccessPeer;
579 } hipDeviceEnablePeerAccess;
591 } hipStreamSynchronize;
594 } hipDeviceSetCacheConfig;
596 hipError_t hip_error;
604 hipDeviceptr_t* dptr;
608 } hipModuleGetGlobal;
631 } hipIpcCloseMemHandle;
638 } hipDeviceSetSharedMemConfig;
643 } hipDeviceComputeCapability;
650 } hipCtxSetCacheConfig;
654 } hipFuncSetCacheConfig;
662 } hipMemcpyPeerAsync;
667 } hipEventElapsedTime;
670 } hipDevicePrimaryCtxReset;
679 const void* symbolName;
680 } hipGetSymbolAddress;
682 unsigned int* flagsPtr;
692 } hipDriverGetVersion;
714 } hipCtxSetSharedMemConfig;
723 } hipIpcOpenMemHandle;
729 } hipDeviceGetSharedMemConfig;
735 unsigned int globalWorkSizeX;
736 unsigned int globalWorkSizeY;
737 unsigned int globalWorkSizeZ;
738 unsigned int localWorkSizeX;
739 unsigned int localWorkSizeY;
740 unsigned int localWorkSizeZ;
741 size_t sharedMemBytes;
747 } hipHccModuleLaunchKernel;
755 } hipDeviceGetAttribute;
763 } hipCtxDisablePeerAccess;
771 const char* pciBusId;
772 } hipDeviceGetByPCIBusId;
776 } hipIpcGetMemHandle;
782 } hipMemcpyHtoDAsync;
808 } hipDevicePrimaryCtxRetain;
811 } hipDeviceDisablePeerAccess;
815 } hipStreamCreateWithFlags;
823 } hipMemcpyFromArray;
836 const void* symbolName;
841 } hipEventCreateWithFlags;
849 } hipDeviceGetPCIBusId;
861 } hipStreamAddCallback;
877 } hipDeviceGetCacheConfig;
885 } hipPointerGetAttributes;
893 const void* symbolName;
911 } hipEventSynchronize;
917 } hipMemcpyDtoDAsync;
922 } hipExtMallocWithFlags;
926 } hipCtxEnablePeerAccess;
932 } hipMemcpyDtoHAsync;
935 unsigned int gridDimX;
936 unsigned int gridDimY;
937 unsigned int gridDimZ;
938 unsigned int blockDimX;
939 unsigned int blockDimY;
940 unsigned int blockDimZ;
941 unsigned int sharedMemBytes;
945 } hipModuleLaunchKernel;
950 } hipModuleGetTexRef;
958 unsigned int numOptions;
959 hipJitOption* options;
961 } hipModuleLoadDataEx;
964 } hipRuntimeGetVersion;
968 } hipGetDeviceProperties;
974 } hipDevicePrimaryCtxRelease;
979 } hipHostGetDevicePointer;
987 } hipModuleGetFunction;
1005 #define INIT_hipStreamCreateWithPriority_CB_ARGS_DATA(cb_data) { \ 1006 cb_data.args.hipStreamCreateWithPriority.stream = stream; \ 1007 cb_data.args.hipStreamCreateWithPriority.flags = flags; \ 1008 cb_data.args.hipStreamCreateWithPriority.priority = priority; \ 1011 #define INIT_hipMemcpyToSymbolAsync_CB_ARGS_DATA(cb_data) { \ 1014 #define INIT_hipMallocPitch_CB_ARGS_DATA(cb_data) { \ 1015 cb_data.args.hipMallocPitch.ptr = ptr; \ 1016 cb_data.args.hipMallocPitch.pitch = pitch; \ 1017 cb_data.args.hipMallocPitch.width = width; \ 1018 cb_data.args.hipMallocPitch.height = height; \ 1021 #define INIT_hipMalloc_CB_ARGS_DATA(cb_data) { \ 1022 cb_data.args.hipMalloc.ptr = ptr; \ 1023 cb_data.args.hipMalloc.size = sizeBytes; \ 1026 #define INIT_hipDeviceGetName_CB_ARGS_DATA(cb_data) { \ 1027 cb_data.args.hipDeviceGetName.name = name; \ 1028 cb_data.args.hipDeviceGetName.len = len; \ 1029 cb_data.args.hipDeviceGetName.device = device; \ 1032 #define INIT_hipEventRecord_CB_ARGS_DATA(cb_data) { \ 1033 cb_data.args.hipEventRecord.event = event; \ 1034 cb_data.args.hipEventRecord.stream = stream; \ 1037 #define INIT_hipCtxSynchronize_CB_ARGS_DATA(cb_data) { \ 1040 #define INIT_hipSetDevice_CB_ARGS_DATA(cb_data) { \ 1041 cb_data.args.hipSetDevice.deviceId = deviceId; \ 1044 #define INIT_hipCtxGetApiVersion_CB_ARGS_DATA(cb_data) { \ 1045 cb_data.args.hipCtxGetApiVersion.ctx = ctx; \ 1046 cb_data.args.hipCtxGetApiVersion.apiVersion = apiVersion; \ 1049 #define INIT_hipSetupArgument_CB_ARGS_DATA(cb_data) { \ 1050 cb_data.args.hipSetupArgument.arg = arg; \ 1051 cb_data.args.hipSetupArgument.size = size; \ 1052 cb_data.args.hipSetupArgument.offset = offset; \ 1055 #define INIT_hipMemcpyFromSymbolAsync_CB_ARGS_DATA(cb_data) { \ 1058 #define INIT_hipExtGetLinkTypeAndHopCount_CB_ARGS_DATA(cb_data) { \ 1059 cb_data.args.hipExtGetLinkTypeAndHopCount.device1 = device1; \ 1060 cb_data.args.hipExtGetLinkTypeAndHopCount.device2 = device2; \ 1061 cb_data.args.hipExtGetLinkTypeAndHopCount.linktype = linktype; \ 1062 cb_data.args.hipExtGetLinkTypeAndHopCount.hopcount = hopcount; \ 1065 #define INIT_hipMemcpyDtoD_CB_ARGS_DATA(cb_data) { \ 1066 cb_data.args.hipMemcpyDtoD.dst = dst; \ 1067 cb_data.args.hipMemcpyDtoD.src = src; \ 1068 cb_data.args.hipMemcpyDtoD.sizeBytes = sizeBytes; \ 1071 #define INIT_hipHostFree_CB_ARGS_DATA(cb_data) { \ 1072 cb_data.args.hipHostFree.ptr = ptr; \ 1075 #define INIT_hipMemcpy2DToArray_CB_ARGS_DATA(cb_data) { \ 1076 cb_data.args.hipMemcpy2DToArray.dst = dst; \ 1077 cb_data.args.hipMemcpy2DToArray.wOffset = wOffset; \ 1078 cb_data.args.hipMemcpy2DToArray.hOffset = hOffset; \ 1079 cb_data.args.hipMemcpy2DToArray.src = src; \ 1080 cb_data.args.hipMemcpy2DToArray.spitch = spitch; \ 1081 cb_data.args.hipMemcpy2DToArray.width = width; \ 1082 cb_data.args.hipMemcpy2DToArray.height = height; \ 1083 cb_data.args.hipMemcpy2DToArray.kind = kind; \ 1086 #define INIT_hipCtxGetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1087 cb_data.args.hipCtxGetCacheConfig.cacheConfig = cacheConfig; \ 1090 #define INIT_hipStreamWaitEvent_CB_ARGS_DATA(cb_data) { \ 1091 cb_data.args.hipStreamWaitEvent.stream = stream; \ 1092 cb_data.args.hipStreamWaitEvent.event = event; \ 1093 cb_data.args.hipStreamWaitEvent.flags = flags; \ 1096 #define INIT_hipDeviceGetStreamPriorityRange_CB_ARGS_DATA(cb_data) { \ 1097 cb_data.args.hipDeviceGetStreamPriorityRange.leastPriority = leastPriority; \ 1098 cb_data.args.hipDeviceGetStreamPriorityRange.greatestPriority = greatestPriority; \ 1101 #define INIT_hipModuleLoad_CB_ARGS_DATA(cb_data) { \ 1102 cb_data.args.hipModuleLoad.module = module; \ 1103 cb_data.args.hipModuleLoad.fname = fname; \ 1106 #define INIT_hipDevicePrimaryCtxSetFlags_CB_ARGS_DATA(cb_data) { \ 1107 cb_data.args.hipDevicePrimaryCtxSetFlags.dev = dev; \ 1108 cb_data.args.hipDevicePrimaryCtxSetFlags.flags = flags; \ 1111 #define INIT_hipMemcpyAsync_CB_ARGS_DATA(cb_data) { \ 1112 cb_data.args.hipMemcpyAsync.dst = dst; \ 1113 cb_data.args.hipMemcpyAsync.src = src; \ 1114 cb_data.args.hipMemcpyAsync.sizeBytes = sizeBytes; \ 1115 cb_data.args.hipMemcpyAsync.kind = kind; \ 1116 cb_data.args.hipMemcpyAsync.stream = stream; \ 1119 #define INIT_hipMalloc3DArray_CB_ARGS_DATA(cb_data) { \ 1120 cb_data.args.hipMalloc3DArray.array = array; \ 1121 cb_data.args.hipMalloc3DArray.desc = desc; \ 1122 cb_data.args.hipMalloc3DArray.extent = extent; \ 1123 cb_data.args.hipMalloc3DArray.flags = flags; \ 1126 #define INIT_hipStreamCreate_CB_ARGS_DATA(cb_data) { \ 1127 cb_data.args.hipStreamCreate.stream = stream; \ 1130 #define INIT_hipCtxGetCurrent_CB_ARGS_DATA(cb_data) { \ 1131 cb_data.args.hipCtxGetCurrent.ctx = ctx; \ 1134 #define INIT_hipDevicePrimaryCtxGetState_CB_ARGS_DATA(cb_data) { \ 1135 cb_data.args.hipDevicePrimaryCtxGetState.dev = dev; \ 1136 cb_data.args.hipDevicePrimaryCtxGetState.flags = flags; \ 1137 cb_data.args.hipDevicePrimaryCtxGetState.active = active; \ 1140 #define INIT_hipEventQuery_CB_ARGS_DATA(cb_data) { \ 1141 cb_data.args.hipEventQuery.event = event; \ 1144 #define INIT_hipEventCreate_CB_ARGS_DATA(cb_data) { \ 1145 cb_data.args.hipEventCreate.event = event; \ 1148 #define INIT_hipMemGetAddressRange_CB_ARGS_DATA(cb_data) { \ 1149 cb_data.args.hipMemGetAddressRange.pbase = pbase; \ 1150 cb_data.args.hipMemGetAddressRange.psize = psize; \ 1151 cb_data.args.hipMemGetAddressRange.dptr = dptr; \ 1154 #define INIT_hipMemcpyFromSymbol_CB_ARGS_DATA(cb_data) { \ 1157 #define INIT_hipArrayCreate_CB_ARGS_DATA(cb_data) { \ 1158 cb_data.args.hipArrayCreate.pHandle = array; \ 1159 cb_data.args.hipArrayCreate.pAllocateArray = pAllocateArray; \ 1162 #define INIT_hipStreamGetFlags_CB_ARGS_DATA(cb_data) { \ 1163 cb_data.args.hipStreamGetFlags.stream = stream; \ 1164 cb_data.args.hipStreamGetFlags.flags = flags; \ 1167 #define INIT_hipMallocArray_CB_ARGS_DATA(cb_data) { \ 1168 cb_data.args.hipMallocArray.array = array; \ 1169 cb_data.args.hipMallocArray.desc = desc; \ 1170 cb_data.args.hipMallocArray.width = width; \ 1171 cb_data.args.hipMallocArray.height = height; \ 1172 cb_data.args.hipMallocArray.flags = flags; \ 1175 #define INIT_hipCtxGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1176 cb_data.args.hipCtxGetSharedMemConfig.pConfig = pConfig; \ 1179 #define INIT_hipMemPtrGetInfo_CB_ARGS_DATA(cb_data) { \ 1180 cb_data.args.hipMemPtrGetInfo.ptr = ptr; \ 1181 cb_data.args.hipMemPtrGetInfo.size = size; \ 1184 #define INIT_hipCtxGetFlags_CB_ARGS_DATA(cb_data) { \ 1185 cb_data.args.hipCtxGetFlags.flags = flags; \ 1188 #define INIT_hipStreamDestroy_CB_ARGS_DATA(cb_data) { \ 1189 cb_data.args.hipStreamDestroy.stream = stream; \ 1192 #define INIT_hipMemset3DAsync_CB_ARGS_DATA(cb_data) { \ 1193 cb_data.args.hipMemset3DAsync.pitchedDevPtr = pitchedDevPtr; \ 1194 cb_data.args.hipMemset3DAsync.value = value; \ 1195 cb_data.args.hipMemset3DAsync.extent = extent; \ 1196 cb_data.args.hipMemset3DAsync.stream = stream; \ 1199 #define INIT_hipMemcpy3D_CB_ARGS_DATA(cb_data) { \ 1200 cb_data.args.hipMemcpy3D.p = p; \ 1203 #define INIT_hipInit_CB_ARGS_DATA(cb_data) { \ 1204 cb_data.args.hipInit.flags = flags; \ 1207 #define INIT_hipMemcpyAtoH_CB_ARGS_DATA(cb_data) { \ 1208 cb_data.args.hipMemcpyAtoH.dst = dst; \ 1209 cb_data.args.hipMemcpyAtoH.srcArray = srcArray; \ 1210 cb_data.args.hipMemcpyAtoH.srcOffset = srcOffset; \ 1211 cb_data.args.hipMemcpyAtoH.count = count; \ 1214 #define INIT_hipStreamGetPriority_CB_ARGS_DATA(cb_data) { \ 1215 cb_data.args.hipStreamGetPriority.stream = stream; \ 1216 cb_data.args.hipStreamGetPriority.priority = priority; \ 1219 #define INIT_hipMemset2D_CB_ARGS_DATA(cb_data) { \ 1220 cb_data.args.hipMemset2D.dst = dst; \ 1221 cb_data.args.hipMemset2D.pitch = pitch; \ 1222 cb_data.args.hipMemset2D.value = value; \ 1223 cb_data.args.hipMemset2D.width = width; \ 1224 cb_data.args.hipMemset2D.height = height; \ 1227 #define INIT_hipMemset2DAsync_CB_ARGS_DATA(cb_data) { \ 1228 cb_data.args.hipMemset2DAsync.dst = dst; \ 1229 cb_data.args.hipMemset2DAsync.pitch = pitch; \ 1230 cb_data.args.hipMemset2DAsync.value = value; \ 1231 cb_data.args.hipMemset2DAsync.width = width; \ 1232 cb_data.args.hipMemset2DAsync.height = height; \ 1233 cb_data.args.hipMemset2DAsync.stream = stream; \ 1236 #define INIT_hipDeviceCanAccessPeer_CB_ARGS_DATA(cb_data) { \ 1237 cb_data.args.hipDeviceCanAccessPeer.canAccessPeer = canAccessPeer; \ 1238 cb_data.args.hipDeviceCanAccessPeer.deviceId = deviceId; \ 1239 cb_data.args.hipDeviceCanAccessPeer.peerDeviceId = peerDeviceId; \ 1242 #define INIT_hipDeviceEnablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1243 cb_data.args.hipDeviceEnablePeerAccess.peerDeviceId = peerDeviceId; \ 1244 cb_data.args.hipDeviceEnablePeerAccess.flags = flags; \ 1247 #define INIT_hipModuleUnload_CB_ARGS_DATA(cb_data) { \ 1248 cb_data.args.hipModuleUnload.module = hmod; \ 1251 #define INIT_hipHostUnregister_CB_ARGS_DATA(cb_data) { \ 1252 cb_data.args.hipHostUnregister.hostPtr = hostPtr; \ 1255 #define INIT_hipProfilerStop_CB_ARGS_DATA(cb_data) { \ 1258 #define INIT_hipLaunchByPtr_CB_ARGS_DATA(cb_data) { \ 1259 cb_data.args.hipLaunchByPtr.func = hostFunction; \ 1262 #define INIT_hipStreamSynchronize_CB_ARGS_DATA(cb_data) { \ 1263 cb_data.args.hipStreamSynchronize.stream = stream; \ 1266 #define INIT_hipDeviceSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1267 cb_data.args.hipDeviceSetCacheConfig.cacheConfig = cacheConfig; \ 1270 #define INIT_hipGetErrorName_CB_ARGS_DATA(cb_data) { \ 1271 cb_data.args.hipGetErrorName.hip_error = hip_error; \ 1274 #define INIT_hipMemcpyHtoD_CB_ARGS_DATA(cb_data) { \ 1275 cb_data.args.hipMemcpyHtoD.dst = dst; \ 1276 cb_data.args.hipMemcpyHtoD.src = src; \ 1277 cb_data.args.hipMemcpyHtoD.sizeBytes = sizeBytes; \ 1280 #define INIT_hipModuleGetGlobal_CB_ARGS_DATA(cb_data) { \ 1281 cb_data.args.hipModuleGetGlobal.dptr = dptr; \ 1282 cb_data.args.hipModuleGetGlobal.bytes = bytes; \ 1283 cb_data.args.hipModuleGetGlobal.hmod = hmod; \ 1284 cb_data.args.hipModuleGetGlobal.name = name; \ 1287 #define INIT_hipMemcpyHtoA_CB_ARGS_DATA(cb_data) { \ 1288 cb_data.args.hipMemcpyHtoA.dstArray = dstArray; \ 1289 cb_data.args.hipMemcpyHtoA.dstOffset = dstOffset; \ 1290 cb_data.args.hipMemcpyHtoA.srcHost = srcHost; \ 1291 cb_data.args.hipMemcpyHtoA.count = count; \ 1294 #define INIT_hipCtxCreate_CB_ARGS_DATA(cb_data) { \ 1295 cb_data.args.hipCtxCreate.ctx = ctx; \ 1296 cb_data.args.hipCtxCreate.flags = flags; \ 1297 cb_data.args.hipCtxCreate.device = device; \ 1300 #define INIT_hipMemcpy2D_CB_ARGS_DATA(cb_data) { \ 1301 cb_data.args.hipMemcpy2D.dst = dst; \ 1302 cb_data.args.hipMemcpy2D.dpitch = dpitch; \ 1303 cb_data.args.hipMemcpy2D.src = src; \ 1304 cb_data.args.hipMemcpy2D.spitch = spitch; \ 1305 cb_data.args.hipMemcpy2D.width = width; \ 1306 cb_data.args.hipMemcpy2D.height = height; \ 1307 cb_data.args.hipMemcpy2D.kind = kind; \ 1310 #define INIT_hipIpcCloseMemHandle_CB_ARGS_DATA(cb_data) { \ 1311 cb_data.args.hipIpcCloseMemHandle.devPtr = devPtr; \ 1314 #define INIT_hipChooseDevice_CB_ARGS_DATA(cb_data) { \ 1315 cb_data.args.hipChooseDevice.device = device; \ 1316 cb_data.args.hipChooseDevice.prop = prop; \ 1319 #define INIT_hipDeviceSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1320 cb_data.args.hipDeviceSetSharedMemConfig.config = config; \ 1323 #define INIT_hipDeviceComputeCapability_CB_ARGS_DATA(cb_data) { \ 1324 cb_data.args.hipDeviceComputeCapability.major = major; \ 1325 cb_data.args.hipDeviceComputeCapability.minor = minor; \ 1326 cb_data.args.hipDeviceComputeCapability.device = device; \ 1329 #define INIT_hipDeviceGet_CB_ARGS_DATA(cb_data) { \ 1330 cb_data.args.hipDeviceGet.device = device; \ 1331 cb_data.args.hipDeviceGet.ordinal = deviceId; \ 1334 #define INIT_hipProfilerStart_CB_ARGS_DATA(cb_data) { \ 1337 #define INIT_hipCtxSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1338 cb_data.args.hipCtxSetCacheConfig.cacheConfig = cacheConfig; \ 1341 #define INIT_hipFuncSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1342 cb_data.args.hipFuncSetCacheConfig.func = func; \ 1343 cb_data.args.hipFuncSetCacheConfig.config = cacheConfig; \ 1346 #define INIT_hipMemcpyPeerAsync_CB_ARGS_DATA(cb_data) { \ 1347 cb_data.args.hipMemcpyPeerAsync.dst = dst; \ 1348 cb_data.args.hipMemcpyPeerAsync.dstDeviceId = dstDevice; \ 1349 cb_data.args.hipMemcpyPeerAsync.src = src; \ 1350 cb_data.args.hipMemcpyPeerAsync.srcDevice = srcDevice; \ 1351 cb_data.args.hipMemcpyPeerAsync.sizeBytes = sizeBytes; \ 1352 cb_data.args.hipMemcpyPeerAsync.stream = stream; \ 1355 #define INIT_hipEventElapsedTime_CB_ARGS_DATA(cb_data) { \ 1356 cb_data.args.hipEventElapsedTime.ms = ms; \ 1357 cb_data.args.hipEventElapsedTime.start = start; \ 1358 cb_data.args.hipEventElapsedTime.stop = stop; \ 1361 #define INIT_hipDevicePrimaryCtxReset_CB_ARGS_DATA(cb_data) { \ 1362 cb_data.args.hipDevicePrimaryCtxReset.dev = dev; \ 1365 #define INIT_hipEventDestroy_CB_ARGS_DATA(cb_data) { \ 1366 cb_data.args.hipEventDestroy.event = event; \ 1369 #define INIT_hipCtxPopCurrent_CB_ARGS_DATA(cb_data) { \ 1370 cb_data.args.hipCtxPopCurrent.ctx = ctx; \ 1373 #define INIT_hipGetSymbolAddress_CB_ARGS_DATA(cb_data) { \ 1376 #define INIT_hipHostGetFlags_CB_ARGS_DATA(cb_data) { \ 1377 cb_data.args.hipHostGetFlags.flagsPtr = flagsPtr; \ 1378 cb_data.args.hipHostGetFlags.hostPtr = hostPtr; \ 1381 #define INIT_hipHostMalloc_CB_ARGS_DATA(cb_data) { \ 1382 cb_data.args.hipHostMalloc.ptr = ptr; \ 1383 cb_data.args.hipHostMalloc.size = sizeBytes; \ 1384 cb_data.args.hipHostMalloc.flags = flags; \ 1387 #define INIT_hipDriverGetVersion_CB_ARGS_DATA(cb_data) { \ 1388 cb_data.args.hipDriverGetVersion.driverVersion = driverVersion; \ 1391 #define INIT_hipMemGetInfo_CB_ARGS_DATA(cb_data) { \ 1392 cb_data.args.hipMemGetInfo.free = free; \ 1393 cb_data.args.hipMemGetInfo.total = total; \ 1396 #define INIT_hipDeviceReset_CB_ARGS_DATA(cb_data) { \ 1399 #define INIT_hipMemset_CB_ARGS_DATA(cb_data) { \ 1400 cb_data.args.hipMemset.dst = dst; \ 1401 cb_data.args.hipMemset.value = value; \ 1402 cb_data.args.hipMemset.sizeBytes = sizeBytes; \ 1405 #define INIT_hipMemsetD8_CB_ARGS_DATA(cb_data) { \ 1406 cb_data.args.hipMemsetD8.dest = dst; \ 1407 cb_data.args.hipMemsetD8.value = value; \ 1408 cb_data.args.hipMemsetD8.sizeBytes = sizeBytes; \ 1411 #define INIT_hipHostRegister_CB_ARGS_DATA(cb_data) { \ 1412 cb_data.args.hipHostRegister.hostPtr = hostPtr; \ 1413 cb_data.args.hipHostRegister.sizeBytes = sizeBytes; \ 1414 cb_data.args.hipHostRegister.flags = flags; \ 1417 #define INIT_hipCtxSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1418 cb_data.args.hipCtxSetSharedMemConfig.config = config; \ 1421 #define INIT_hipArray3DCreate_CB_ARGS_DATA(cb_data) { \ 1422 cb_data.args.hipArray3DCreate.array = array; \ 1423 cb_data.args.hipArray3DCreate.pAllocateArray = pAllocateArray; \ 1426 #define INIT_hipIpcOpenMemHandle_CB_ARGS_DATA(cb_data) { \ 1427 cb_data.args.hipIpcOpenMemHandle.devPtr = devPtr; \ 1428 cb_data.args.hipIpcOpenMemHandle.handle = handle; \ 1429 cb_data.args.hipIpcOpenMemHandle.flags = flags; \ 1432 #define INIT_hipGetLastError_CB_ARGS_DATA(cb_data) { \ 1435 #define INIT_hipCtxDestroy_CB_ARGS_DATA(cb_data) { \ 1436 cb_data.args.hipCtxDestroy.ctx = ctx; \ 1439 #define INIT_hipDeviceGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1440 cb_data.args.hipDeviceGetSharedMemConfig.pConfig = pConfig; \ 1443 #define INIT_hipSetDeviceFlags_CB_ARGS_DATA(cb_data) { \ 1444 cb_data.args.hipSetDeviceFlags.flags = flags; \ 1447 #define INIT_hipHccModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1448 cb_data.args.hipHccModuleLaunchKernel.f = f; \ 1449 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeX = globalWorkSizeX; \ 1450 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeY = globalWorkSizeY; \ 1451 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeZ = globalWorkSizeZ; \ 1452 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeX = localWorkSizeX; \ 1453 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeY = localWorkSizeY; \ 1454 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeZ = localWorkSizeZ; \ 1455 cb_data.args.hipHccModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1456 cb_data.args.hipHccModuleLaunchKernel.hStream = hStream; \ 1457 cb_data.args.hipHccModuleLaunchKernel.kernelParams = kernelParams; \ 1458 cb_data.args.hipHccModuleLaunchKernel.extra = extra; \ 1459 cb_data.args.hipHccModuleLaunchKernel.startEvent = startEvent; \ 1460 cb_data.args.hipHccModuleLaunchKernel.stopEvent = stopEvent; \ 1463 #define INIT_hipFree_CB_ARGS_DATA(cb_data) { \ 1464 cb_data.args.hipFree.ptr = ptr; \ 1467 #define INIT_hipDeviceGetAttribute_CB_ARGS_DATA(cb_data) { \ 1468 cb_data.args.hipDeviceGetAttribute.pi = pi; \ 1469 cb_data.args.hipDeviceGetAttribute.attr = attr; \ 1470 cb_data.args.hipDeviceGetAttribute.deviceId = device; \ 1473 #define INIT_hipMemcpyDtoH_CB_ARGS_DATA(cb_data) { \ 1474 cb_data.args.hipMemcpyDtoH.dst = dst; \ 1475 cb_data.args.hipMemcpyDtoH.src = src; \ 1476 cb_data.args.hipMemcpyDtoH.sizeBytes = sizeBytes; \ 1479 #define INIT_hipCtxDisablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1480 cb_data.args.hipCtxDisablePeerAccess.peerCtx = peerCtx; \ 1483 #define INIT_hipMallocManaged_CB_ARGS_DATA(cb_data) { \ 1484 cb_data.args.hipMallocManaged.devPtr = devPtr; \ 1485 cb_data.args.hipMallocManaged.size = size; \ 1486 cb_data.args.hipMallocManaged.flags = flags; \ 1489 #define INIT_hipDeviceGetByPCIBusId_CB_ARGS_DATA(cb_data) { \ 1490 cb_data.args.hipDeviceGetByPCIBusId.device = device; \ 1491 cb_data.args.hipDeviceGetByPCIBusId.pciBusId = pciBusId; \ 1494 #define INIT_hipIpcGetMemHandle_CB_ARGS_DATA(cb_data) { \ 1495 cb_data.args.hipIpcGetMemHandle.handle = handle; \ 1496 cb_data.args.hipIpcGetMemHandle.devPtr = devPtr; \ 1499 #define INIT_hipMemcpyHtoDAsync_CB_ARGS_DATA(cb_data) { \ 1500 cb_data.args.hipMemcpyHtoDAsync.dst = dst; \ 1501 cb_data.args.hipMemcpyHtoDAsync.src = src; \ 1502 cb_data.args.hipMemcpyHtoDAsync.sizeBytes = sizeBytes; \ 1503 cb_data.args.hipMemcpyHtoDAsync.stream = stream; \ 1506 #define INIT_hipCtxGetDevice_CB_ARGS_DATA(cb_data) { \ 1507 cb_data.args.hipCtxGetDevice.device = device; \ 1510 #define INIT_hipMemset3D_CB_ARGS_DATA(cb_data) { \ 1511 cb_data.args.hipMemset3D.pitchedDevPtr = pitchedDevPtr; \ 1512 cb_data.args.hipMemset3D.value = value; \ 1513 cb_data.args.hipMemset3D.extent = extent; \ 1516 #define INIT_hipModuleLoadData_CB_ARGS_DATA(cb_data) { \ 1517 cb_data.args.hipModuleLoadData.module = module; \ 1518 cb_data.args.hipModuleLoadData.image = image; \ 1521 #define INIT_hipDeviceTotalMem_CB_ARGS_DATA(cb_data) { \ 1522 cb_data.args.hipDeviceTotalMem.bytes = bytes; \ 1523 cb_data.args.hipDeviceTotalMem.device = device; \ 1526 #define INIT_hipCtxSetCurrent_CB_ARGS_DATA(cb_data) { \ 1527 cb_data.args.hipCtxSetCurrent.ctx = ctx; \ 1530 #define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \ 1531 cb_data.args.hipGetErrorString.hipError = hip_error; \ 1534 #define INIT_hipDevicePrimaryCtxRetain_CB_ARGS_DATA(cb_data) { \ 1535 cb_data.args.hipDevicePrimaryCtxRetain.pctx = pctx; \ 1536 cb_data.args.hipDevicePrimaryCtxRetain.dev = dev; \ 1539 #define INIT_hipDeviceDisablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1540 cb_data.args.hipDeviceDisablePeerAccess.peerDeviceId = peerDeviceId; \ 1543 #define INIT_hipStreamCreateWithFlags_CB_ARGS_DATA(cb_data) { \ 1544 cb_data.args.hipStreamCreateWithFlags.stream = stream; \ 1545 cb_data.args.hipStreamCreateWithFlags.flags = flags; \ 1548 #define INIT_hipMemcpyFromArray_CB_ARGS_DATA(cb_data) { \ 1549 cb_data.args.hipMemcpyFromArray.dst = dst; \ 1550 cb_data.args.hipMemcpyFromArray.srcArray = srcArray; \ 1551 cb_data.args.hipMemcpyFromArray.wOffset = wOffset; \ 1552 cb_data.args.hipMemcpyFromArray.hOffset = hOffset; \ 1553 cb_data.args.hipMemcpyFromArray.count = count; \ 1554 cb_data.args.hipMemcpyFromArray.kind = kind; \ 1557 #define INIT_hipMemcpy2DAsync_CB_ARGS_DATA(cb_data) { \ 1558 cb_data.args.hipMemcpy2DAsync.dst = dst; \ 1559 cb_data.args.hipMemcpy2DAsync.dpitch = dpitch; \ 1560 cb_data.args.hipMemcpy2DAsync.src = src; \ 1561 cb_data.args.hipMemcpy2DAsync.spitch = spitch; \ 1562 cb_data.args.hipMemcpy2DAsync.width = width; \ 1563 cb_data.args.hipMemcpy2DAsync.height = height; \ 1564 cb_data.args.hipMemcpy2DAsync.kind = kind; \ 1565 cb_data.args.hipMemcpy2DAsync.stream = stream; \ 1568 #define INIT_hipGetSymbolSize_CB_ARGS_DATA(cb_data) { \ 1571 #define INIT_hipEventCreateWithFlags_CB_ARGS_DATA(cb_data) { \ 1572 cb_data.args.hipEventCreateWithFlags.event = event; \ 1573 cb_data.args.hipEventCreateWithFlags.flags = flags; \ 1576 #define INIT_hipStreamQuery_CB_ARGS_DATA(cb_data) { \ 1577 cb_data.args.hipStreamQuery.stream = stream; \ 1580 #define INIT_hipDeviceGetPCIBusId_CB_ARGS_DATA(cb_data) { \ 1581 cb_data.args.hipDeviceGetPCIBusId.pciBusId = pciBusId; \ 1582 cb_data.args.hipDeviceGetPCIBusId.len = len; \ 1583 cb_data.args.hipDeviceGetPCIBusId.device = device; \ 1586 #define INIT_hipMemcpy_CB_ARGS_DATA(cb_data) { \ 1587 cb_data.args.hipMemcpy.dst = dst; \ 1588 cb_data.args.hipMemcpy.src = src; \ 1589 cb_data.args.hipMemcpy.sizeBytes = sizeBytes; \ 1590 cb_data.args.hipMemcpy.kind = kind; \ 1593 #define INIT_hipPeekAtLastError_CB_ARGS_DATA(cb_data) { \ 1596 #define INIT_hipStreamAddCallback_CB_ARGS_DATA(cb_data) { \ 1597 cb_data.args.hipStreamAddCallback.stream = stream; \ 1598 cb_data.args.hipStreamAddCallback.callback = callback; \ 1599 cb_data.args.hipStreamAddCallback.userData = userData; \ 1600 cb_data.args.hipStreamAddCallback.flags = flags; \ 1603 #define INIT_hipMemcpyToArray_CB_ARGS_DATA(cb_data) { \ 1604 cb_data.args.hipMemcpyToArray.dst = dst; \ 1605 cb_data.args.hipMemcpyToArray.wOffset = wOffset; \ 1606 cb_data.args.hipMemcpyToArray.hOffset = hOffset; \ 1607 cb_data.args.hipMemcpyToArray.src = src; \ 1608 cb_data.args.hipMemcpyToArray.count = count; \ 1609 cb_data.args.hipMemcpyToArray.kind = kind; \ 1612 #define INIT_hipMemsetD32_CB_ARGS_DATA(cb_data) { \ 1613 cb_data.args.hipMemsetD32.dest = dst; \ 1614 cb_data.args.hipMemsetD32.value = value; \ 1615 cb_data.args.hipMemsetD32.count = count; \ 1618 #define INIT_hipDeviceSynchronize_CB_ARGS_DATA(cb_data) { \ 1621 #define INIT_hipDeviceGetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1622 cb_data.args.hipDeviceGetCacheConfig.cacheConfig = cacheConfig; \ 1625 #define INIT_hipMalloc3D_CB_ARGS_DATA(cb_data) { \ 1626 cb_data.args.hipMalloc3D.pitchedDevPtr = pitchedDevPtr; \ 1627 cb_data.args.hipMalloc3D.extent = extent; \ 1630 #define INIT_hipPointerGetAttributes_CB_ARGS_DATA(cb_data) { \ 1631 cb_data.args.hipPointerGetAttributes.attributes = attributes; \ 1632 cb_data.args.hipPointerGetAttributes.ptr = ptr; \ 1635 #define INIT_hipMemsetAsync_CB_ARGS_DATA(cb_data) { \ 1636 cb_data.args.hipMemsetAsync.dst = dst; \ 1637 cb_data.args.hipMemsetAsync.value = value; \ 1638 cb_data.args.hipMemsetAsync.sizeBytes = sizeBytes; \ 1639 cb_data.args.hipMemsetAsync.stream = stream; \ 1642 #define INIT_hipMemcpyToSymbol_CB_ARGS_DATA(cb_data) { \ 1645 #define INIT_hipCtxPushCurrent_CB_ARGS_DATA(cb_data) { \ 1646 cb_data.args.hipCtxPushCurrent.ctx = ctx; \ 1649 #define INIT_hipMemcpyPeer_CB_ARGS_DATA(cb_data) { \ 1650 cb_data.args.hipMemcpyPeer.dst = dst; \ 1651 cb_data.args.hipMemcpyPeer.dstDeviceId = dstDevice; \ 1652 cb_data.args.hipMemcpyPeer.src = src; \ 1653 cb_data.args.hipMemcpyPeer.srcDeviceId = srcDevice; \ 1654 cb_data.args.hipMemcpyPeer.sizeBytes = sizeBytes; \ 1657 #define INIT_hipEventSynchronize_CB_ARGS_DATA(cb_data) { \ 1658 cb_data.args.hipEventSynchronize.event = event; \ 1661 #define INIT_hipMemcpyDtoDAsync_CB_ARGS_DATA(cb_data) { \ 1662 cb_data.args.hipMemcpyDtoDAsync.dst = dst; \ 1663 cb_data.args.hipMemcpyDtoDAsync.src = src; \ 1664 cb_data.args.hipMemcpyDtoDAsync.sizeBytes = sizeBytes; \ 1665 cb_data.args.hipMemcpyDtoDAsync.stream = stream; \ 1668 #define INIT_hipExtMallocWithFlags_CB_ARGS_DATA(cb_data) { \ 1669 cb_data.args.hipExtMallocWithFlags.ptr = ptr; \ 1670 cb_data.args.hipExtMallocWithFlags.sizeBytes = sizeBytes; \ 1671 cb_data.args.hipExtMallocWithFlags.flags = flags; \ 1674 #define INIT_hipCtxEnablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1675 cb_data.args.hipCtxEnablePeerAccess.peerCtx = peerCtx; \ 1676 cb_data.args.hipCtxEnablePeerAccess.flags = flags; \ 1679 #define INIT_hipMemcpyDtoHAsync_CB_ARGS_DATA(cb_data) { \ 1680 cb_data.args.hipMemcpyDtoHAsync.dst = dst; \ 1681 cb_data.args.hipMemcpyDtoHAsync.src = src; \ 1682 cb_data.args.hipMemcpyDtoHAsync.sizeBytes = sizeBytes; \ 1683 cb_data.args.hipMemcpyDtoHAsync.stream = stream; \ 1686 #define INIT_hipModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1687 cb_data.args.hipModuleLaunchKernel.f = f; \ 1688 cb_data.args.hipModuleLaunchKernel.gridDimX = gridDimX; \ 1689 cb_data.args.hipModuleLaunchKernel.gridDimY = gridDimY; \ 1690 cb_data.args.hipModuleLaunchKernel.gridDimZ = gridDimZ; \ 1691 cb_data.args.hipModuleLaunchKernel.blockDimX = blockDimX; \ 1692 cb_data.args.hipModuleLaunchKernel.blockDimY = blockDimY; \ 1693 cb_data.args.hipModuleLaunchKernel.blockDimZ = blockDimZ; \ 1694 cb_data.args.hipModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1695 cb_data.args.hipModuleLaunchKernel.stream = hStream; \ 1696 cb_data.args.hipModuleLaunchKernel.kernelParams = kernelParams; \ 1697 cb_data.args.hipModuleLaunchKernel.extra = extra; \ 1700 #define INIT_hipModuleGetTexRef_CB_ARGS_DATA(cb_data) { \ 1701 cb_data.args.hipModuleGetTexRef.texRef = texRef; \ 1702 cb_data.args.hipModuleGetTexRef.hmod = hmod; \ 1703 cb_data.args.hipModuleGetTexRef.name = name; \ 1706 #define INIT_hipDeviceGetLimit_CB_ARGS_DATA(cb_data) { \ 1707 cb_data.args.hipDeviceGetLimit.pValue = pValue; \ 1708 cb_data.args.hipDeviceGetLimit.limit = limit; \ 1711 #define INIT_hipModuleLoadDataEx_CB_ARGS_DATA(cb_data) { \ 1712 cb_data.args.hipModuleLoadDataEx.module = module; \ 1713 cb_data.args.hipModuleLoadDataEx.image = image; \ 1714 cb_data.args.hipModuleLoadDataEx.numOptions = numOptions; \ 1715 cb_data.args.hipModuleLoadDataEx.options = options; \ 1716 cb_data.args.hipModuleLoadDataEx.optionValues = optionValues; \ 1719 #define INIT_hipRuntimeGetVersion_CB_ARGS_DATA(cb_data) { \ 1720 cb_data.args.hipRuntimeGetVersion.runtimeVersion = runtimeVersion; \ 1723 #define INIT_hipGetDeviceProperties_CB_ARGS_DATA(cb_data) { \ 1724 cb_data.args.hipGetDeviceProperties.prop = props; \ 1725 cb_data.args.hipGetDeviceProperties.deviceId = device; \ 1728 #define INIT_hipFreeArray_CB_ARGS_DATA(cb_data) { \ 1729 cb_data.args.hipFreeArray.array = array; \ 1732 #define INIT_hipDevicePrimaryCtxRelease_CB_ARGS_DATA(cb_data) { \ 1733 cb_data.args.hipDevicePrimaryCtxRelease.dev = dev; \ 1736 #define INIT_hipHostGetDevicePointer_CB_ARGS_DATA(cb_data) { \ 1737 cb_data.args.hipHostGetDevicePointer.devPtr = devicePointer; \ 1738 cb_data.args.hipHostGetDevicePointer.hstPtr = hostPointer; \ 1739 cb_data.args.hipHostGetDevicePointer.flags = flags; \ 1742 #define INIT_hipMemcpyParam2D_CB_ARGS_DATA(cb_data) { \ 1743 cb_data.args.hipMemcpyParam2D.pCopy = pCopy; \ 1746 #define INIT_hipModuleGetFunction_CB_ARGS_DATA(cb_data) { \ 1747 cb_data.args.hipModuleGetFunction.function = hfunc; \ 1748 cb_data.args.hipModuleGetFunction.module = hmod; \ 1749 cb_data.args.hipModuleGetFunction.kname = name; \ 1752 #define INIT_hipMemsetD32Async_CB_ARGS_DATA(cb_data) { \ 1753 cb_data.args.hipMemsetD32Async.dst = dst; \ 1754 cb_data.args.hipMemsetD32Async.value = value; \ 1755 cb_data.args.hipMemsetD32Async.count = count; \ 1756 cb_data.args.hipMemsetD32Async.stream = stream; \ 1759 #define INIT_hipGetDevice_CB_ARGS_DATA(cb_data) { \ 1760 cb_data.args.hipGetDevice.deviceId = deviceId; \ 1763 #define INIT_hipGetDeviceCount_CB_ARGS_DATA(cb_data) { \ 1764 cb_data.args.hipGetDeviceCount.count = count; \ 1766 #define INIT_CB_ARGS_DATA(cb_id, cb_data) INIT_##cb_id##_CB_ARGS_DATA(cb_data) 1770 const char* hipApiString(hip_api_id_t
id,
const hip_api_data_t* data) {
1771 std::ostringstream oss;
1773 case HIP_API_ID_hipStreamCreateWithPriority:
1774 oss <<
"hipStreamCreateWithPriority(" 1775 <<
" stream=" << data->args.hipStreamCreateWithPriority.stream <<
"," 1776 <<
" flags=" << data->args.hipStreamCreateWithPriority.flags <<
"," 1777 <<
" priority=" << data->args.hipStreamCreateWithPriority.priority
1780 case HIP_API_ID_hipMemcpyToSymbolAsync:
1781 oss <<
"hipMemcpyToSymbolAsync(" 1782 <<
" symbolName=" << data->args.hipMemcpyToSymbolAsync.symbolName <<
"," 1783 <<
" src=" << data->args.hipMemcpyToSymbolAsync.src <<
"," 1784 <<
" sizeBytes=" << data->args.hipMemcpyToSymbolAsync.sizeBytes <<
"," 1785 <<
" offset=" << data->args.hipMemcpyToSymbolAsync.offset <<
"," 1786 <<
" kind=" << data->args.hipMemcpyToSymbolAsync.kind <<
"," 1787 <<
" stream=" << data->args.hipMemcpyToSymbolAsync.stream
1790 case HIP_API_ID_hipMallocPitch:
1791 oss <<
"hipMallocPitch(" 1792 <<
" ptr=" << data->args.hipMallocPitch.ptr <<
"," 1793 <<
" pitch=" << data->args.hipMallocPitch.pitch <<
"," 1794 <<
" width=" << data->args.hipMallocPitch.width <<
"," 1795 <<
" height=" << data->args.hipMallocPitch.height
1798 case HIP_API_ID_hipMalloc:
1800 <<
" ptr=" << data->args.hipMalloc.ptr <<
"," 1801 <<
" size=" << data->args.hipMalloc.size
1804 case HIP_API_ID_hipDeviceGetName:
1805 oss <<
"hipDeviceGetName(" 1806 <<
" name=" << data->args.hipDeviceGetName.name <<
"," 1807 <<
" len=" << data->args.hipDeviceGetName.len <<
"," 1808 <<
" device=" << data->args.hipDeviceGetName.device
1811 case HIP_API_ID_hipEventRecord:
1812 oss <<
"hipEventRecord(" 1813 <<
" event=" << data->args.hipEventRecord.event <<
"," 1814 <<
" stream=" << data->args.hipEventRecord.stream
1817 case HIP_API_ID_hipCtxSynchronize:
1818 oss <<
"hipCtxSynchronize(" 1821 case HIP_API_ID_hipSetDevice:
1822 oss <<
"hipSetDevice(" 1823 <<
" deviceId=" << data->args.hipSetDevice.deviceId
1826 case HIP_API_ID_hipCtxGetApiVersion:
1827 oss <<
"hipCtxGetApiVersion(" 1828 <<
" ctx=" << data->args.hipCtxGetApiVersion.ctx <<
"," 1829 <<
" apiVersion=" << data->args.hipCtxGetApiVersion.apiVersion
1832 case HIP_API_ID_hipSetupArgument:
1833 oss <<
"hipSetupArgument(" 1834 <<
" arg=" << data->args.hipSetupArgument.arg <<
"," 1835 <<
" size=" << data->args.hipSetupArgument.size <<
"," 1836 <<
" offset=" << data->args.hipSetupArgument.offset
1839 case HIP_API_ID_hipMemcpyFromSymbolAsync:
1840 oss <<
"hipMemcpyFromSymbolAsync(" 1841 <<
" dst=" << data->args.hipMemcpyFromSymbolAsync.dst <<
"," 1842 <<
" symbolName=" << data->args.hipMemcpyFromSymbolAsync.symbolName <<
"," 1843 <<
" sizeBytes=" << data->args.hipMemcpyFromSymbolAsync.sizeBytes <<
"," 1844 <<
" offset=" << data->args.hipMemcpyFromSymbolAsync.offset <<
"," 1845 <<
" kind=" << data->args.hipMemcpyFromSymbolAsync.kind <<
"," 1846 <<
" stream=" << data->args.hipMemcpyFromSymbolAsync.stream
1849 case HIP_API_ID_hipExtGetLinkTypeAndHopCount:
1850 oss <<
"hipExtGetLinkTypeAndHopCount(" 1851 <<
" device1=" << data->args.hipExtGetLinkTypeAndHopCount.device1 <<
"," 1852 <<
" device2=" << data->args.hipExtGetLinkTypeAndHopCount.device2 <<
"," 1853 <<
" linktype=" << data->args.hipExtGetLinkTypeAndHopCount.linktype <<
"," 1854 <<
" hopcount=" << data->args.hipExtGetLinkTypeAndHopCount.hopcount
1857 case HIP_API_ID_hipMemcpyDtoD:
1858 oss <<
"hipMemcpyDtoD(" 1859 <<
" dst=" << data->args.hipMemcpyDtoD.dst <<
"," 1860 <<
" src=" << data->args.hipMemcpyDtoD.src <<
"," 1861 <<
" sizeBytes=" << data->args.hipMemcpyDtoD.sizeBytes
1864 case HIP_API_ID_hipHostFree:
1865 oss <<
"hipHostFree(" 1866 <<
" ptr=" << data->args.hipHostFree.ptr
1869 case HIP_API_ID_hipMemcpy2DToArray:
1870 oss <<
"hipMemcpy2DToArray(" 1871 <<
" dst=" << data->args.hipMemcpy2DToArray.dst <<
"," 1872 <<
" wOffset=" << data->args.hipMemcpy2DToArray.wOffset <<
"," 1873 <<
" hOffset=" << data->args.hipMemcpy2DToArray.hOffset <<
"," 1874 <<
" src=" << data->args.hipMemcpy2DToArray.src <<
"," 1875 <<
" spitch=" << data->args.hipMemcpy2DToArray.spitch <<
"," 1876 <<
" width=" << data->args.hipMemcpy2DToArray.width <<
"," 1877 <<
" height=" << data->args.hipMemcpy2DToArray.height <<
"," 1878 <<
" kind=" << data->args.hipMemcpy2DToArray.kind
1881 case HIP_API_ID_hipCtxGetCacheConfig:
1882 oss <<
"hipCtxGetCacheConfig(" 1883 <<
" cacheConfig=" << data->args.hipCtxGetCacheConfig.cacheConfig
1886 case HIP_API_ID_hipStreamWaitEvent:
1887 oss <<
"hipStreamWaitEvent(" 1888 <<
" stream=" << data->args.hipStreamWaitEvent.stream <<
"," 1889 <<
" event=" << data->args.hipStreamWaitEvent.event <<
"," 1890 <<
" flags=" << data->args.hipStreamWaitEvent.flags
1893 case HIP_API_ID_hipDeviceGetStreamPriorityRange:
1894 oss <<
"hipDeviceGetStreamPriorityRange(" 1895 <<
" leastPriority=" << data->args.hipDeviceGetStreamPriorityRange.leastPriority <<
"," 1896 <<
" greatestPriority=" << data->args.hipDeviceGetStreamPriorityRange.greatestPriority
1899 case HIP_API_ID_hipModuleLoad:
1900 oss <<
"hipModuleLoad(" 1901 <<
" module=" << data->args.hipModuleLoad.module <<
"," 1902 <<
" fname=" << data->args.hipModuleLoad.fname
1905 case HIP_API_ID_hipDevicePrimaryCtxSetFlags:
1906 oss <<
"hipDevicePrimaryCtxSetFlags(" 1907 <<
" dev=" << data->args.hipDevicePrimaryCtxSetFlags.dev <<
"," 1908 <<
" flags=" << data->args.hipDevicePrimaryCtxSetFlags.flags
1911 case HIP_API_ID_hipMemcpyAsync:
1912 oss <<
"hipMemcpyAsync(" 1913 <<
" dst=" << data->args.hipMemcpyAsync.dst <<
"," 1914 <<
" src=" << data->args.hipMemcpyAsync.src <<
"," 1915 <<
" sizeBytes=" << data->args.hipMemcpyAsync.sizeBytes <<
"," 1916 <<
" kind=" << data->args.hipMemcpyAsync.kind <<
"," 1917 <<
" stream=" << data->args.hipMemcpyAsync.stream
1920 case HIP_API_ID_hipMalloc3DArray:
1921 oss <<
"hipMalloc3DArray(" 1922 <<
" array=" << data->args.hipMalloc3DArray.array <<
"," 1923 <<
" desc=" << data->args.hipMalloc3DArray.desc <<
"," 1924 <<
" extent=" << data->args.hipMalloc3DArray.extent <<
"," 1925 <<
" flags=" << data->args.hipMalloc3DArray.flags
1928 case HIP_API_ID_hipStreamCreate:
1929 oss <<
"hipStreamCreate(" 1930 <<
" stream=" << data->args.hipStreamCreate.stream
1933 case HIP_API_ID_hipCtxGetCurrent:
1934 oss <<
"hipCtxGetCurrent(" 1935 <<
" ctx=" << data->args.hipCtxGetCurrent.ctx
1938 case HIP_API_ID_hipDevicePrimaryCtxGetState:
1939 oss <<
"hipDevicePrimaryCtxGetState(" 1940 <<
" dev=" << data->args.hipDevicePrimaryCtxGetState.dev <<
"," 1941 <<
" flags=" << data->args.hipDevicePrimaryCtxGetState.flags <<
"," 1942 <<
" active=" << data->args.hipDevicePrimaryCtxGetState.active
1945 case HIP_API_ID_hipEventQuery:
1946 oss <<
"hipEventQuery(" 1947 <<
" event=" << data->args.hipEventQuery.event
1950 case HIP_API_ID_hipEventCreate:
1951 oss <<
"hipEventCreate(" 1952 <<
" event=" << data->args.hipEventCreate.event
1955 case HIP_API_ID_hipMemGetAddressRange:
1956 oss <<
"hipMemGetAddressRange(" 1957 <<
" pbase=" << data->args.hipMemGetAddressRange.pbase <<
"," 1958 <<
" psize=" << data->args.hipMemGetAddressRange.psize <<
"," 1959 <<
" dptr=" << data->args.hipMemGetAddressRange.dptr
1962 case HIP_API_ID_hipMemcpyFromSymbol:
1963 oss <<
"hipMemcpyFromSymbol(" 1964 <<
" dst=" << data->args.hipMemcpyFromSymbol.dst <<
"," 1965 <<
" symbolName=" << data->args.hipMemcpyFromSymbol.symbolName <<
"," 1966 <<
" sizeBytes=" << data->args.hipMemcpyFromSymbol.sizeBytes <<
"," 1967 <<
" offset=" << data->args.hipMemcpyFromSymbol.offset <<
"," 1968 <<
" kind=" << data->args.hipMemcpyFromSymbol.kind
1971 case HIP_API_ID_hipArrayCreate:
1972 oss <<
"hipArrayCreate(" 1973 <<
" pHandle=" << data->args.hipArrayCreate.pHandle <<
"," 1974 <<
" pAllocateArray=" << data->args.hipArrayCreate.pAllocateArray
1977 case HIP_API_ID_hipStreamGetFlags:
1978 oss <<
"hipStreamGetFlags(" 1979 <<
" stream=" << data->args.hipStreamGetFlags.stream <<
"," 1980 <<
" flags=" << data->args.hipStreamGetFlags.flags
1983 case HIP_API_ID_hipMallocArray:
1984 oss <<
"hipMallocArray(" 1985 <<
" array=" << data->args.hipMallocArray.array <<
"," 1986 <<
" desc=" << data->args.hipMallocArray.desc <<
"," 1987 <<
" width=" << data->args.hipMallocArray.width <<
"," 1988 <<
" height=" << data->args.hipMallocArray.height <<
"," 1989 <<
" flags=" << data->args.hipMallocArray.flags
1992 case HIP_API_ID_hipCtxGetSharedMemConfig:
1993 oss <<
"hipCtxGetSharedMemConfig(" 1994 <<
" pConfig=" << data->args.hipCtxGetSharedMemConfig.pConfig
1997 case HIP_API_ID_hipMemPtrGetInfo:
1998 oss <<
"hipMemPtrGetInfo(" 1999 <<
" ptr=" << data->args.hipMemPtrGetInfo.ptr <<
"," 2000 <<
" size=" << data->args.hipMemPtrGetInfo.size
2003 case HIP_API_ID_hipCtxGetFlags:
2004 oss <<
"hipCtxGetFlags(" 2005 <<
" flags=" << data->args.hipCtxGetFlags.flags
2008 case HIP_API_ID_hipStreamDestroy:
2009 oss <<
"hipStreamDestroy(" 2010 <<
" stream=" << data->args.hipStreamDestroy.stream
2013 case HIP_API_ID_hipMemset3DAsync:
2014 oss <<
"hipMemset3DAsync(" 2015 <<
" pitchedDevPtr=" << data->args.hipMemset3DAsync.pitchedDevPtr <<
"," 2016 <<
" value=" << data->args.hipMemset3DAsync.value <<
"," 2017 <<
" extent=" << data->args.hipMemset3DAsync.extent <<
"," 2018 <<
" stream=" << data->args.hipMemset3DAsync.stream
2021 case HIP_API_ID_hipMemcpy3D:
2022 oss <<
"hipMemcpy3D(" 2023 <<
" p=" << data->args.hipMemcpy3D.p
2026 case HIP_API_ID_hipInit:
2028 <<
" flags=" << data->args.hipInit.flags
2031 case HIP_API_ID_hipMemcpyAtoH:
2032 oss <<
"hipMemcpyAtoH(" 2033 <<
" dst=" << data->args.hipMemcpyAtoH.dst <<
"," 2034 <<
" srcArray=" << data->args.hipMemcpyAtoH.srcArray <<
"," 2035 <<
" srcOffset=" << data->args.hipMemcpyAtoH.srcOffset <<
"," 2036 <<
" count=" << data->args.hipMemcpyAtoH.count
2039 case HIP_API_ID_hipStreamGetPriority:
2040 oss <<
"hipStreamGetPriority(" 2041 <<
" stream=" << data->args.hipStreamGetPriority.stream <<
"," 2042 <<
" priority=" << data->args.hipStreamGetPriority.priority
2045 case HIP_API_ID_hipMemset2D:
2046 oss <<
"hipMemset2D(" 2047 <<
" dst=" << data->args.hipMemset2D.dst <<
"," 2048 <<
" pitch=" << data->args.hipMemset2D.pitch <<
"," 2049 <<
" value=" << data->args.hipMemset2D.value <<
"," 2050 <<
" width=" << data->args.hipMemset2D.width <<
"," 2051 <<
" height=" << data->args.hipMemset2D.height
2054 case HIP_API_ID_hipMemset2DAsync:
2055 oss <<
"hipMemset2DAsync(" 2056 <<
" dst=" << data->args.hipMemset2DAsync.dst <<
"," 2057 <<
" pitch=" << data->args.hipMemset2DAsync.pitch <<
"," 2058 <<
" value=" << data->args.hipMemset2DAsync.value <<
"," 2059 <<
" width=" << data->args.hipMemset2DAsync.width <<
"," 2060 <<
" height=" << data->args.hipMemset2DAsync.height <<
"," 2061 <<
" stream=" << data->args.hipMemset2DAsync.stream
2064 case HIP_API_ID_hipDeviceCanAccessPeer:
2065 oss <<
"hipDeviceCanAccessPeer(" 2066 <<
" canAccessPeer=" << data->args.hipDeviceCanAccessPeer.canAccessPeer <<
"," 2067 <<
" deviceId=" << data->args.hipDeviceCanAccessPeer.deviceId <<
"," 2068 <<
" peerDeviceId=" << data->args.hipDeviceCanAccessPeer.peerDeviceId
2071 case HIP_API_ID_hipDeviceEnablePeerAccess:
2072 oss <<
"hipDeviceEnablePeerAccess(" 2073 <<
" peerDeviceId=" << data->args.hipDeviceEnablePeerAccess.peerDeviceId <<
"," 2074 <<
" flags=" << data->args.hipDeviceEnablePeerAccess.flags
2077 case HIP_API_ID_hipModuleUnload:
2078 oss <<
"hipModuleUnload(" 2079 <<
" module=" << data->args.hipModuleUnload.module
2082 case HIP_API_ID_hipHostUnregister:
2083 oss <<
"hipHostUnregister(" 2084 <<
" hostPtr=" << data->args.hipHostUnregister.hostPtr
2087 case HIP_API_ID_hipProfilerStop:
2088 oss <<
"hipProfilerStop(" 2091 case HIP_API_ID_hipLaunchByPtr:
2092 oss <<
"hipLaunchByPtr(" 2093 <<
" func=" << data->args.hipLaunchByPtr.func
2096 case HIP_API_ID_hipStreamSynchronize:
2097 oss <<
"hipStreamSynchronize(" 2098 <<
" stream=" << data->args.hipStreamSynchronize.stream
2101 case HIP_API_ID_hipDeviceSetCacheConfig:
2102 oss <<
"hipDeviceSetCacheConfig(" 2103 <<
" cacheConfig=" << data->args.hipDeviceSetCacheConfig.cacheConfig
2106 case HIP_API_ID_hipGetErrorName:
2107 oss <<
"hipGetErrorName(" 2108 <<
" hip_error=" << data->args.hipGetErrorName.hip_error
2111 case HIP_API_ID_hipMemcpyHtoD:
2112 oss <<
"hipMemcpyHtoD(" 2113 <<
" dst=" << data->args.hipMemcpyHtoD.dst <<
"," 2114 <<
" src=" << data->args.hipMemcpyHtoD.src <<
"," 2115 <<
" sizeBytes=" << data->args.hipMemcpyHtoD.sizeBytes
2118 case HIP_API_ID_hipModuleGetGlobal:
2119 oss <<
"hipModuleGetGlobal(" 2120 <<
" dptr=" << data->args.hipModuleGetGlobal.dptr <<
"," 2121 <<
" bytes=" << data->args.hipModuleGetGlobal.bytes <<
"," 2122 <<
" hmod=" << data->args.hipModuleGetGlobal.hmod <<
"," 2123 <<
" name=" << data->args.hipModuleGetGlobal.name
2126 case HIP_API_ID_hipMemcpyHtoA:
2127 oss <<
"hipMemcpyHtoA(" 2128 <<
" dstArray=" << data->args.hipMemcpyHtoA.dstArray <<
"," 2129 <<
" dstOffset=" << data->args.hipMemcpyHtoA.dstOffset <<
"," 2130 <<
" srcHost=" << data->args.hipMemcpyHtoA.srcHost <<
"," 2131 <<
" count=" << data->args.hipMemcpyHtoA.count
2134 case HIP_API_ID_hipCtxCreate:
2135 oss <<
"hipCtxCreate(" 2136 <<
" ctx=" << data->args.hipCtxCreate.ctx <<
"," 2137 <<
" flags=" << data->args.hipCtxCreate.flags <<
"," 2138 <<
" device=" << data->args.hipCtxCreate.device
2141 case HIP_API_ID_hipMemcpy2D:
2142 oss <<
"hipMemcpy2D(" 2143 <<
" dst=" << data->args.hipMemcpy2D.dst <<
"," 2144 <<
" dpitch=" << data->args.hipMemcpy2D.dpitch <<
"," 2145 <<
" src=" << data->args.hipMemcpy2D.src <<
"," 2146 <<
" spitch=" << data->args.hipMemcpy2D.spitch <<
"," 2147 <<
" width=" << data->args.hipMemcpy2D.width <<
"," 2148 <<
" height=" << data->args.hipMemcpy2D.height <<
"," 2149 <<
" kind=" << data->args.hipMemcpy2D.kind
2152 case HIP_API_ID_hipIpcCloseMemHandle:
2153 oss <<
"hipIpcCloseMemHandle(" 2154 <<
" devPtr=" << data->args.hipIpcCloseMemHandle.devPtr
2157 case HIP_API_ID_hipChooseDevice:
2158 oss <<
"hipChooseDevice(" 2159 <<
" device=" << data->args.hipChooseDevice.device <<
"," 2160 <<
" prop=" << data->args.hipChooseDevice.prop
2163 case HIP_API_ID_hipDeviceSetSharedMemConfig:
2164 oss <<
"hipDeviceSetSharedMemConfig(" 2165 <<
" config=" << data->args.hipDeviceSetSharedMemConfig.config
2168 case HIP_API_ID_hipDeviceComputeCapability:
2169 oss <<
"hipDeviceComputeCapability(" 2170 <<
" major=" << data->args.hipDeviceComputeCapability.major <<
"," 2171 <<
" minor=" << data->args.hipDeviceComputeCapability.minor <<
"," 2172 <<
" device=" << data->args.hipDeviceComputeCapability.device
2175 case HIP_API_ID_hipDeviceGet:
2176 oss <<
"hipDeviceGet(" 2177 <<
" device=" << data->args.hipDeviceGet.device <<
"," 2178 <<
" ordinal=" << data->args.hipDeviceGet.ordinal
2181 case HIP_API_ID_hipProfilerStart:
2182 oss <<
"hipProfilerStart(" 2185 case HIP_API_ID_hipCtxSetCacheConfig:
2186 oss <<
"hipCtxSetCacheConfig(" 2187 <<
" cacheConfig=" << data->args.hipCtxSetCacheConfig.cacheConfig
2190 case HIP_API_ID_hipFuncSetCacheConfig:
2191 oss <<
"hipFuncSetCacheConfig(" 2192 <<
" func=" << data->args.hipFuncSetCacheConfig.func <<
"," 2193 <<
" config=" << data->args.hipFuncSetCacheConfig.config
2196 case HIP_API_ID_hipMemcpyPeerAsync:
2197 oss <<
"hipMemcpyPeerAsync(" 2198 <<
" dst=" << data->args.hipMemcpyPeerAsync.dst <<
"," 2199 <<
" dstDeviceId=" << data->args.hipMemcpyPeerAsync.dstDeviceId <<
"," 2200 <<
" src=" << data->args.hipMemcpyPeerAsync.src <<
"," 2201 <<
" srcDevice=" << data->args.hipMemcpyPeerAsync.srcDevice <<
"," 2202 <<
" sizeBytes=" << data->args.hipMemcpyPeerAsync.sizeBytes <<
"," 2203 <<
" stream=" << data->args.hipMemcpyPeerAsync.stream
2206 case HIP_API_ID_hipEventElapsedTime:
2207 oss <<
"hipEventElapsedTime(" 2208 <<
" ms=" << data->args.hipEventElapsedTime.ms <<
"," 2209 <<
" start=" << data->args.hipEventElapsedTime.start <<
"," 2210 <<
" stop=" << data->args.hipEventElapsedTime.stop
2213 case HIP_API_ID_hipDevicePrimaryCtxReset:
2214 oss <<
"hipDevicePrimaryCtxReset(" 2215 <<
" dev=" << data->args.hipDevicePrimaryCtxReset.dev
2218 case HIP_API_ID_hipEventDestroy:
2219 oss <<
"hipEventDestroy(" 2220 <<
" event=" << data->args.hipEventDestroy.event
2223 case HIP_API_ID_hipCtxPopCurrent:
2224 oss <<
"hipCtxPopCurrent(" 2225 <<
" ctx=" << data->args.hipCtxPopCurrent.ctx
2228 case HIP_API_ID_hipGetSymbolAddress:
2229 oss <<
"hipGetSymbolAddress(" 2230 <<
" devPtr=" << data->args.hipGetSymbolAddress.devPtr <<
"," 2231 <<
" symbolName=" << data->args.hipGetSymbolAddress.symbolName
2234 case HIP_API_ID_hipHostGetFlags:
2235 oss <<
"hipHostGetFlags(" 2236 <<
" flagsPtr=" << data->args.hipHostGetFlags.flagsPtr <<
"," 2237 <<
" hostPtr=" << data->args.hipHostGetFlags.hostPtr
2240 case HIP_API_ID_hipHostMalloc:
2241 oss <<
"hipHostMalloc(" 2242 <<
" ptr=" << data->args.hipHostMalloc.ptr <<
"," 2243 <<
" size=" << data->args.hipHostMalloc.size <<
"," 2244 <<
" flags=" << data->args.hipHostMalloc.flags
2247 case HIP_API_ID_hipDriverGetVersion:
2248 oss <<
"hipDriverGetVersion(" 2249 <<
" driverVersion=" << data->args.hipDriverGetVersion.driverVersion
2252 case HIP_API_ID_hipMemGetInfo:
2253 oss <<
"hipMemGetInfo(" 2254 <<
" free=" << data->args.hipMemGetInfo.free <<
"," 2255 <<
" total=" << data->args.hipMemGetInfo.total
2258 case HIP_API_ID_hipDeviceReset:
2259 oss <<
"hipDeviceReset(" 2262 case HIP_API_ID_hipMemset:
2264 <<
" dst=" << data->args.hipMemset.dst <<
"," 2265 <<
" value=" << data->args.hipMemset.value <<
"," 2266 <<
" sizeBytes=" << data->args.hipMemset.sizeBytes
2269 case HIP_API_ID_hipMemsetD8:
2270 oss <<
"hipMemsetD8(" 2271 <<
" dest=" << data->args.hipMemsetD8.dest <<
"," 2272 <<
" value=" << data->args.hipMemsetD8.value <<
"," 2273 <<
" sizeBytes=" << data->args.hipMemsetD8.sizeBytes
2276 case HIP_API_ID_hipHostRegister:
2277 oss <<
"hipHostRegister(" 2278 <<
" hostPtr=" << data->args.hipHostRegister.hostPtr <<
"," 2279 <<
" sizeBytes=" << data->args.hipHostRegister.sizeBytes <<
"," 2280 <<
" flags=" << data->args.hipHostRegister.flags
2283 case HIP_API_ID_hipCtxSetSharedMemConfig:
2284 oss <<
"hipCtxSetSharedMemConfig(" 2285 <<
" config=" << data->args.hipCtxSetSharedMemConfig.config
2288 case HIP_API_ID_hipArray3DCreate:
2289 oss <<
"hipArray3DCreate(" 2290 <<
" array=" << data->args.hipArray3DCreate.array <<
"," 2291 <<
" pAllocateArray=" << data->args.hipArray3DCreate.pAllocateArray
2294 case HIP_API_ID_hipIpcOpenMemHandle:
2295 oss <<
"hipIpcOpenMemHandle(" 2296 <<
" devPtr=" << data->args.hipIpcOpenMemHandle.devPtr <<
"," 2297 <<
" handle=" << data->args.hipIpcOpenMemHandle.handle <<
"," 2298 <<
" flags=" << data->args.hipIpcOpenMemHandle.flags
2301 case HIP_API_ID_hipGetLastError:
2302 oss <<
"hipGetLastError(" 2305 case HIP_API_ID_hipCtxDestroy:
2306 oss <<
"hipCtxDestroy(" 2307 <<
" ctx=" << data->args.hipCtxDestroy.ctx
2310 case HIP_API_ID_hipDeviceGetSharedMemConfig:
2311 oss <<
"hipDeviceGetSharedMemConfig(" 2312 <<
" pConfig=" << data->args.hipDeviceGetSharedMemConfig.pConfig
2315 case HIP_API_ID_hipSetDeviceFlags:
2316 oss <<
"hipSetDeviceFlags(" 2317 <<
" flags=" << data->args.hipSetDeviceFlags.flags
2320 case HIP_API_ID_hipHccModuleLaunchKernel:
2321 oss <<
"hipHccModuleLaunchKernel(" 2322 <<
" f=" << data->args.hipHccModuleLaunchKernel.f <<
"," 2323 <<
" globalWorkSizeX=" << data->args.hipHccModuleLaunchKernel.globalWorkSizeX <<
"," 2324 <<
" globalWorkSizeY=" << data->args.hipHccModuleLaunchKernel.globalWorkSizeY <<
"," 2325 <<
" globalWorkSizeZ=" << data->args.hipHccModuleLaunchKernel.globalWorkSizeZ <<
"," 2326 <<
" localWorkSizeX=" << data->args.hipHccModuleLaunchKernel.localWorkSizeX <<
"," 2327 <<
" localWorkSizeY=" << data->args.hipHccModuleLaunchKernel.localWorkSizeY <<
"," 2328 <<
" localWorkSizeZ=" << data->args.hipHccModuleLaunchKernel.localWorkSizeZ <<
"," 2329 <<
" sharedMemBytes=" << data->args.hipHccModuleLaunchKernel.sharedMemBytes <<
"," 2330 <<
" hStream=" << data->args.hipHccModuleLaunchKernel.hStream <<
"," 2331 <<
" kernelParams=" << data->args.hipHccModuleLaunchKernel.kernelParams <<
"," 2332 <<
" extra=" << data->args.hipHccModuleLaunchKernel.extra <<
"," 2333 <<
" startEvent=" << data->args.hipHccModuleLaunchKernel.startEvent <<
"," 2334 <<
" stopEvent=" << data->args.hipHccModuleLaunchKernel.stopEvent
2337 case HIP_API_ID_hipFree:
2339 <<
" ptr=" << data->args.hipFree.ptr
2342 case HIP_API_ID_hipDeviceGetAttribute:
2343 oss <<
"hipDeviceGetAttribute(" 2344 <<
" pi=" << data->args.hipDeviceGetAttribute.pi <<
"," 2345 <<
" attr=" << data->args.hipDeviceGetAttribute.attr <<
"," 2346 <<
" deviceId=" << data->args.hipDeviceGetAttribute.deviceId
2349 case HIP_API_ID_hipMemcpyDtoH:
2350 oss <<
"hipMemcpyDtoH(" 2351 <<
" dst=" << data->args.hipMemcpyDtoH.dst <<
"," 2352 <<
" src=" << data->args.hipMemcpyDtoH.src <<
"," 2353 <<
" sizeBytes=" << data->args.hipMemcpyDtoH.sizeBytes
2356 case HIP_API_ID_hipCtxDisablePeerAccess:
2357 oss <<
"hipCtxDisablePeerAccess(" 2358 <<
" peerCtx=" << data->args.hipCtxDisablePeerAccess.peerCtx
2361 case HIP_API_ID_hipMallocManaged:
2362 oss <<
"hipMallocManaged(" 2363 <<
" devPtr=" << data->args.hipMallocManaged.devPtr <<
"," 2364 <<
" size=" << data->args.hipMallocManaged.size <<
"," 2365 <<
" flags=" << data->args.hipMallocManaged.flags
2368 case HIP_API_ID_hipDeviceGetByPCIBusId:
2369 oss <<
"hipDeviceGetByPCIBusId(" 2370 <<
" device=" << data->args.hipDeviceGetByPCIBusId.device <<
"," 2371 <<
" pciBusId=" << data->args.hipDeviceGetByPCIBusId.pciBusId
2374 case HIP_API_ID_hipIpcGetMemHandle:
2375 oss <<
"hipIpcGetMemHandle(" 2376 <<
" handle=" << data->args.hipIpcGetMemHandle.handle <<
"," 2377 <<
" devPtr=" << data->args.hipIpcGetMemHandle.devPtr
2380 case HIP_API_ID_hipMemcpyHtoDAsync:
2381 oss <<
"hipMemcpyHtoDAsync(" 2382 <<
" dst=" << data->args.hipMemcpyHtoDAsync.dst <<
"," 2383 <<
" src=" << data->args.hipMemcpyHtoDAsync.src <<
"," 2384 <<
" sizeBytes=" << data->args.hipMemcpyHtoDAsync.sizeBytes <<
"," 2385 <<
" stream=" << data->args.hipMemcpyHtoDAsync.stream
2388 case HIP_API_ID_hipCtxGetDevice:
2389 oss <<
"hipCtxGetDevice(" 2390 <<
" device=" << data->args.hipCtxGetDevice.device
2393 case HIP_API_ID_hipMemset3D:
2394 oss <<
"hipMemset3D(" 2395 <<
" pitchedDevPtr=" << data->args.hipMemset3D.pitchedDevPtr <<
"," 2396 <<
" value=" << data->args.hipMemset3D.value <<
"," 2397 <<
" extent=" << data->args.hipMemset3D.extent
2400 case HIP_API_ID_hipModuleLoadData:
2401 oss <<
"hipModuleLoadData(" 2402 <<
" module=" << data->args.hipModuleLoadData.module <<
"," 2403 <<
" image=" << data->args.hipModuleLoadData.image
2406 case HIP_API_ID_hipDeviceTotalMem:
2407 oss <<
"hipDeviceTotalMem(" 2408 <<
" bytes=" << data->args.hipDeviceTotalMem.bytes <<
"," 2409 <<
" device=" << data->args.hipDeviceTotalMem.device
2412 case HIP_API_ID_hipCtxSetCurrent:
2413 oss <<
"hipCtxSetCurrent(" 2414 <<
" ctx=" << data->args.hipCtxSetCurrent.ctx
2417 case HIP_API_ID_hipGetErrorString:
2418 oss <<
"hipGetErrorString(" 2419 <<
" hipError=" << data->args.hipGetErrorString.hipError
2422 case HIP_API_ID_hipDevicePrimaryCtxRetain:
2423 oss <<
"hipDevicePrimaryCtxRetain(" 2424 <<
" pctx=" << data->args.hipDevicePrimaryCtxRetain.pctx <<
"," 2425 <<
" dev=" << data->args.hipDevicePrimaryCtxRetain.dev
2428 case HIP_API_ID_hipDeviceDisablePeerAccess:
2429 oss <<
"hipDeviceDisablePeerAccess(" 2430 <<
" peerDeviceId=" << data->args.hipDeviceDisablePeerAccess.peerDeviceId
2433 case HIP_API_ID_hipStreamCreateWithFlags:
2434 oss <<
"hipStreamCreateWithFlags(" 2435 <<
" stream=" << data->args.hipStreamCreateWithFlags.stream <<
"," 2436 <<
" flags=" << data->args.hipStreamCreateWithFlags.flags
2439 case HIP_API_ID_hipMemcpyFromArray:
2440 oss <<
"hipMemcpyFromArray(" 2441 <<
" dst=" << data->args.hipMemcpyFromArray.dst <<
"," 2442 <<
" srcArray=" << data->args.hipMemcpyFromArray.srcArray <<
"," 2443 <<
" wOffset=" << data->args.hipMemcpyFromArray.wOffset <<
"," 2444 <<
" hOffset=" << data->args.hipMemcpyFromArray.hOffset <<
"," 2445 <<
" count=" << data->args.hipMemcpyFromArray.count <<
"," 2446 <<
" kind=" << data->args.hipMemcpyFromArray.kind
2449 case HIP_API_ID_hipMemcpy2DAsync:
2450 oss <<
"hipMemcpy2DAsync(" 2451 <<
" dst=" << data->args.hipMemcpy2DAsync.dst <<
"," 2452 <<
" dpitch=" << data->args.hipMemcpy2DAsync.dpitch <<
"," 2453 <<
" src=" << data->args.hipMemcpy2DAsync.src <<
"," 2454 <<
" spitch=" << data->args.hipMemcpy2DAsync.spitch <<
"," 2455 <<
" width=" << data->args.hipMemcpy2DAsync.width <<
"," 2456 <<
" height=" << data->args.hipMemcpy2DAsync.height <<
"," 2457 <<
" kind=" << data->args.hipMemcpy2DAsync.kind <<
"," 2458 <<
" stream=" << data->args.hipMemcpy2DAsync.stream
2461 case HIP_API_ID_hipGetSymbolSize:
2462 oss <<
"hipGetSymbolSize(" 2463 <<
" size=" << data->args.hipGetSymbolSize.size <<
"," 2464 <<
" symbolName=" << data->args.hipGetSymbolSize.symbolName
2467 case HIP_API_ID_hipEventCreateWithFlags:
2468 oss <<
"hipEventCreateWithFlags(" 2469 <<
" event=" << data->args.hipEventCreateWithFlags.event <<
"," 2470 <<
" flags=" << data->args.hipEventCreateWithFlags.flags
2473 case HIP_API_ID_hipStreamQuery:
2474 oss <<
"hipStreamQuery(" 2475 <<
" stream=" << data->args.hipStreamQuery.stream
2478 case HIP_API_ID_hipDeviceGetPCIBusId:
2479 oss <<
"hipDeviceGetPCIBusId(" 2480 <<
" pciBusId=" << data->args.hipDeviceGetPCIBusId.pciBusId <<
"," 2481 <<
" len=" << data->args.hipDeviceGetPCIBusId.len <<
"," 2482 <<
" device=" << data->args.hipDeviceGetPCIBusId.device
2485 case HIP_API_ID_hipMemcpy:
2487 <<
" dst=" << data->args.hipMemcpy.dst <<
"," 2488 <<
" src=" << data->args.hipMemcpy.src <<
"," 2489 <<
" sizeBytes=" << data->args.hipMemcpy.sizeBytes <<
"," 2490 <<
" kind=" << data->args.hipMemcpy.kind
2493 case HIP_API_ID_hipPeekAtLastError:
2494 oss <<
"hipPeekAtLastError(" 2497 case HIP_API_ID_hipStreamAddCallback:
2498 oss <<
"hipStreamAddCallback(" 2499 <<
" stream=" << data->args.hipStreamAddCallback.stream <<
"," 2500 <<
" callback=" << data->args.hipStreamAddCallback.callback <<
"," 2501 <<
" userData=" << data->args.hipStreamAddCallback.userData <<
"," 2502 <<
" flags=" << data->args.hipStreamAddCallback.flags
2505 case HIP_API_ID_hipMemcpyToArray:
2506 oss <<
"hipMemcpyToArray(" 2507 <<
" dst=" << data->args.hipMemcpyToArray.dst <<
"," 2508 <<
" wOffset=" << data->args.hipMemcpyToArray.wOffset <<
"," 2509 <<
" hOffset=" << data->args.hipMemcpyToArray.hOffset <<
"," 2510 <<
" src=" << data->args.hipMemcpyToArray.src <<
"," 2511 <<
" count=" << data->args.hipMemcpyToArray.count <<
"," 2512 <<
" kind=" << data->args.hipMemcpyToArray.kind
2515 case HIP_API_ID_hipMemsetD32:
2516 oss <<
"hipMemsetD32(" 2517 <<
" dest=" << data->args.hipMemsetD32.dest <<
"," 2518 <<
" value=" << data->args.hipMemsetD32.value <<
"," 2519 <<
" count=" << data->args.hipMemsetD32.count
2522 case HIP_API_ID_hipDeviceSynchronize:
2523 oss <<
"hipDeviceSynchronize(" 2526 case HIP_API_ID_hipDeviceGetCacheConfig:
2527 oss <<
"hipDeviceGetCacheConfig(" 2528 <<
" cacheConfig=" << data->args.hipDeviceGetCacheConfig.cacheConfig
2531 case HIP_API_ID_hipMalloc3D:
2532 oss <<
"hipMalloc3D(" 2533 <<
" pitchedDevPtr=" << data->args.hipMalloc3D.pitchedDevPtr <<
"," 2534 <<
" extent=" << data->args.hipMalloc3D.extent
2537 case HIP_API_ID_hipPointerGetAttributes:
2538 oss <<
"hipPointerGetAttributes(" 2539 <<
" attributes=" << data->args.hipPointerGetAttributes.attributes <<
"," 2540 <<
" ptr=" << data->args.hipPointerGetAttributes.ptr
2543 case HIP_API_ID_hipMemsetAsync:
2544 oss <<
"hipMemsetAsync(" 2545 <<
" dst=" << data->args.hipMemsetAsync.dst <<
"," 2546 <<
" value=" << data->args.hipMemsetAsync.value <<
"," 2547 <<
" sizeBytes=" << data->args.hipMemsetAsync.sizeBytes <<
"," 2548 <<
" stream=" << data->args.hipMemsetAsync.stream
2551 case HIP_API_ID_hipMemcpyToSymbol:
2552 oss <<
"hipMemcpyToSymbol(" 2553 <<
" symbolName=" << data->args.hipMemcpyToSymbol.symbolName <<
"," 2554 <<
" src=" << data->args.hipMemcpyToSymbol.src <<
"," 2555 <<
" sizeBytes=" << data->args.hipMemcpyToSymbol.sizeBytes <<
"," 2556 <<
" offset=" << data->args.hipMemcpyToSymbol.offset <<
"," 2557 <<
" kind=" << data->args.hipMemcpyToSymbol.kind
2560 case HIP_API_ID_hipCtxPushCurrent:
2561 oss <<
"hipCtxPushCurrent(" 2562 <<
" ctx=" << data->args.hipCtxPushCurrent.ctx
2565 case HIP_API_ID_hipMemcpyPeer:
2566 oss <<
"hipMemcpyPeer(" 2567 <<
" dst=" << data->args.hipMemcpyPeer.dst <<
"," 2568 <<
" dstDeviceId=" << data->args.hipMemcpyPeer.dstDeviceId <<
"," 2569 <<
" src=" << data->args.hipMemcpyPeer.src <<
"," 2570 <<
" srcDeviceId=" << data->args.hipMemcpyPeer.srcDeviceId <<
"," 2571 <<
" sizeBytes=" << data->args.hipMemcpyPeer.sizeBytes
2574 case HIP_API_ID_hipEventSynchronize:
2575 oss <<
"hipEventSynchronize(" 2576 <<
" event=" << data->args.hipEventSynchronize.event
2579 case HIP_API_ID_hipMemcpyDtoDAsync:
2580 oss <<
"hipMemcpyDtoDAsync(" 2581 <<
" dst=" << data->args.hipMemcpyDtoDAsync.dst <<
"," 2582 <<
" src=" << data->args.hipMemcpyDtoDAsync.src <<
"," 2583 <<
" sizeBytes=" << data->args.hipMemcpyDtoDAsync.sizeBytes <<
"," 2584 <<
" stream=" << data->args.hipMemcpyDtoDAsync.stream
2587 case HIP_API_ID_hipExtMallocWithFlags:
2588 oss <<
"hipExtMallocWithFlags(" 2589 <<
" ptr=" << data->args.hipExtMallocWithFlags.ptr <<
"," 2590 <<
" sizeBytes=" << data->args.hipExtMallocWithFlags.sizeBytes <<
"," 2591 <<
" flags=" << data->args.hipExtMallocWithFlags.flags
2594 case HIP_API_ID_hipCtxEnablePeerAccess:
2595 oss <<
"hipCtxEnablePeerAccess(" 2596 <<
" peerCtx=" << data->args.hipCtxEnablePeerAccess.peerCtx <<
"," 2597 <<
" flags=" << data->args.hipCtxEnablePeerAccess.flags
2600 case HIP_API_ID_hipMemcpyDtoHAsync:
2601 oss <<
"hipMemcpyDtoHAsync(" 2602 <<
" dst=" << data->args.hipMemcpyDtoHAsync.dst <<
"," 2603 <<
" src=" << data->args.hipMemcpyDtoHAsync.src <<
"," 2604 <<
" sizeBytes=" << data->args.hipMemcpyDtoHAsync.sizeBytes <<
"," 2605 <<
" stream=" << data->args.hipMemcpyDtoHAsync.stream
2608 case HIP_API_ID_hipModuleLaunchKernel:
2609 oss <<
"hipModuleLaunchKernel(" 2610 <<
" f=" << data->args.hipModuleLaunchKernel.f <<
"," 2611 <<
" gridDimX=" << data->args.hipModuleLaunchKernel.gridDimX <<
"," 2612 <<
" gridDimY=" << data->args.hipModuleLaunchKernel.gridDimY <<
"," 2613 <<
" gridDimZ=" << data->args.hipModuleLaunchKernel.gridDimZ <<
"," 2614 <<
" blockDimX=" << data->args.hipModuleLaunchKernel.blockDimX <<
"," 2615 <<
" blockDimY=" << data->args.hipModuleLaunchKernel.blockDimY <<
"," 2616 <<
" blockDimZ=" << data->args.hipModuleLaunchKernel.blockDimZ <<
"," 2617 <<
" sharedMemBytes=" << data->args.hipModuleLaunchKernel.sharedMemBytes <<
"," 2618 <<
" stream=" << data->args.hipModuleLaunchKernel.stream <<
"," 2619 <<
" kernelParams=" << data->args.hipModuleLaunchKernel.kernelParams <<
"," 2620 <<
" extra=" << data->args.hipModuleLaunchKernel.extra
2623 case HIP_API_ID_hipModuleGetTexRef:
2624 oss <<
"hipModuleGetTexRef(" 2625 <<
" texRef=" << data->args.hipModuleGetTexRef.texRef <<
"," 2626 <<
" hmod=" << data->args.hipModuleGetTexRef.hmod <<
"," 2627 <<
" name=" << data->args.hipModuleGetTexRef.name
2630 case HIP_API_ID_hipDeviceGetLimit:
2631 oss <<
"hipDeviceGetLimit(" 2632 <<
" pValue=" << data->args.hipDeviceGetLimit.pValue <<
"," 2633 <<
" limit=" << data->args.hipDeviceGetLimit.limit
2636 case HIP_API_ID_hipModuleLoadDataEx:
2637 oss <<
"hipModuleLoadDataEx(" 2638 <<
" module=" << data->args.hipModuleLoadDataEx.module <<
"," 2639 <<
" image=" << data->args.hipModuleLoadDataEx.image <<
"," 2640 <<
" numOptions=" << data->args.hipModuleLoadDataEx.numOptions <<
"," 2641 <<
" options=" << data->args.hipModuleLoadDataEx.options <<
"," 2642 <<
" optionValues=" << data->args.hipModuleLoadDataEx.optionValues
2645 case HIP_API_ID_hipRuntimeGetVersion:
2646 oss <<
"hipRuntimeGetVersion(" 2647 <<
" runtimeVersion=" << data->args.hipRuntimeGetVersion.runtimeVersion
2650 case HIP_API_ID_hipGetDeviceProperties:
2651 oss <<
"hipGetDeviceProperties(" 2652 <<
" prop=" << data->args.hipGetDeviceProperties.prop <<
"," 2653 <<
" deviceId=" << data->args.hipGetDeviceProperties.deviceId
2656 case HIP_API_ID_hipFreeArray:
2657 oss <<
"hipFreeArray(" 2658 <<
" array=" << data->args.hipFreeArray.array
2661 case HIP_API_ID_hipDevicePrimaryCtxRelease:
2662 oss <<
"hipDevicePrimaryCtxRelease(" 2663 <<
" dev=" << data->args.hipDevicePrimaryCtxRelease.dev
2666 case HIP_API_ID_hipHostGetDevicePointer:
2667 oss <<
"hipHostGetDevicePointer(" 2668 <<
" devPtr=" << data->args.hipHostGetDevicePointer.devPtr <<
"," 2669 <<
" hstPtr=" << data->args.hipHostGetDevicePointer.hstPtr <<
"," 2670 <<
" flags=" << data->args.hipHostGetDevicePointer.flags
2673 case HIP_API_ID_hipMemcpyParam2D:
2674 oss <<
"hipMemcpyParam2D(" 2675 <<
" pCopy=" << data->args.hipMemcpyParam2D.pCopy
2678 case HIP_API_ID_hipModuleGetFunction:
2679 oss <<
"hipModuleGetFunction(" 2680 <<
" function=" << data->args.hipModuleGetFunction.function <<
"," 2681 <<
" module=" << data->args.hipModuleGetFunction.module <<
"," 2682 <<
" kname=" << data->args.hipModuleGetFunction.kname
2685 case HIP_API_ID_hipMemsetD32Async:
2686 oss <<
"hipMemsetD32Async(" 2687 <<
" dst=" << data->args.hipMemsetD32Async.dst <<
"," 2688 <<
" value=" << data->args.hipMemsetD32Async.value <<
"," 2689 <<
" count=" << data->args.hipMemsetD32Async.count <<
"," 2690 <<
" stream=" << data->args.hipMemsetD32Async.stream
2693 case HIP_API_ID_hipGetDevice:
2694 oss <<
"hipGetDevice(" 2695 <<
" deviceId=" << data->args.hipGetDevice.deviceId
2698 case HIP_API_ID_hipGetDeviceCount:
2699 oss <<
"hipGetDeviceCount(" 2700 <<
" count=" << data->args.hipGetDeviceCount.count
2703 default: oss <<
"unknown";
2705 return strdup(oss.str().c_str());
2708 #endif // _HIP_PROF_STR_H Definition: driver_types.h:232
Definition: hip_runtime_api.h:137
Definition: hip_module.cpp:90
Definition: hip_hcc_internal.h:882
Definition: texture_types.h:73
Definition: driver_types.h:70
hipDeviceAttribute_t
Definition: hip_runtime_api.h:259
void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
Definition: hip_runtime_api.h:834
Definition: driver_types.h:245
Definition: driver_types.h:61
Definition: driver_types.h:225
hipFuncCache_t
Definition: hip_runtime_api.h:245
Definition: hip_runtime_api.h:83
hipSharedMemConfig
Definition: hip_runtime_api.h:256
Definition: hip_hcc_internal.h:702
Definition: hip_hcc_internal.h:521
Definition: driver_types.h:82
Definition: hip_runtime_api.h:106
Definition: hip_hcc_internal.h:369
Definition: hip_prof_str.h:364