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_hipModuleUnload = 48,
86 HIP_API_ID_hipHostUnregister = 49,
87 HIP_API_ID_hipProfilerStop = 50,
88 HIP_API_ID_hipLaunchByPtr = 51,
89 HIP_API_ID_hipStreamSynchronize = 52,
90 HIP_API_ID_hipDeviceSetCacheConfig = 53,
91 HIP_API_ID_hipGetErrorName = 54,
92 HIP_API_ID_hipMemcpyHtoD = 55,
93 HIP_API_ID_hipModuleGetGlobal = 56,
94 HIP_API_ID_hipMemcpyHtoA = 57,
95 HIP_API_ID_hipCtxCreate = 58,
96 HIP_API_ID_hipMemcpy2D = 59,
97 HIP_API_ID_hipIpcCloseMemHandle = 60,
98 HIP_API_ID_hipChooseDevice = 61,
99 HIP_API_ID_hipDeviceSetSharedMemConfig = 62,
100 HIP_API_ID_hipDeviceComputeCapability = 63,
101 HIP_API_ID_hipDeviceGet = 64,
102 HIP_API_ID_hipProfilerStart = 65,
103 HIP_API_ID_hipCtxSetCacheConfig = 66,
104 HIP_API_ID_hipFuncSetCacheConfig = 67,
105 HIP_API_ID_hipMemcpyPeerAsync = 68,
106 HIP_API_ID_hipEventElapsedTime = 69,
107 HIP_API_ID_hipDevicePrimaryCtxReset = 70,
108 HIP_API_ID_hipMemcpy3DAsync = 71,
109 HIP_API_ID_hipEventDestroy = 72,
110 HIP_API_ID_hipCtxPopCurrent = 73,
111 HIP_API_ID_hipGetSymbolAddress = 74,
112 HIP_API_ID_hipHostGetFlags = 75,
113 HIP_API_ID_hipHostMalloc = 76,
114 HIP_API_ID_hipDriverGetVersion = 77,
115 HIP_API_ID_hipMemGetInfo = 78,
116 HIP_API_ID_hipDeviceReset = 79,
117 HIP_API_ID_hipMemset = 80,
118 HIP_API_ID_hipMemsetD8 = 81,
119 HIP_API_ID_hipMemcpyParam2DAsync = 82,
120 HIP_API_ID_hipHostRegister = 83,
121 HIP_API_ID_hipCtxSetSharedMemConfig = 84,
122 HIP_API_ID_hipArray3DCreate = 85,
123 HIP_API_ID_hipIpcOpenMemHandle = 86,
124 HIP_API_ID_hipGetLastError = 87,
125 HIP_API_ID_hipCtxDestroy = 88,
126 HIP_API_ID_hipDeviceGetSharedMemConfig = 89,
127 HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = 90,
128 HIP_API_ID_hipSetDeviceFlags = 91,
129 HIP_API_ID_hipHccModuleLaunchKernel = 92,
130 HIP_API_ID_hipFree = 93,
131 HIP_API_ID_hipOccupancyMaxPotentialBlockSize = 94,
132 HIP_API_ID_hipDeviceGetAttribute = 95,
133 HIP_API_ID_hipMemcpyDtoH = 96,
134 HIP_API_ID_hipCtxDisablePeerAccess = 97,
135 HIP_API_ID_hipMallocManaged = 98,
136 HIP_API_ID_hipDeviceGetByPCIBusId = 99,
137 HIP_API_ID_hipIpcGetMemHandle = 100,
138 HIP_API_ID_hipMemcpyHtoDAsync = 101,
139 HIP_API_ID_hipCtxGetDevice = 102,
140 HIP_API_ID_hipMemset3D = 103,
141 HIP_API_ID_hipModuleLoadData = 104,
142 HIP_API_ID_hipDeviceTotalMem = 105,
143 HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor = 106,
144 HIP_API_ID_hipCtxSetCurrent = 107,
145 HIP_API_ID_hipGetErrorString = 108,
146 HIP_API_ID_hipDevicePrimaryCtxRetain = 109,
147 HIP_API_ID_hipDeviceDisablePeerAccess = 110,
148 HIP_API_ID_hipStreamCreateWithFlags = 111,
149 HIP_API_ID_hipMemcpyFromArray = 112,
150 HIP_API_ID_hipMemcpy2DAsync = 113,
151 HIP_API_ID_hipFuncGetAttributes = 114,
152 HIP_API_ID_hipGetSymbolSize = 115,
153 HIP_API_ID_hipEventCreateWithFlags = 116,
154 HIP_API_ID_hipStreamQuery = 117,
155 HIP_API_ID_hipDeviceGetPCIBusId = 118,
156 HIP_API_ID_hipMemcpy = 119,
157 HIP_API_ID_hipPeekAtLastError = 120,
158 HIP_API_ID_hipExtLaunchMultiKernelMultiDevice = 121,
159 HIP_API_ID_hipStreamAddCallback = 122,
160 HIP_API_ID_hipMemcpyToArray = 123,
161 HIP_API_ID_hipMemsetD32 = 124,
162 HIP_API_ID_hipDeviceSynchronize = 125,
163 HIP_API_ID_hipDeviceGetCacheConfig = 126,
164 HIP_API_ID_hipMalloc3D = 127,
165 HIP_API_ID_hipPointerGetAttributes = 128,
166 HIP_API_ID_hipMemsetAsync = 129,
167 HIP_API_ID_hipMemcpyToSymbol = 130,
168 HIP_API_ID_hipCtxPushCurrent = 131,
169 HIP_API_ID_hipMemcpyPeer = 132,
170 HIP_API_ID_hipEventSynchronize = 133,
171 HIP_API_ID_hipMemcpyDtoDAsync = 134,
172 HIP_API_ID_hipExtMallocWithFlags = 135,
173 HIP_API_ID_hipCtxEnablePeerAccess = 136,
174 HIP_API_ID_hipMemcpyDtoHAsync = 137,
175 HIP_API_ID_hipModuleLaunchKernel = 138,
176 HIP_API_ID_hipModuleGetTexRef = 139,
177 HIP_API_ID_hipDeviceGetLimit = 140,
178 HIP_API_ID_hipModuleLoadDataEx = 141,
179 HIP_API_ID_hipRuntimeGetVersion = 142,
180 HIP_API_ID_hipGetDeviceProperties = 143,
181 HIP_API_ID_hipFreeArray = 144,
182 HIP_API_ID_hipDevicePrimaryCtxRelease = 145,
183 HIP_API_ID_hipHostGetDevicePointer = 146,
184 HIP_API_ID_hipMemcpyParam2D = 147,
185 HIP_API_ID_hipModuleGetFunction = 148,
186 HIP_API_ID_hipMemsetD32Async = 149,
187 HIP_API_ID_hipGetDevice = 150,
188 HIP_API_ID_hipGetDeviceCount = 151,
189 HIP_API_ID_NUMBER = 152,
190 HIP_API_ID_ANY = 153,
192 HIP_API_ID_NONE = HIP_API_ID_NUMBER,
193 HIP_API_ID_hipModuleGetFunctionEx = HIP_API_ID_NUMBER,
194 HIP_API_ID_hipDestroySurfaceObject = HIP_API_ID_NUMBER,
195 HIP_API_ID_hipDestroyTextureObject = HIP_API_ID_NUMBER,
196 HIP_API_ID_hipTexRefSetAddress = HIP_API_ID_NUMBER,
197 HIP_API_ID_hipBindTexture2D = HIP_API_ID_NUMBER,
198 HIP_API_ID_hipCreateTextureObject = HIP_API_ID_NUMBER,
199 HIP_API_ID_hipBindTextureToMipmappedArray = HIP_API_ID_NUMBER,
200 HIP_API_ID_hipBindTextureToArray = HIP_API_ID_NUMBER,
201 HIP_API_ID_hipTexRefSetFormat = HIP_API_ID_NUMBER,
202 HIP_API_ID_hipMemcpyHtoH = HIP_API_ID_NUMBER,
203 HIP_API_ID_hipTexRefSetArray = HIP_API_ID_NUMBER,
204 HIP_API_ID_hipTexRefSetAddress2D = HIP_API_ID_NUMBER,
205 HIP_API_ID_hipGetTextureObjectResourceViewDesc = HIP_API_ID_NUMBER,
206 HIP_API_ID_hipUnbindTexture = HIP_API_ID_NUMBER,
207 HIP_API_ID_hipTexRefSetFilterMode = HIP_API_ID_NUMBER,
208 HIP_API_ID_hipGetTextureAlignmentOffset = HIP_API_ID_NUMBER,
209 HIP_API_ID_hipCreateSurfaceObject = HIP_API_ID_NUMBER,
210 HIP_API_ID_hipGetChannelDesc = HIP_API_ID_NUMBER,
211 HIP_API_ID_hipHccGetAcceleratorView = HIP_API_ID_NUMBER,
212 HIP_API_ID_hipExtModuleLaunchKernel = HIP_API_ID_NUMBER,
213 HIP_API_ID_hipGetTextureObjectResourceDesc = HIP_API_ID_NUMBER,
214 HIP_API_ID_hipGetTextureReference = HIP_API_ID_NUMBER,
215 HIP_API_ID_hipTexRefSetAddressMode = HIP_API_ID_NUMBER,
216 HIP_API_ID_hipTexRefSetFlags = HIP_API_ID_NUMBER,
217 HIP_API_ID_hipBindTexture = HIP_API_ID_NUMBER,
218 HIP_API_ID_hipHccGetAccelerator = HIP_API_ID_NUMBER,
219 HIP_API_ID_hipGetTextureObjectTextureDesc = HIP_API_ID_NUMBER,
223 static inline const char* hip_api_name(
const uint32_t
id) {
225 case HIP_API_ID_hipStreamCreateWithPriority:
return "hipStreamCreateWithPriority";
226 case HIP_API_ID_hipMemcpyToSymbolAsync:
return "hipMemcpyToSymbolAsync";
227 case HIP_API_ID_hipMallocPitch:
return "hipMallocPitch";
228 case HIP_API_ID_hipMalloc:
return "hipMalloc";
229 case HIP_API_ID_hipDeviceGetName:
return "hipDeviceGetName";
230 case HIP_API_ID_hipEventRecord:
return "hipEventRecord";
231 case HIP_API_ID_hipCtxSynchronize:
return "hipCtxSynchronize";
232 case HIP_API_ID_hipSetDevice:
return "hipSetDevice";
233 case HIP_API_ID_hipCtxGetApiVersion:
return "hipCtxGetApiVersion";
234 case HIP_API_ID_hipSetupArgument:
return "hipSetupArgument";
235 case HIP_API_ID_hipMemcpyFromSymbolAsync:
return "hipMemcpyFromSymbolAsync";
236 case HIP_API_ID_hipExtGetLinkTypeAndHopCount:
return "hipExtGetLinkTypeAndHopCount";
237 case HIP_API_ID_hipMemcpyDtoD:
return "hipMemcpyDtoD";
238 case HIP_API_ID_hipHostFree:
return "hipHostFree";
239 case HIP_API_ID_hipMemcpy2DToArray:
return "hipMemcpy2DToArray";
240 case HIP_API_ID_hipCtxGetCacheConfig:
return "hipCtxGetCacheConfig";
241 case HIP_API_ID_hipStreamWaitEvent:
return "hipStreamWaitEvent";
242 case HIP_API_ID_hipDeviceGetStreamPriorityRange:
return "hipDeviceGetStreamPriorityRange";
243 case HIP_API_ID_hipModuleLoad:
return "hipModuleLoad";
244 case HIP_API_ID_hipDevicePrimaryCtxSetFlags:
return "hipDevicePrimaryCtxSetFlags";
245 case HIP_API_ID_hipLaunchCooperativeKernel:
return "hipLaunchCooperativeKernel";
246 case HIP_API_ID_hipLaunchCooperativeKernelMultiDevice:
return "hipLaunchCooperativeKernelMultiDevice";
247 case HIP_API_ID_hipMemcpyAsync:
return "hipMemcpyAsync";
248 case HIP_API_ID_hipMalloc3DArray:
return "hipMalloc3DArray";
249 case HIP_API_ID_hipStreamCreate:
return "hipStreamCreate";
250 case HIP_API_ID_hipCtxGetCurrent:
return "hipCtxGetCurrent";
251 case HIP_API_ID_hipDevicePrimaryCtxGetState:
return "hipDevicePrimaryCtxGetState";
252 case HIP_API_ID_hipEventQuery:
return "hipEventQuery";
253 case HIP_API_ID_hipEventCreate:
return "hipEventCreate";
254 case HIP_API_ID_hipMemGetAddressRange:
return "hipMemGetAddressRange";
255 case HIP_API_ID_hipMemcpyFromSymbol:
return "hipMemcpyFromSymbol";
256 case HIP_API_ID_hipArrayCreate:
return "hipArrayCreate";
257 case HIP_API_ID_hipStreamGetFlags:
return "hipStreamGetFlags";
258 case HIP_API_ID_hipMallocArray:
return "hipMallocArray";
259 case HIP_API_ID_hipCtxGetSharedMemConfig:
return "hipCtxGetSharedMemConfig";
260 case HIP_API_ID_hipMemPtrGetInfo:
return "hipMemPtrGetInfo";
261 case HIP_API_ID_hipFuncGetAttribute:
return "hipFuncGetAttribute";
262 case HIP_API_ID_hipCtxGetFlags:
return "hipCtxGetFlags";
263 case HIP_API_ID_hipStreamDestroy:
return "hipStreamDestroy";
264 case HIP_API_ID_hipMemset3DAsync:
return "hipMemset3DAsync";
265 case HIP_API_ID_hipMemcpy3D:
return "hipMemcpy3D";
266 case HIP_API_ID_hipInit:
return "hipInit";
267 case HIP_API_ID_hipMemcpyAtoH:
return "hipMemcpyAtoH";
268 case HIP_API_ID_hipStreamGetPriority:
return "hipStreamGetPriority";
269 case HIP_API_ID_hipMemset2D:
return "hipMemset2D";
270 case HIP_API_ID_hipMemset2DAsync:
return "hipMemset2DAsync";
271 case HIP_API_ID_hipDeviceCanAccessPeer:
return "hipDeviceCanAccessPeer";
272 case HIP_API_ID_hipDeviceEnablePeerAccess:
return "hipDeviceEnablePeerAccess";
273 case HIP_API_ID_hipModuleUnload:
return "hipModuleUnload";
274 case HIP_API_ID_hipHostUnregister:
return "hipHostUnregister";
275 case HIP_API_ID_hipProfilerStop:
return "hipProfilerStop";
276 case HIP_API_ID_hipLaunchByPtr:
return "hipLaunchByPtr";
277 case HIP_API_ID_hipStreamSynchronize:
return "hipStreamSynchronize";
278 case HIP_API_ID_hipDeviceSetCacheConfig:
return "hipDeviceSetCacheConfig";
279 case HIP_API_ID_hipGetErrorName:
return "hipGetErrorName";
280 case HIP_API_ID_hipMemcpyHtoD:
return "hipMemcpyHtoD";
281 case HIP_API_ID_hipModuleGetGlobal:
return "hipModuleGetGlobal";
282 case HIP_API_ID_hipMemcpyHtoA:
return "hipMemcpyHtoA";
283 case HIP_API_ID_hipCtxCreate:
return "hipCtxCreate";
284 case HIP_API_ID_hipMemcpy2D:
return "hipMemcpy2D";
285 case HIP_API_ID_hipIpcCloseMemHandle:
return "hipIpcCloseMemHandle";
286 case HIP_API_ID_hipChooseDevice:
return "hipChooseDevice";
287 case HIP_API_ID_hipDeviceSetSharedMemConfig:
return "hipDeviceSetSharedMemConfig";
288 case HIP_API_ID_hipDeviceComputeCapability:
return "hipDeviceComputeCapability";
289 case HIP_API_ID_hipDeviceGet:
return "hipDeviceGet";
290 case HIP_API_ID_hipProfilerStart:
return "hipProfilerStart";
291 case HIP_API_ID_hipCtxSetCacheConfig:
return "hipCtxSetCacheConfig";
292 case HIP_API_ID_hipFuncSetCacheConfig:
return "hipFuncSetCacheConfig";
293 case HIP_API_ID_hipMemcpyPeerAsync:
return "hipMemcpyPeerAsync";
294 case HIP_API_ID_hipEventElapsedTime:
return "hipEventElapsedTime";
295 case HIP_API_ID_hipDevicePrimaryCtxReset:
return "hipDevicePrimaryCtxReset";
296 case HIP_API_ID_hipMemcpy3DAsync:
return "hipMemcpy3DAsync";
297 case HIP_API_ID_hipEventDestroy:
return "hipEventDestroy";
298 case HIP_API_ID_hipCtxPopCurrent:
return "hipCtxPopCurrent";
299 case HIP_API_ID_hipGetSymbolAddress:
return "hipGetSymbolAddress";
300 case HIP_API_ID_hipHostGetFlags:
return "hipHostGetFlags";
301 case HIP_API_ID_hipHostMalloc:
return "hipHostMalloc";
302 case HIP_API_ID_hipDriverGetVersion:
return "hipDriverGetVersion";
303 case HIP_API_ID_hipMemGetInfo:
return "hipMemGetInfo";
304 case HIP_API_ID_hipDeviceReset:
return "hipDeviceReset";
305 case HIP_API_ID_hipMemset:
return "hipMemset";
306 case HIP_API_ID_hipMemsetD8:
return "hipMemsetD8";
307 case HIP_API_ID_hipMemcpyParam2DAsync:
return "hipMemcpyParam2DAsync";
308 case HIP_API_ID_hipHostRegister:
return "hipHostRegister";
309 case HIP_API_ID_hipCtxSetSharedMemConfig:
return "hipCtxSetSharedMemConfig";
310 case HIP_API_ID_hipArray3DCreate:
return "hipArray3DCreate";
311 case HIP_API_ID_hipIpcOpenMemHandle:
return "hipIpcOpenMemHandle";
312 case HIP_API_ID_hipGetLastError:
return "hipGetLastError";
313 case HIP_API_ID_hipCtxDestroy:
return "hipCtxDestroy";
314 case HIP_API_ID_hipDeviceGetSharedMemConfig:
return "hipDeviceGetSharedMemConfig";
315 case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
return "hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags";
316 case HIP_API_ID_hipSetDeviceFlags:
return "hipSetDeviceFlags";
317 case HIP_API_ID_hipHccModuleLaunchKernel:
return "hipHccModuleLaunchKernel";
318 case HIP_API_ID_hipFree:
return "hipFree";
319 case HIP_API_ID_hipOccupancyMaxPotentialBlockSize:
return "hipOccupancyMaxPotentialBlockSize";
320 case HIP_API_ID_hipDeviceGetAttribute:
return "hipDeviceGetAttribute";
321 case HIP_API_ID_hipMemcpyDtoH:
return "hipMemcpyDtoH";
322 case HIP_API_ID_hipCtxDisablePeerAccess:
return "hipCtxDisablePeerAccess";
323 case HIP_API_ID_hipMallocManaged:
return "hipMallocManaged";
324 case HIP_API_ID_hipDeviceGetByPCIBusId:
return "hipDeviceGetByPCIBusId";
325 case HIP_API_ID_hipIpcGetMemHandle:
return "hipIpcGetMemHandle";
326 case HIP_API_ID_hipMemcpyHtoDAsync:
return "hipMemcpyHtoDAsync";
327 case HIP_API_ID_hipCtxGetDevice:
return "hipCtxGetDevice";
328 case HIP_API_ID_hipMemset3D:
return "hipMemset3D";
329 case HIP_API_ID_hipModuleLoadData:
return "hipModuleLoadData";
330 case HIP_API_ID_hipDeviceTotalMem:
return "hipDeviceTotalMem";
331 case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor:
return "hipOccupancyMaxActiveBlocksPerMultiprocessor";
332 case HIP_API_ID_hipCtxSetCurrent:
return "hipCtxSetCurrent";
333 case HIP_API_ID_hipGetErrorString:
return "hipGetErrorString";
334 case HIP_API_ID_hipDevicePrimaryCtxRetain:
return "hipDevicePrimaryCtxRetain";
335 case HIP_API_ID_hipDeviceDisablePeerAccess:
return "hipDeviceDisablePeerAccess";
336 case HIP_API_ID_hipStreamCreateWithFlags:
return "hipStreamCreateWithFlags";
337 case HIP_API_ID_hipMemcpyFromArray:
return "hipMemcpyFromArray";
338 case HIP_API_ID_hipMemcpy2DAsync:
return "hipMemcpy2DAsync";
339 case HIP_API_ID_hipFuncGetAttributes:
return "hipFuncGetAttributes";
340 case HIP_API_ID_hipGetSymbolSize:
return "hipGetSymbolSize";
341 case HIP_API_ID_hipEventCreateWithFlags:
return "hipEventCreateWithFlags";
342 case HIP_API_ID_hipStreamQuery:
return "hipStreamQuery";
343 case HIP_API_ID_hipDeviceGetPCIBusId:
return "hipDeviceGetPCIBusId";
344 case HIP_API_ID_hipMemcpy:
return "hipMemcpy";
345 case HIP_API_ID_hipPeekAtLastError:
return "hipPeekAtLastError";
346 case HIP_API_ID_hipExtLaunchMultiKernelMultiDevice:
return "hipExtLaunchMultiKernelMultiDevice";
347 case HIP_API_ID_hipStreamAddCallback:
return "hipStreamAddCallback";
348 case HIP_API_ID_hipMemcpyToArray:
return "hipMemcpyToArray";
349 case HIP_API_ID_hipMemsetD32:
return "hipMemsetD32";
350 case HIP_API_ID_hipDeviceSynchronize:
return "hipDeviceSynchronize";
351 case HIP_API_ID_hipDeviceGetCacheConfig:
return "hipDeviceGetCacheConfig";
352 case HIP_API_ID_hipMalloc3D:
return "hipMalloc3D";
353 case HIP_API_ID_hipPointerGetAttributes:
return "hipPointerGetAttributes";
354 case HIP_API_ID_hipMemsetAsync:
return "hipMemsetAsync";
355 case HIP_API_ID_hipMemcpyToSymbol:
return "hipMemcpyToSymbol";
356 case HIP_API_ID_hipCtxPushCurrent:
return "hipCtxPushCurrent";
357 case HIP_API_ID_hipMemcpyPeer:
return "hipMemcpyPeer";
358 case HIP_API_ID_hipEventSynchronize:
return "hipEventSynchronize";
359 case HIP_API_ID_hipMemcpyDtoDAsync:
return "hipMemcpyDtoDAsync";
360 case HIP_API_ID_hipExtMallocWithFlags:
return "hipExtMallocWithFlags";
361 case HIP_API_ID_hipCtxEnablePeerAccess:
return "hipCtxEnablePeerAccess";
362 case HIP_API_ID_hipMemcpyDtoHAsync:
return "hipMemcpyDtoHAsync";
363 case HIP_API_ID_hipModuleLaunchKernel:
return "hipModuleLaunchKernel";
364 case HIP_API_ID_hipModuleGetTexRef:
return "hipModuleGetTexRef";
365 case HIP_API_ID_hipDeviceGetLimit:
return "hipDeviceGetLimit";
366 case HIP_API_ID_hipModuleLoadDataEx:
return "hipModuleLoadDataEx";
367 case HIP_API_ID_hipRuntimeGetVersion:
return "hipRuntimeGetVersion";
368 case HIP_API_ID_hipGetDeviceProperties:
return "hipGetDeviceProperties";
369 case HIP_API_ID_hipFreeArray:
return "hipFreeArray";
370 case HIP_API_ID_hipDevicePrimaryCtxRelease:
return "hipDevicePrimaryCtxRelease";
371 case HIP_API_ID_hipHostGetDevicePointer:
return "hipHostGetDevicePointer";
372 case HIP_API_ID_hipMemcpyParam2D:
return "hipMemcpyParam2D";
373 case HIP_API_ID_hipModuleGetFunction:
return "hipModuleGetFunction";
374 case HIP_API_ID_hipMemsetD32Async:
return "hipMemsetD32Async";
375 case HIP_API_ID_hipGetDevice:
return "hipGetDevice";
376 case HIP_API_ID_hipGetDeviceCount:
return "hipGetDeviceCount";
383 uint64_t correlation_id;
390 } hipStreamCreateWithPriority;
392 const void* symbolName;
398 } hipMemcpyToSymbolAsync;
424 } hipCtxGetApiVersion;
432 const void* symbolName;
437 } hipMemcpyFromSymbolAsync;
441 unsigned int* linktype;
442 unsigned int* hopcount;
443 } hipExtGetLinkTypeAndHopCount;
461 } hipMemcpy2DToArray;
464 } hipCtxGetCacheConfig;
469 } hipStreamWaitEvent;
472 int* greatestPriority;
473 } hipDeviceGetStreamPriorityRange;
481 } hipDevicePrimaryCtxSetFlags;
487 unsigned int sharedMemBytes;
489 } hipLaunchCooperativeKernel;
494 } hipLaunchCooperativeKernelMultiDevice;
518 } hipDevicePrimaryCtxGetState;
526 hipDeviceptr_t* pbase;
529 } hipMemGetAddressRange;
532 const void* symbolName;
536 } hipMemcpyFromSymbol;
554 } hipCtxGetSharedMemConfig;
561 hipFunction_attribute attrib;
563 } hipFuncGetAttribute;
591 } hipStreamGetPriority;
611 } hipDeviceCanAccessPeer;
615 } hipDeviceEnablePeerAccess;
627 } hipStreamSynchronize;
630 } hipDeviceSetCacheConfig;
632 hipError_t hip_error;
640 hipDeviceptr_t* dptr;
644 } hipModuleGetGlobal;
667 } hipIpcCloseMemHandle;
674 } hipDeviceSetSharedMemConfig;
679 } hipDeviceComputeCapability;
686 } hipCtxSetCacheConfig;
690 } hipFuncSetCacheConfig;
698 } hipMemcpyPeerAsync;
703 } hipEventElapsedTime;
706 } hipDevicePrimaryCtxReset;
719 const void* symbolName;
720 } hipGetSymbolAddress;
722 unsigned int* flagsPtr;
732 } hipDriverGetVersion;
750 } hipMemcpyParam2DAsync;
758 } hipCtxSetSharedMemConfig;
767 } hipIpcOpenMemHandle;
773 } hipDeviceGetSharedMemConfig;
775 unsigned int* numBlocks;
777 unsigned int blockSize;
778 size_t dynSharedMemPerBlk;
780 } hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
786 unsigned int globalWorkSizeX;
787 unsigned int globalWorkSizeY;
788 unsigned int globalWorkSizeZ;
789 unsigned int localWorkSizeX;
790 unsigned int localWorkSizeY;
791 unsigned int localWorkSizeZ;
792 size_t sharedMemBytes;
798 } hipHccModuleLaunchKernel;
803 unsigned int* gridSize;
804 unsigned int* blockSize;
806 size_t dynSharedMemPerBlk;
807 unsigned int blockSizeLimit;
808 } hipOccupancyMaxPotentialBlockSize;
813 } hipDeviceGetAttribute;
821 } hipCtxDisablePeerAccess;
829 const char* pciBusId;
830 } hipDeviceGetByPCIBusId;
834 } hipIpcGetMemHandle;
840 } hipMemcpyHtoDAsync;
858 unsigned int* numBlocks;
860 unsigned int blockSize;
861 size_t dynSharedMemPerBlk;
862 } hipOccupancyMaxActiveBlocksPerMultiprocessor;
872 } hipDevicePrimaryCtxRetain;
875 } hipDeviceDisablePeerAccess;
879 } hipStreamCreateWithFlags;
887 } hipMemcpyFromArray;
901 } hipFuncGetAttributes;
904 const void* symbolName;
909 } hipEventCreateWithFlags;
917 } hipDeviceGetPCIBusId;
928 } hipExtLaunchMultiKernelMultiDevice;
934 } hipStreamAddCallback;
950 } hipDeviceGetCacheConfig;
958 } hipPointerGetAttributes;
966 const void* symbolName;
984 } hipEventSynchronize;
990 } hipMemcpyDtoDAsync;
995 } hipExtMallocWithFlags;
999 } hipCtxEnablePeerAccess;
1005 } hipMemcpyDtoHAsync;
1008 unsigned int gridDimX;
1009 unsigned int gridDimY;
1010 unsigned int gridDimZ;
1011 unsigned int blockDimX;
1012 unsigned int blockDimY;
1013 unsigned int blockDimZ;
1014 unsigned int sharedMemBytes;
1016 void** kernelParams;
1018 } hipModuleLaunchKernel;
1023 } hipModuleGetTexRef;
1026 enum hipLimit_t limit;
1027 } hipDeviceGetLimit;
1031 unsigned int numOptions;
1032 hipJitOption* options;
1033 void** optionValues;
1034 } hipModuleLoadDataEx;
1036 int* runtimeVersion;
1037 } hipRuntimeGetVersion;
1041 } hipGetDeviceProperties;
1047 } hipDevicePrimaryCtxRelease;
1052 } hipHostGetDevicePointer;
1060 } hipModuleGetFunction;
1066 } hipMemsetD32Async;
1072 } hipGetDeviceCount;
1078 #define INIT_hipStreamCreateWithPriority_CB_ARGS_DATA(cb_data) { \ 1079 cb_data.args.hipStreamCreateWithPriority.stream = stream; \ 1080 cb_data.args.hipStreamCreateWithPriority.flags = flags; \ 1081 cb_data.args.hipStreamCreateWithPriority.priority = priority; \ 1084 #define INIT_hipMemcpyToSymbolAsync_CB_ARGS_DATA(cb_data) { \ 1087 #define INIT_hipMallocPitch_CB_ARGS_DATA(cb_data) { \ 1088 cb_data.args.hipMallocPitch.ptr = ptr; \ 1089 cb_data.args.hipMallocPitch.pitch = pitch; \ 1090 cb_data.args.hipMallocPitch.width = width; \ 1091 cb_data.args.hipMallocPitch.height = height; \ 1094 #define INIT_hipMalloc_CB_ARGS_DATA(cb_data) { \ 1095 cb_data.args.hipMalloc.ptr = ptr; \ 1096 cb_data.args.hipMalloc.size = sizeBytes; \ 1099 #define INIT_hipDeviceGetName_CB_ARGS_DATA(cb_data) { \ 1100 cb_data.args.hipDeviceGetName.name = name; \ 1101 cb_data.args.hipDeviceGetName.len = len; \ 1102 cb_data.args.hipDeviceGetName.device = device; \ 1105 #define INIT_hipEventRecord_CB_ARGS_DATA(cb_data) { \ 1106 cb_data.args.hipEventRecord.event = event; \ 1107 cb_data.args.hipEventRecord.stream = stream; \ 1110 #define INIT_hipCtxSynchronize_CB_ARGS_DATA(cb_data) { \ 1113 #define INIT_hipSetDevice_CB_ARGS_DATA(cb_data) { \ 1114 cb_data.args.hipSetDevice.deviceId = deviceId; \ 1117 #define INIT_hipCtxGetApiVersion_CB_ARGS_DATA(cb_data) { \ 1118 cb_data.args.hipCtxGetApiVersion.ctx = ctx; \ 1119 cb_data.args.hipCtxGetApiVersion.apiVersion = apiVersion; \ 1122 #define INIT_hipSetupArgument_CB_ARGS_DATA(cb_data) { \ 1123 cb_data.args.hipSetupArgument.arg = arg; \ 1124 cb_data.args.hipSetupArgument.size = size; \ 1125 cb_data.args.hipSetupArgument.offset = offset; \ 1128 #define INIT_hipMemcpyFromSymbolAsync_CB_ARGS_DATA(cb_data) { \ 1131 #define INIT_hipExtGetLinkTypeAndHopCount_CB_ARGS_DATA(cb_data) { \ 1132 cb_data.args.hipExtGetLinkTypeAndHopCount.device1 = device1; \ 1133 cb_data.args.hipExtGetLinkTypeAndHopCount.device2 = device2; \ 1134 cb_data.args.hipExtGetLinkTypeAndHopCount.linktype = linktype; \ 1135 cb_data.args.hipExtGetLinkTypeAndHopCount.hopcount = hopcount; \ 1138 #define INIT_hipMemcpyDtoD_CB_ARGS_DATA(cb_data) { \ 1139 cb_data.args.hipMemcpyDtoD.dst = dst; \ 1140 cb_data.args.hipMemcpyDtoD.src = src; \ 1141 cb_data.args.hipMemcpyDtoD.sizeBytes = sizeBytes; \ 1144 #define INIT_hipHostFree_CB_ARGS_DATA(cb_data) { \ 1145 cb_data.args.hipHostFree.ptr = ptr; \ 1148 #define INIT_hipMemcpy2DToArray_CB_ARGS_DATA(cb_data) { \ 1149 cb_data.args.hipMemcpy2DToArray.dst = dst; \ 1150 cb_data.args.hipMemcpy2DToArray.wOffset = wOffset; \ 1151 cb_data.args.hipMemcpy2DToArray.hOffset = hOffset; \ 1152 cb_data.args.hipMemcpy2DToArray.src = src; \ 1153 cb_data.args.hipMemcpy2DToArray.spitch = spitch; \ 1154 cb_data.args.hipMemcpy2DToArray.width = width; \ 1155 cb_data.args.hipMemcpy2DToArray.height = height; \ 1156 cb_data.args.hipMemcpy2DToArray.kind = kind; \ 1159 #define INIT_hipCtxGetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1160 cb_data.args.hipCtxGetCacheConfig.cacheConfig = cacheConfig; \ 1163 #define INIT_hipStreamWaitEvent_CB_ARGS_DATA(cb_data) { \ 1164 cb_data.args.hipStreamWaitEvent.stream = stream; \ 1165 cb_data.args.hipStreamWaitEvent.event = event; \ 1166 cb_data.args.hipStreamWaitEvent.flags = flags; \ 1169 #define INIT_hipDeviceGetStreamPriorityRange_CB_ARGS_DATA(cb_data) { \ 1170 cb_data.args.hipDeviceGetStreamPriorityRange.leastPriority = leastPriority; \ 1171 cb_data.args.hipDeviceGetStreamPriorityRange.greatestPriority = greatestPriority; \ 1174 #define INIT_hipModuleLoad_CB_ARGS_DATA(cb_data) { \ 1175 cb_data.args.hipModuleLoad.module = module; \ 1176 cb_data.args.hipModuleLoad.fname = fname; \ 1179 #define INIT_hipDevicePrimaryCtxSetFlags_CB_ARGS_DATA(cb_data) { \ 1180 cb_data.args.hipDevicePrimaryCtxSetFlags.dev = dev; \ 1181 cb_data.args.hipDevicePrimaryCtxSetFlags.flags = flags; \ 1184 #define INIT_hipLaunchCooperativeKernel_CB_ARGS_DATA(cb_data) { \ 1185 cb_data.args.hipLaunchCooperativeKernel.f = f; \ 1186 cb_data.args.hipLaunchCooperativeKernel.gridDim = gridDim; \ 1187 cb_data.args.hipLaunchCooperativeKernel.blockDimX = blockDimX; \ 1188 cb_data.args.hipLaunchCooperativeKernel.kernelParams = kernelParams; \ 1189 cb_data.args.hipLaunchCooperativeKernel.sharedMemBytes = sharedMemBytes; \ 1190 cb_data.args.hipLaunchCooperativeKernel.stream = stream; \ 1193 #define INIT_hipLaunchCooperativeKernelMultiDevice_CB_ARGS_DATA(cb_data) { \ 1196 #define INIT_hipMemcpyAsync_CB_ARGS_DATA(cb_data) { \ 1197 cb_data.args.hipMemcpyAsync.dst = dst; \ 1198 cb_data.args.hipMemcpyAsync.src = src; \ 1199 cb_data.args.hipMemcpyAsync.sizeBytes = sizeBytes; \ 1200 cb_data.args.hipMemcpyAsync.kind = kind; \ 1201 cb_data.args.hipMemcpyAsync.stream = stream; \ 1204 #define INIT_hipMalloc3DArray_CB_ARGS_DATA(cb_data) { \ 1205 cb_data.args.hipMalloc3DArray.array = array; \ 1206 cb_data.args.hipMalloc3DArray.desc = desc; \ 1207 cb_data.args.hipMalloc3DArray.extent = extent; \ 1208 cb_data.args.hipMalloc3DArray.flags = flags; \ 1211 #define INIT_hipStreamCreate_CB_ARGS_DATA(cb_data) { \ 1212 cb_data.args.hipStreamCreate.stream = stream; \ 1215 #define INIT_hipCtxGetCurrent_CB_ARGS_DATA(cb_data) { \ 1216 cb_data.args.hipCtxGetCurrent.ctx = ctx; \ 1219 #define INIT_hipDevicePrimaryCtxGetState_CB_ARGS_DATA(cb_data) { \ 1220 cb_data.args.hipDevicePrimaryCtxGetState.dev = dev; \ 1221 cb_data.args.hipDevicePrimaryCtxGetState.flags = flags; \ 1222 cb_data.args.hipDevicePrimaryCtxGetState.active = active; \ 1225 #define INIT_hipEventQuery_CB_ARGS_DATA(cb_data) { \ 1226 cb_data.args.hipEventQuery.event = event; \ 1229 #define INIT_hipEventCreate_CB_ARGS_DATA(cb_data) { \ 1230 cb_data.args.hipEventCreate.event = event; \ 1233 #define INIT_hipMemGetAddressRange_CB_ARGS_DATA(cb_data) { \ 1234 cb_data.args.hipMemGetAddressRange.pbase = pbase; \ 1235 cb_data.args.hipMemGetAddressRange.psize = psize; \ 1236 cb_data.args.hipMemGetAddressRange.dptr = dptr; \ 1239 #define INIT_hipMemcpyFromSymbol_CB_ARGS_DATA(cb_data) { \ 1242 #define INIT_hipArrayCreate_CB_ARGS_DATA(cb_data) { \ 1243 cb_data.args.hipArrayCreate.pHandle = array; \ 1244 cb_data.args.hipArrayCreate.pAllocateArray = pAllocateArray; \ 1247 #define INIT_hipStreamGetFlags_CB_ARGS_DATA(cb_data) { \ 1248 cb_data.args.hipStreamGetFlags.stream = stream; \ 1249 cb_data.args.hipStreamGetFlags.flags = flags; \ 1252 #define INIT_hipMallocArray_CB_ARGS_DATA(cb_data) { \ 1253 cb_data.args.hipMallocArray.array = array; \ 1254 cb_data.args.hipMallocArray.desc = desc; \ 1255 cb_data.args.hipMallocArray.width = width; \ 1256 cb_data.args.hipMallocArray.height = height; \ 1257 cb_data.args.hipMallocArray.flags = flags; \ 1260 #define INIT_hipCtxGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1261 cb_data.args.hipCtxGetSharedMemConfig.pConfig = pConfig; \ 1264 #define INIT_hipMemPtrGetInfo_CB_ARGS_DATA(cb_data) { \ 1265 cb_data.args.hipMemPtrGetInfo.ptr = ptr; \ 1266 cb_data.args.hipMemPtrGetInfo.size = size; \ 1269 #define INIT_hipFuncGetAttribute_CB_ARGS_DATA(cb_data) { \ 1270 cb_data.args.hipFuncGetAttribute.value = value; \ 1271 cb_data.args.hipFuncGetAttribute.attrib = attrib; \ 1272 cb_data.args.hipFuncGetAttribute.hfunc = hfunc; \ 1275 #define INIT_hipCtxGetFlags_CB_ARGS_DATA(cb_data) { \ 1276 cb_data.args.hipCtxGetFlags.flags = flags; \ 1279 #define INIT_hipStreamDestroy_CB_ARGS_DATA(cb_data) { \ 1280 cb_data.args.hipStreamDestroy.stream = stream; \ 1283 #define INIT_hipMemset3DAsync_CB_ARGS_DATA(cb_data) { \ 1284 cb_data.args.hipMemset3DAsync.pitchedDevPtr = pitchedDevPtr; \ 1285 cb_data.args.hipMemset3DAsync.value = value; \ 1286 cb_data.args.hipMemset3DAsync.extent = extent; \ 1287 cb_data.args.hipMemset3DAsync.stream = stream; \ 1290 #define INIT_hipMemcpy3D_CB_ARGS_DATA(cb_data) { \ 1291 cb_data.args.hipMemcpy3D.p = p; \ 1294 #define INIT_hipInit_CB_ARGS_DATA(cb_data) { \ 1295 cb_data.args.hipInit.flags = flags; \ 1298 #define INIT_hipMemcpyAtoH_CB_ARGS_DATA(cb_data) { \ 1299 cb_data.args.hipMemcpyAtoH.dst = dst; \ 1300 cb_data.args.hipMemcpyAtoH.srcArray = srcArray; \ 1301 cb_data.args.hipMemcpyAtoH.srcOffset = srcOffset; \ 1302 cb_data.args.hipMemcpyAtoH.count = count; \ 1305 #define INIT_hipStreamGetPriority_CB_ARGS_DATA(cb_data) { \ 1306 cb_data.args.hipStreamGetPriority.stream = stream; \ 1307 cb_data.args.hipStreamGetPriority.priority = priority; \ 1310 #define INIT_hipMemset2D_CB_ARGS_DATA(cb_data) { \ 1311 cb_data.args.hipMemset2D.dst = dst; \ 1312 cb_data.args.hipMemset2D.pitch = pitch; \ 1313 cb_data.args.hipMemset2D.value = value; \ 1314 cb_data.args.hipMemset2D.width = width; \ 1315 cb_data.args.hipMemset2D.height = height; \ 1318 #define INIT_hipMemset2DAsync_CB_ARGS_DATA(cb_data) { \ 1319 cb_data.args.hipMemset2DAsync.dst = dst; \ 1320 cb_data.args.hipMemset2DAsync.pitch = pitch; \ 1321 cb_data.args.hipMemset2DAsync.value = value; \ 1322 cb_data.args.hipMemset2DAsync.width = width; \ 1323 cb_data.args.hipMemset2DAsync.height = height; \ 1324 cb_data.args.hipMemset2DAsync.stream = stream; \ 1327 #define INIT_hipDeviceCanAccessPeer_CB_ARGS_DATA(cb_data) { \ 1328 cb_data.args.hipDeviceCanAccessPeer.canAccessPeer = canAccessPeer; \ 1329 cb_data.args.hipDeviceCanAccessPeer.deviceId = deviceId; \ 1330 cb_data.args.hipDeviceCanAccessPeer.peerDeviceId = peerDeviceId; \ 1333 #define INIT_hipDeviceEnablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1334 cb_data.args.hipDeviceEnablePeerAccess.peerDeviceId = peerDeviceId; \ 1335 cb_data.args.hipDeviceEnablePeerAccess.flags = flags; \ 1338 #define INIT_hipModuleUnload_CB_ARGS_DATA(cb_data) { \ 1339 cb_data.args.hipModuleUnload.module = hmod; \ 1342 #define INIT_hipHostUnregister_CB_ARGS_DATA(cb_data) { \ 1343 cb_data.args.hipHostUnregister.hostPtr = hostPtr; \ 1346 #define INIT_hipProfilerStop_CB_ARGS_DATA(cb_data) { \ 1349 #define INIT_hipLaunchByPtr_CB_ARGS_DATA(cb_data) { \ 1350 cb_data.args.hipLaunchByPtr.func = hostFunction; \ 1353 #define INIT_hipStreamSynchronize_CB_ARGS_DATA(cb_data) { \ 1354 cb_data.args.hipStreamSynchronize.stream = stream; \ 1357 #define INIT_hipDeviceSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1358 cb_data.args.hipDeviceSetCacheConfig.cacheConfig = cacheConfig; \ 1361 #define INIT_hipGetErrorName_CB_ARGS_DATA(cb_data) { \ 1362 cb_data.args.hipGetErrorName.hip_error = hip_error; \ 1365 #define INIT_hipMemcpyHtoD_CB_ARGS_DATA(cb_data) { \ 1366 cb_data.args.hipMemcpyHtoD.dst = dst; \ 1367 cb_data.args.hipMemcpyHtoD.src = src; \ 1368 cb_data.args.hipMemcpyHtoD.sizeBytes = sizeBytes; \ 1371 #define INIT_hipModuleGetGlobal_CB_ARGS_DATA(cb_data) { \ 1372 cb_data.args.hipModuleGetGlobal.dptr = dptr; \ 1373 cb_data.args.hipModuleGetGlobal.bytes = bytes; \ 1374 cb_data.args.hipModuleGetGlobal.hmod = hmod; \ 1375 cb_data.args.hipModuleGetGlobal.name = name; \ 1378 #define INIT_hipMemcpyHtoA_CB_ARGS_DATA(cb_data) { \ 1379 cb_data.args.hipMemcpyHtoA.dstArray = dstArray; \ 1380 cb_data.args.hipMemcpyHtoA.dstOffset = dstOffset; \ 1381 cb_data.args.hipMemcpyHtoA.srcHost = srcHost; \ 1382 cb_data.args.hipMemcpyHtoA.count = count; \ 1385 #define INIT_hipCtxCreate_CB_ARGS_DATA(cb_data) { \ 1386 cb_data.args.hipCtxCreate.ctx = ctx; \ 1387 cb_data.args.hipCtxCreate.flags = flags; \ 1388 cb_data.args.hipCtxCreate.device = device; \ 1391 #define INIT_hipMemcpy2D_CB_ARGS_DATA(cb_data) { \ 1392 cb_data.args.hipMemcpy2D.dst = dst; \ 1393 cb_data.args.hipMemcpy2D.dpitch = dpitch; \ 1394 cb_data.args.hipMemcpy2D.src = src; \ 1395 cb_data.args.hipMemcpy2D.spitch = spitch; \ 1396 cb_data.args.hipMemcpy2D.width = width; \ 1397 cb_data.args.hipMemcpy2D.height = height; \ 1398 cb_data.args.hipMemcpy2D.kind = kind; \ 1401 #define INIT_hipIpcCloseMemHandle_CB_ARGS_DATA(cb_data) { \ 1402 cb_data.args.hipIpcCloseMemHandle.devPtr = devPtr; \ 1405 #define INIT_hipChooseDevice_CB_ARGS_DATA(cb_data) { \ 1406 cb_data.args.hipChooseDevice.device = device; \ 1407 cb_data.args.hipChooseDevice.prop = prop; \ 1410 #define INIT_hipDeviceSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1411 cb_data.args.hipDeviceSetSharedMemConfig.config = config; \ 1414 #define INIT_hipDeviceComputeCapability_CB_ARGS_DATA(cb_data) { \ 1415 cb_data.args.hipDeviceComputeCapability.major = major; \ 1416 cb_data.args.hipDeviceComputeCapability.minor = minor; \ 1417 cb_data.args.hipDeviceComputeCapability.device = device; \ 1420 #define INIT_hipDeviceGet_CB_ARGS_DATA(cb_data) { \ 1421 cb_data.args.hipDeviceGet.device = device; \ 1422 cb_data.args.hipDeviceGet.ordinal = deviceId; \ 1425 #define INIT_hipProfilerStart_CB_ARGS_DATA(cb_data) { \ 1428 #define INIT_hipCtxSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1429 cb_data.args.hipCtxSetCacheConfig.cacheConfig = cacheConfig; \ 1432 #define INIT_hipFuncSetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1433 cb_data.args.hipFuncSetCacheConfig.func = func; \ 1434 cb_data.args.hipFuncSetCacheConfig.config = cacheConfig; \ 1437 #define INIT_hipMemcpyPeerAsync_CB_ARGS_DATA(cb_data) { \ 1438 cb_data.args.hipMemcpyPeerAsync.dst = dst; \ 1439 cb_data.args.hipMemcpyPeerAsync.dstDeviceId = dstDevice; \ 1440 cb_data.args.hipMemcpyPeerAsync.src = src; \ 1441 cb_data.args.hipMemcpyPeerAsync.srcDevice = srcDevice; \ 1442 cb_data.args.hipMemcpyPeerAsync.sizeBytes = sizeBytes; \ 1443 cb_data.args.hipMemcpyPeerAsync.stream = stream; \ 1446 #define INIT_hipEventElapsedTime_CB_ARGS_DATA(cb_data) { \ 1447 cb_data.args.hipEventElapsedTime.ms = ms; \ 1448 cb_data.args.hipEventElapsedTime.start = start; \ 1449 cb_data.args.hipEventElapsedTime.stop = stop; \ 1452 #define INIT_hipDevicePrimaryCtxReset_CB_ARGS_DATA(cb_data) { \ 1453 cb_data.args.hipDevicePrimaryCtxReset.dev = dev; \ 1456 #define INIT_hipMemcpy3DAsync_CB_ARGS_DATA(cb_data) { \ 1457 cb_data.args.hipMemcpy3DAsync.p = p; \ 1458 cb_data.args.hipMemcpy3DAsync.stream = stream; \ 1461 #define INIT_hipEventDestroy_CB_ARGS_DATA(cb_data) { \ 1462 cb_data.args.hipEventDestroy.event = event; \ 1465 #define INIT_hipCtxPopCurrent_CB_ARGS_DATA(cb_data) { \ 1466 cb_data.args.hipCtxPopCurrent.ctx = ctx; \ 1469 #define INIT_hipGetSymbolAddress_CB_ARGS_DATA(cb_data) { \ 1472 #define INIT_hipHostGetFlags_CB_ARGS_DATA(cb_data) { \ 1473 cb_data.args.hipHostGetFlags.flagsPtr = flagsPtr; \ 1474 cb_data.args.hipHostGetFlags.hostPtr = hostPtr; \ 1477 #define INIT_hipHostMalloc_CB_ARGS_DATA(cb_data) { \ 1478 cb_data.args.hipHostMalloc.ptr = ptr; \ 1479 cb_data.args.hipHostMalloc.size = sizeBytes; \ 1480 cb_data.args.hipHostMalloc.flags = flags; \ 1483 #define INIT_hipDriverGetVersion_CB_ARGS_DATA(cb_data) { \ 1484 cb_data.args.hipDriverGetVersion.driverVersion = driverVersion; \ 1487 #define INIT_hipMemGetInfo_CB_ARGS_DATA(cb_data) { \ 1488 cb_data.args.hipMemGetInfo.free = free; \ 1489 cb_data.args.hipMemGetInfo.total = total; \ 1492 #define INIT_hipDeviceReset_CB_ARGS_DATA(cb_data) { \ 1495 #define INIT_hipMemset_CB_ARGS_DATA(cb_data) { \ 1496 cb_data.args.hipMemset.dst = dst; \ 1497 cb_data.args.hipMemset.value = value; \ 1498 cb_data.args.hipMemset.sizeBytes = sizeBytes; \ 1501 #define INIT_hipMemsetD8_CB_ARGS_DATA(cb_data) { \ 1502 cb_data.args.hipMemsetD8.dest = dst; \ 1503 cb_data.args.hipMemsetD8.value = value; \ 1504 cb_data.args.hipMemsetD8.sizeBytes = sizeBytes; \ 1507 #define INIT_hipMemcpyParam2DAsync_CB_ARGS_DATA(cb_data) { \ 1508 cb_data.args.hipMemcpyParam2DAsync.pCopy = pCopy; \ 1509 cb_data.args.hipMemcpyParam2DAsync.stream = stream; \ 1512 #define INIT_hipHostRegister_CB_ARGS_DATA(cb_data) { \ 1513 cb_data.args.hipHostRegister.hostPtr = hostPtr; \ 1514 cb_data.args.hipHostRegister.sizeBytes = sizeBytes; \ 1515 cb_data.args.hipHostRegister.flags = flags; \ 1518 #define INIT_hipCtxSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1519 cb_data.args.hipCtxSetSharedMemConfig.config = config; \ 1522 #define INIT_hipArray3DCreate_CB_ARGS_DATA(cb_data) { \ 1523 cb_data.args.hipArray3DCreate.array = array; \ 1524 cb_data.args.hipArray3DCreate.pAllocateArray = pAllocateArray; \ 1527 #define INIT_hipIpcOpenMemHandle_CB_ARGS_DATA(cb_data) { \ 1528 cb_data.args.hipIpcOpenMemHandle.devPtr = devPtr; \ 1529 cb_data.args.hipIpcOpenMemHandle.handle = handle; \ 1530 cb_data.args.hipIpcOpenMemHandle.flags = flags; \ 1533 #define INIT_hipGetLastError_CB_ARGS_DATA(cb_data) { \ 1536 #define INIT_hipCtxDestroy_CB_ARGS_DATA(cb_data) { \ 1537 cb_data.args.hipCtxDestroy.ctx = ctx; \ 1540 #define INIT_hipDeviceGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \ 1541 cb_data.args.hipDeviceGetSharedMemConfig.pConfig = pConfig; \ 1544 #define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_CB_ARGS_DATA(cb_data) { \ 1545 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks = numBlocks; \ 1546 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f = f; \ 1547 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize = blockSize; \ 1548 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynSharedMemPerBlk = dynSharedMemPerBlk; \ 1549 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags = flags; \ 1552 #define INIT_hipSetDeviceFlags_CB_ARGS_DATA(cb_data) { \ 1553 cb_data.args.hipSetDeviceFlags.flags = flags; \ 1556 #define INIT_hipHccModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1557 cb_data.args.hipHccModuleLaunchKernel.f = f; \ 1558 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeX = globalWorkSizeX; \ 1559 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeY = globalWorkSizeY; \ 1560 cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeZ = globalWorkSizeZ; \ 1561 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeX = localWorkSizeX; \ 1562 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeY = localWorkSizeY; \ 1563 cb_data.args.hipHccModuleLaunchKernel.localWorkSizeZ = localWorkSizeZ; \ 1564 cb_data.args.hipHccModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1565 cb_data.args.hipHccModuleLaunchKernel.hStream = hStream; \ 1566 cb_data.args.hipHccModuleLaunchKernel.kernelParams = kernelParams; \ 1567 cb_data.args.hipHccModuleLaunchKernel.extra = extra; \ 1568 cb_data.args.hipHccModuleLaunchKernel.startEvent = startEvent; \ 1569 cb_data.args.hipHccModuleLaunchKernel.stopEvent = stopEvent; \ 1572 #define INIT_hipFree_CB_ARGS_DATA(cb_data) { \ 1573 cb_data.args.hipFree.ptr = ptr; \ 1576 #define INIT_hipOccupancyMaxPotentialBlockSize_CB_ARGS_DATA(cb_data) { \ 1577 cb_data.args.hipOccupancyMaxPotentialBlockSize.gridSize = gridSize; \ 1578 cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSize = blockSize; \ 1579 cb_data.args.hipOccupancyMaxPotentialBlockSize.f = f; \ 1580 cb_data.args.hipOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk = dynSharedMemPerBlk; \ 1581 cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSizeLimit = blockSizeLimit; \ 1584 #define INIT_hipDeviceGetAttribute_CB_ARGS_DATA(cb_data) { \ 1585 cb_data.args.hipDeviceGetAttribute.pi = pi; \ 1586 cb_data.args.hipDeviceGetAttribute.attr = attr; \ 1587 cb_data.args.hipDeviceGetAttribute.deviceId = device; \ 1590 #define INIT_hipMemcpyDtoH_CB_ARGS_DATA(cb_data) { \ 1591 cb_data.args.hipMemcpyDtoH.dst = dst; \ 1592 cb_data.args.hipMemcpyDtoH.src = src; \ 1593 cb_data.args.hipMemcpyDtoH.sizeBytes = sizeBytes; \ 1596 #define INIT_hipCtxDisablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1597 cb_data.args.hipCtxDisablePeerAccess.peerCtx = peerCtx; \ 1600 #define INIT_hipMallocManaged_CB_ARGS_DATA(cb_data) { \ 1601 cb_data.args.hipMallocManaged.devPtr = devPtr; \ 1602 cb_data.args.hipMallocManaged.size = size; \ 1603 cb_data.args.hipMallocManaged.flags = flags; \ 1606 #define INIT_hipDeviceGetByPCIBusId_CB_ARGS_DATA(cb_data) { \ 1607 cb_data.args.hipDeviceGetByPCIBusId.device = device; \ 1608 cb_data.args.hipDeviceGetByPCIBusId.pciBusId = pciBusId; \ 1611 #define INIT_hipIpcGetMemHandle_CB_ARGS_DATA(cb_data) { \ 1612 cb_data.args.hipIpcGetMemHandle.handle = handle; \ 1613 cb_data.args.hipIpcGetMemHandle.devPtr = devPtr; \ 1616 #define INIT_hipMemcpyHtoDAsync_CB_ARGS_DATA(cb_data) { \ 1617 cb_data.args.hipMemcpyHtoDAsync.dst = dst; \ 1618 cb_data.args.hipMemcpyHtoDAsync.src = src; \ 1619 cb_data.args.hipMemcpyHtoDAsync.sizeBytes = sizeBytes; \ 1620 cb_data.args.hipMemcpyHtoDAsync.stream = stream; \ 1623 #define INIT_hipCtxGetDevice_CB_ARGS_DATA(cb_data) { \ 1624 cb_data.args.hipCtxGetDevice.device = device; \ 1627 #define INIT_hipMemset3D_CB_ARGS_DATA(cb_data) { \ 1628 cb_data.args.hipMemset3D.pitchedDevPtr = pitchedDevPtr; \ 1629 cb_data.args.hipMemset3D.value = value; \ 1630 cb_data.args.hipMemset3D.extent = extent; \ 1633 #define INIT_hipModuleLoadData_CB_ARGS_DATA(cb_data) { \ 1634 cb_data.args.hipModuleLoadData.module = module; \ 1635 cb_data.args.hipModuleLoadData.image = image; \ 1638 #define INIT_hipDeviceTotalMem_CB_ARGS_DATA(cb_data) { \ 1639 cb_data.args.hipDeviceTotalMem.bytes = bytes; \ 1640 cb_data.args.hipDeviceTotalMem.device = device; \ 1643 #define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessor_CB_ARGS_DATA(cb_data) { \ 1644 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks = numBlocks; \ 1645 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.f = f; \ 1646 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.blockSize = blockSize; \ 1647 cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.dynSharedMemPerBlk = dynSharedMemPerBlk; \ 1650 #define INIT_hipCtxSetCurrent_CB_ARGS_DATA(cb_data) { \ 1651 cb_data.args.hipCtxSetCurrent.ctx = ctx; \ 1654 #define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \ 1655 cb_data.args.hipGetErrorString.hipError = hip_error; \ 1658 #define INIT_hipDevicePrimaryCtxRetain_CB_ARGS_DATA(cb_data) { \ 1659 cb_data.args.hipDevicePrimaryCtxRetain.pctx = pctx; \ 1660 cb_data.args.hipDevicePrimaryCtxRetain.dev = dev; \ 1663 #define INIT_hipDeviceDisablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1664 cb_data.args.hipDeviceDisablePeerAccess.peerDeviceId = peerDeviceId; \ 1667 #define INIT_hipStreamCreateWithFlags_CB_ARGS_DATA(cb_data) { \ 1668 cb_data.args.hipStreamCreateWithFlags.stream = stream; \ 1669 cb_data.args.hipStreamCreateWithFlags.flags = flags; \ 1672 #define INIT_hipMemcpyFromArray_CB_ARGS_DATA(cb_data) { \ 1673 cb_data.args.hipMemcpyFromArray.dst = dst; \ 1674 cb_data.args.hipMemcpyFromArray.srcArray = srcArray; \ 1675 cb_data.args.hipMemcpyFromArray.wOffset = wOffset; \ 1676 cb_data.args.hipMemcpyFromArray.hOffset = hOffset; \ 1677 cb_data.args.hipMemcpyFromArray.count = count; \ 1678 cb_data.args.hipMemcpyFromArray.kind = kind; \ 1681 #define INIT_hipMemcpy2DAsync_CB_ARGS_DATA(cb_data) { \ 1682 cb_data.args.hipMemcpy2DAsync.dst = dst; \ 1683 cb_data.args.hipMemcpy2DAsync.dpitch = dpitch; \ 1684 cb_data.args.hipMemcpy2DAsync.src = src; \ 1685 cb_data.args.hipMemcpy2DAsync.spitch = spitch; \ 1686 cb_data.args.hipMemcpy2DAsync.width = width; \ 1687 cb_data.args.hipMemcpy2DAsync.height = height; \ 1688 cb_data.args.hipMemcpy2DAsync.kind = kind; \ 1689 cb_data.args.hipMemcpy2DAsync.stream = stream; \ 1692 #define INIT_hipFuncGetAttributes_CB_ARGS_DATA(cb_data) { \ 1693 cb_data.args.hipFuncGetAttributes.attr = attr; \ 1694 cb_data.args.hipFuncGetAttributes.func = func; \ 1697 #define INIT_hipGetSymbolSize_CB_ARGS_DATA(cb_data) { \ 1700 #define INIT_hipEventCreateWithFlags_CB_ARGS_DATA(cb_data) { \ 1701 cb_data.args.hipEventCreateWithFlags.event = event; \ 1702 cb_data.args.hipEventCreateWithFlags.flags = flags; \ 1705 #define INIT_hipStreamQuery_CB_ARGS_DATA(cb_data) { \ 1706 cb_data.args.hipStreamQuery.stream = stream; \ 1709 #define INIT_hipDeviceGetPCIBusId_CB_ARGS_DATA(cb_data) { \ 1710 cb_data.args.hipDeviceGetPCIBusId.pciBusId = pciBusId; \ 1711 cb_data.args.hipDeviceGetPCIBusId.len = len; \ 1712 cb_data.args.hipDeviceGetPCIBusId.device = device; \ 1715 #define INIT_hipMemcpy_CB_ARGS_DATA(cb_data) { \ 1716 cb_data.args.hipMemcpy.dst = dst; \ 1717 cb_data.args.hipMemcpy.src = src; \ 1718 cb_data.args.hipMemcpy.sizeBytes = sizeBytes; \ 1719 cb_data.args.hipMemcpy.kind = kind; \ 1722 #define INIT_hipPeekAtLastError_CB_ARGS_DATA(cb_data) { \ 1725 #define INIT_hipExtLaunchMultiKernelMultiDevice_CB_ARGS_DATA(cb_data) { \ 1726 cb_data.args.hipExtLaunchMultiKernelMultiDevice.launchParamsList = launchParamsList; \ 1727 cb_data.args.hipExtLaunchMultiKernelMultiDevice.numDevices = numDevices; \ 1728 cb_data.args.hipExtLaunchMultiKernelMultiDevice.flags = flags; \ 1731 #define INIT_hipStreamAddCallback_CB_ARGS_DATA(cb_data) { \ 1732 cb_data.args.hipStreamAddCallback.stream = stream; \ 1733 cb_data.args.hipStreamAddCallback.callback = callback; \ 1734 cb_data.args.hipStreamAddCallback.userData = userData; \ 1735 cb_data.args.hipStreamAddCallback.flags = flags; \ 1738 #define INIT_hipMemcpyToArray_CB_ARGS_DATA(cb_data) { \ 1739 cb_data.args.hipMemcpyToArray.dst = dst; \ 1740 cb_data.args.hipMemcpyToArray.wOffset = wOffset; \ 1741 cb_data.args.hipMemcpyToArray.hOffset = hOffset; \ 1742 cb_data.args.hipMemcpyToArray.src = src; \ 1743 cb_data.args.hipMemcpyToArray.count = count; \ 1744 cb_data.args.hipMemcpyToArray.kind = kind; \ 1747 #define INIT_hipMemsetD32_CB_ARGS_DATA(cb_data) { \ 1748 cb_data.args.hipMemsetD32.dest = dst; \ 1749 cb_data.args.hipMemsetD32.value = value; \ 1750 cb_data.args.hipMemsetD32.count = count; \ 1753 #define INIT_hipDeviceSynchronize_CB_ARGS_DATA(cb_data) { \ 1756 #define INIT_hipDeviceGetCacheConfig_CB_ARGS_DATA(cb_data) { \ 1757 cb_data.args.hipDeviceGetCacheConfig.cacheConfig = cacheConfig; \ 1760 #define INIT_hipMalloc3D_CB_ARGS_DATA(cb_data) { \ 1761 cb_data.args.hipMalloc3D.pitchedDevPtr = pitchedDevPtr; \ 1762 cb_data.args.hipMalloc3D.extent = extent; \ 1765 #define INIT_hipPointerGetAttributes_CB_ARGS_DATA(cb_data) { \ 1766 cb_data.args.hipPointerGetAttributes.attributes = attributes; \ 1767 cb_data.args.hipPointerGetAttributes.ptr = ptr; \ 1770 #define INIT_hipMemsetAsync_CB_ARGS_DATA(cb_data) { \ 1771 cb_data.args.hipMemsetAsync.dst = dst; \ 1772 cb_data.args.hipMemsetAsync.value = value; \ 1773 cb_data.args.hipMemsetAsync.sizeBytes = sizeBytes; \ 1774 cb_data.args.hipMemsetAsync.stream = stream; \ 1777 #define INIT_hipMemcpyToSymbol_CB_ARGS_DATA(cb_data) { \ 1780 #define INIT_hipCtxPushCurrent_CB_ARGS_DATA(cb_data) { \ 1781 cb_data.args.hipCtxPushCurrent.ctx = ctx; \ 1784 #define INIT_hipMemcpyPeer_CB_ARGS_DATA(cb_data) { \ 1785 cb_data.args.hipMemcpyPeer.dst = dst; \ 1786 cb_data.args.hipMemcpyPeer.dstDeviceId = dstDevice; \ 1787 cb_data.args.hipMemcpyPeer.src = src; \ 1788 cb_data.args.hipMemcpyPeer.srcDeviceId = srcDevice; \ 1789 cb_data.args.hipMemcpyPeer.sizeBytes = sizeBytes; \ 1792 #define INIT_hipEventSynchronize_CB_ARGS_DATA(cb_data) { \ 1793 cb_data.args.hipEventSynchronize.event = event; \ 1796 #define INIT_hipMemcpyDtoDAsync_CB_ARGS_DATA(cb_data) { \ 1797 cb_data.args.hipMemcpyDtoDAsync.dst = dst; \ 1798 cb_data.args.hipMemcpyDtoDAsync.src = src; \ 1799 cb_data.args.hipMemcpyDtoDAsync.sizeBytes = sizeBytes; \ 1800 cb_data.args.hipMemcpyDtoDAsync.stream = stream; \ 1803 #define INIT_hipExtMallocWithFlags_CB_ARGS_DATA(cb_data) { \ 1804 cb_data.args.hipExtMallocWithFlags.ptr = ptr; \ 1805 cb_data.args.hipExtMallocWithFlags.sizeBytes = sizeBytes; \ 1806 cb_data.args.hipExtMallocWithFlags.flags = flags; \ 1809 #define INIT_hipCtxEnablePeerAccess_CB_ARGS_DATA(cb_data) { \ 1810 cb_data.args.hipCtxEnablePeerAccess.peerCtx = peerCtx; \ 1811 cb_data.args.hipCtxEnablePeerAccess.flags = flags; \ 1814 #define INIT_hipMemcpyDtoHAsync_CB_ARGS_DATA(cb_data) { \ 1815 cb_data.args.hipMemcpyDtoHAsync.dst = dst; \ 1816 cb_data.args.hipMemcpyDtoHAsync.src = src; \ 1817 cb_data.args.hipMemcpyDtoHAsync.sizeBytes = sizeBytes; \ 1818 cb_data.args.hipMemcpyDtoHAsync.stream = stream; \ 1821 #define INIT_hipModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \ 1822 cb_data.args.hipModuleLaunchKernel.f = f; \ 1823 cb_data.args.hipModuleLaunchKernel.gridDimX = gridDimX; \ 1824 cb_data.args.hipModuleLaunchKernel.gridDimY = gridDimY; \ 1825 cb_data.args.hipModuleLaunchKernel.gridDimZ = gridDimZ; \ 1826 cb_data.args.hipModuleLaunchKernel.blockDimX = blockDimX; \ 1827 cb_data.args.hipModuleLaunchKernel.blockDimY = blockDimY; \ 1828 cb_data.args.hipModuleLaunchKernel.blockDimZ = blockDimZ; \ 1829 cb_data.args.hipModuleLaunchKernel.sharedMemBytes = sharedMemBytes; \ 1830 cb_data.args.hipModuleLaunchKernel.stream = hStream; \ 1831 cb_data.args.hipModuleLaunchKernel.kernelParams = kernelParams; \ 1832 cb_data.args.hipModuleLaunchKernel.extra = extra; \ 1835 #define INIT_hipModuleGetTexRef_CB_ARGS_DATA(cb_data) { \ 1836 cb_data.args.hipModuleGetTexRef.texRef = texRef; \ 1837 cb_data.args.hipModuleGetTexRef.hmod = hmod; \ 1838 cb_data.args.hipModuleGetTexRef.name = name; \ 1841 #define INIT_hipDeviceGetLimit_CB_ARGS_DATA(cb_data) { \ 1842 cb_data.args.hipDeviceGetLimit.pValue = pValue; \ 1843 cb_data.args.hipDeviceGetLimit.limit = limit; \ 1846 #define INIT_hipModuleLoadDataEx_CB_ARGS_DATA(cb_data) { \ 1847 cb_data.args.hipModuleLoadDataEx.module = module; \ 1848 cb_data.args.hipModuleLoadDataEx.image = image; \ 1849 cb_data.args.hipModuleLoadDataEx.numOptions = numOptions; \ 1850 cb_data.args.hipModuleLoadDataEx.options = options; \ 1851 cb_data.args.hipModuleLoadDataEx.optionValues = optionValues; \ 1854 #define INIT_hipRuntimeGetVersion_CB_ARGS_DATA(cb_data) { \ 1855 cb_data.args.hipRuntimeGetVersion.runtimeVersion = runtimeVersion; \ 1858 #define INIT_hipGetDeviceProperties_CB_ARGS_DATA(cb_data) { \ 1859 cb_data.args.hipGetDeviceProperties.prop = props; \ 1860 cb_data.args.hipGetDeviceProperties.deviceId = device; \ 1863 #define INIT_hipFreeArray_CB_ARGS_DATA(cb_data) { \ 1864 cb_data.args.hipFreeArray.array = array; \ 1867 #define INIT_hipDevicePrimaryCtxRelease_CB_ARGS_DATA(cb_data) { \ 1868 cb_data.args.hipDevicePrimaryCtxRelease.dev = dev; \ 1871 #define INIT_hipHostGetDevicePointer_CB_ARGS_DATA(cb_data) { \ 1872 cb_data.args.hipHostGetDevicePointer.devPtr = devicePointer; \ 1873 cb_data.args.hipHostGetDevicePointer.hstPtr = hostPointer; \ 1874 cb_data.args.hipHostGetDevicePointer.flags = flags; \ 1877 #define INIT_hipMemcpyParam2D_CB_ARGS_DATA(cb_data) { \ 1878 cb_data.args.hipMemcpyParam2D.pCopy = pCopy; \ 1881 #define INIT_hipModuleGetFunction_CB_ARGS_DATA(cb_data) { \ 1882 cb_data.args.hipModuleGetFunction.function = hfunc; \ 1883 cb_data.args.hipModuleGetFunction.module = hmod; \ 1884 cb_data.args.hipModuleGetFunction.kname = name; \ 1887 #define INIT_hipMemsetD32Async_CB_ARGS_DATA(cb_data) { \ 1888 cb_data.args.hipMemsetD32Async.dst = dst; \ 1889 cb_data.args.hipMemsetD32Async.value = value; \ 1890 cb_data.args.hipMemsetD32Async.count = count; \ 1891 cb_data.args.hipMemsetD32Async.stream = stream; \ 1894 #define INIT_hipGetDevice_CB_ARGS_DATA(cb_data) { \ 1895 cb_data.args.hipGetDevice.deviceId = deviceId; \ 1898 #define INIT_hipGetDeviceCount_CB_ARGS_DATA(cb_data) { \ 1899 cb_data.args.hipGetDeviceCount.count = count; \ 1901 #define INIT_CB_ARGS_DATA(cb_id, cb_data) INIT_##cb_id##_CB_ARGS_DATA(cb_data) 1902 #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:382