Files
rocm-systems/hipamd/include/hip/amd_detail/hip_prof_str.h
T
Anusha GodavarthySurya e5cbfa8ca9 SWDEV-240807 - Added Implementation for few more graph APIs
Change-Id: I76336a22233a208a3f54ff9e90f0c5bf4a1bddb4
2021-07-14 20:56:36 -07:00

5655 lines
283 KiB
C++

// Generated file. DO NOT EDIT.
//
// This file is automatically generated by the hip_prof_gen.py script.
// If changes are required, run the script and commit the updated file.
#ifndef _HIP_PROF_STR_H
#define _HIP_PROF_STR_H
#define HIP_PROF_VER 1
// HIP API callbacks ID enumeration
enum hip_api_id_t {
HIP_API_ID_NONE = 0,
HIP_API_ID_FIRST = 1,
HIP_API_ID___hipPopCallConfiguration = 1,
HIP_API_ID___hipPushCallConfiguration = 2,
HIP_API_ID_hipArray3DCreate = 3,
HIP_API_ID_hipArrayCreate = 4,
HIP_API_ID_hipArrayDestroy = 5,
HIP_API_ID_hipChooseDevice = 6,
HIP_API_ID_hipConfigureCall = 7,
HIP_API_ID_hipCtxCreate = 8,
HIP_API_ID_hipCtxDestroy = 9,
HIP_API_ID_hipCtxDisablePeerAccess = 10,
HIP_API_ID_hipCtxEnablePeerAccess = 11,
HIP_API_ID_hipCtxGetApiVersion = 12,
HIP_API_ID_hipCtxGetCacheConfig = 13,
HIP_API_ID_hipCtxGetCurrent = 14,
HIP_API_ID_hipCtxGetDevice = 15,
HIP_API_ID_hipCtxGetFlags = 16,
HIP_API_ID_hipCtxGetSharedMemConfig = 17,
HIP_API_ID_hipCtxPopCurrent = 18,
HIP_API_ID_hipCtxPushCurrent = 19,
HIP_API_ID_hipCtxSetCacheConfig = 20,
HIP_API_ID_hipCtxSetCurrent = 21,
HIP_API_ID_hipCtxSetSharedMemConfig = 22,
HIP_API_ID_hipCtxSynchronize = 23,
HIP_API_ID_hipDestroyExternalMemory = 24,
HIP_API_ID_hipDestroyExternalSemaphore = 25,
HIP_API_ID_hipDeviceCanAccessPeer = 26,
HIP_API_ID_hipDeviceComputeCapability = 27,
HIP_API_ID_hipDeviceDisablePeerAccess = 28,
HIP_API_ID_hipDeviceEnablePeerAccess = 29,
HIP_API_ID_hipDeviceGet = 30,
HIP_API_ID_hipDeviceGetAttribute = 31,
HIP_API_ID_hipDeviceGetByPCIBusId = 32,
HIP_API_ID_hipDeviceGetCacheConfig = 33,
HIP_API_ID_hipDeviceGetLimit = 34,
HIP_API_ID_hipDeviceGetName = 35,
HIP_API_ID_hipDeviceGetP2PAttribute = 36,
HIP_API_ID_hipDeviceGetPCIBusId = 37,
HIP_API_ID_hipDeviceGetSharedMemConfig = 38,
HIP_API_ID_hipDeviceGetStreamPriorityRange = 39,
HIP_API_ID_hipDevicePrimaryCtxGetState = 40,
HIP_API_ID_hipDevicePrimaryCtxRelease = 41,
HIP_API_ID_hipDevicePrimaryCtxReset = 42,
HIP_API_ID_hipDevicePrimaryCtxRetain = 43,
HIP_API_ID_hipDevicePrimaryCtxSetFlags = 44,
HIP_API_ID_hipDeviceReset = 45,
HIP_API_ID_hipDeviceSetCacheConfig = 46,
HIP_API_ID_hipDeviceSetSharedMemConfig = 47,
HIP_API_ID_hipDeviceSynchronize = 48,
HIP_API_ID_hipDeviceTotalMem = 49,
HIP_API_ID_hipDriverGetVersion = 50,
HIP_API_ID_hipDrvMemcpy2DUnaligned = 51,
HIP_API_ID_hipDrvMemcpy3D = 52,
HIP_API_ID_hipDrvMemcpy3DAsync = 53,
HIP_API_ID_hipEventCreate = 54,
HIP_API_ID_hipEventCreateWithFlags = 55,
HIP_API_ID_hipEventDestroy = 56,
HIP_API_ID_hipEventElapsedTime = 57,
HIP_API_ID_hipEventQuery = 58,
HIP_API_ID_hipEventRecord = 59,
HIP_API_ID_hipEventSynchronize = 60,
HIP_API_ID_hipExtGetLinkTypeAndHopCount = 61,
HIP_API_ID_hipExtLaunchKernel = 62,
HIP_API_ID_hipExtLaunchMultiKernelMultiDevice = 63,
HIP_API_ID_hipExtMallocWithFlags = 64,
HIP_API_ID_hipExtModuleLaunchKernel = 65,
HIP_API_ID_hipExtStreamCreateWithCUMask = 66,
HIP_API_ID_hipExtStreamGetCUMask = 67,
HIP_API_ID_hipExternalMemoryGetMappedBuffer = 68,
HIP_API_ID_hipFree = 69,
HIP_API_ID_hipFreeArray = 70,
HIP_API_ID_hipFreeHost = 71,
HIP_API_ID_hipFreeMipmappedArray = 72,
HIP_API_ID_hipFuncGetAttribute = 73,
HIP_API_ID_hipFuncGetAttributes = 74,
HIP_API_ID_hipFuncSetAttribute = 75,
HIP_API_ID_hipFuncSetCacheConfig = 76,
HIP_API_ID_hipFuncSetSharedMemConfig = 77,
HIP_API_ID_hipGetDevice = 78,
HIP_API_ID_hipGetDeviceCount = 79,
HIP_API_ID_hipGetDeviceFlags = 80,
HIP_API_ID_hipGetDeviceProperties = 81,
HIP_API_ID_hipGetErrorName = 82,
HIP_API_ID_hipGetErrorString = 83,
HIP_API_ID_hipGetLastError = 84,
HIP_API_ID_hipGetMipmappedArrayLevel = 85,
HIP_API_ID_hipGetSymbolAddress = 86,
HIP_API_ID_hipGetSymbolSize = 87,
HIP_API_ID_hipHccModuleLaunchKernel = 88,
HIP_API_ID_hipHostAlloc = 89,
HIP_API_ID_hipHostFree = 90,
HIP_API_ID_hipHostGetDevicePointer = 91,
HIP_API_ID_hipHostGetFlags = 92,
HIP_API_ID_hipHostMalloc = 93,
HIP_API_ID_hipHostRegister = 94,
HIP_API_ID_hipHostUnregister = 95,
HIP_API_ID_hipImportExternalMemory = 96,
HIP_API_ID_hipImportExternalSemaphore = 97,
HIP_API_ID_hipInit = 98,
HIP_API_ID_hipIpcCloseMemHandle = 99,
HIP_API_ID_hipIpcGetEventHandle = 100,
HIP_API_ID_hipIpcGetMemHandle = 101,
HIP_API_ID_hipIpcOpenEventHandle = 102,
HIP_API_ID_hipIpcOpenMemHandle = 103,
HIP_API_ID_hipLaunchByPtr = 104,
HIP_API_ID_hipLaunchCooperativeKernel = 105,
HIP_API_ID_hipLaunchCooperativeKernelMultiDevice = 106,
HIP_API_ID_hipLaunchKernel = 107,
HIP_API_ID_hipMalloc = 108,
HIP_API_ID_hipMalloc3D = 109,
HIP_API_ID_hipMalloc3DArray = 110,
HIP_API_ID_hipMallocArray = 111,
HIP_API_ID_hipMallocHost = 112,
HIP_API_ID_hipMallocManaged = 113,
HIP_API_ID_hipMallocMipmappedArray = 114,
HIP_API_ID_hipMallocPitch = 115,
HIP_API_ID_hipMemAdvise = 116,
HIP_API_ID_hipMemAllocHost = 117,
HIP_API_ID_hipMemAllocPitch = 118,
HIP_API_ID_hipMemGetAddressRange = 119,
HIP_API_ID_hipMemGetInfo = 120,
HIP_API_ID_hipMemPrefetchAsync = 121,
HIP_API_ID_hipMemPtrGetInfo = 122,
HIP_API_ID_hipMemRangeGetAttribute = 123,
HIP_API_ID_hipMemRangeGetAttributes = 124,
HIP_API_ID_hipMemcpy = 125,
HIP_API_ID_hipMemcpy2D = 126,
HIP_API_ID_hipMemcpy2DAsync = 127,
HIP_API_ID_hipMemcpy2DFromArray = 128,
HIP_API_ID_hipMemcpy2DFromArrayAsync = 129,
HIP_API_ID_hipMemcpy2DToArray = 130,
HIP_API_ID_hipMemcpy2DToArrayAsync = 131,
HIP_API_ID_hipMemcpy3D = 132,
HIP_API_ID_hipMemcpy3DAsync = 133,
HIP_API_ID_hipMemcpyAsync = 134,
HIP_API_ID_hipMemcpyAtoH = 135,
HIP_API_ID_hipMemcpyDtoD = 136,
HIP_API_ID_hipMemcpyDtoDAsync = 137,
HIP_API_ID_hipMemcpyDtoH = 138,
HIP_API_ID_hipMemcpyDtoHAsync = 139,
HIP_API_ID_hipMemcpyFromArray = 140,
HIP_API_ID_hipMemcpyFromSymbol = 141,
HIP_API_ID_hipMemcpyFromSymbolAsync = 142,
HIP_API_ID_hipMemcpyHtoA = 143,
HIP_API_ID_hipMemcpyHtoD = 144,
HIP_API_ID_hipMemcpyHtoDAsync = 145,
HIP_API_ID_hipMemcpyParam2D = 146,
HIP_API_ID_hipMemcpyParam2DAsync = 147,
HIP_API_ID_hipMemcpyPeer = 148,
HIP_API_ID_hipMemcpyPeerAsync = 149,
HIP_API_ID_hipMemcpyToArray = 150,
HIP_API_ID_hipMemcpyToSymbol = 151,
HIP_API_ID_hipMemcpyToSymbolAsync = 152,
HIP_API_ID_hipMemcpyWithStream = 153,
HIP_API_ID_hipMemset = 154,
HIP_API_ID_hipMemset2D = 155,
HIP_API_ID_hipMemset2DAsync = 156,
HIP_API_ID_hipMemset3D = 157,
HIP_API_ID_hipMemset3DAsync = 158,
HIP_API_ID_hipMemsetAsync = 159,
HIP_API_ID_hipMemsetD16 = 160,
HIP_API_ID_hipMemsetD16Async = 161,
HIP_API_ID_hipMemsetD32 = 162,
HIP_API_ID_hipMemsetD32Async = 163,
HIP_API_ID_hipMemsetD8 = 164,
HIP_API_ID_hipMemsetD8Async = 165,
HIP_API_ID_hipModuleGetFunction = 166,
HIP_API_ID_hipModuleGetGlobal = 167,
HIP_API_ID_hipModuleGetTexRef = 168,
HIP_API_ID_hipModuleLaunchKernel = 169,
HIP_API_ID_hipModuleLoad = 170,
HIP_API_ID_hipModuleLoadData = 171,
HIP_API_ID_hipModuleLoadDataEx = 172,
HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor = 173,
HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = 174,
HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSize = 175,
HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags = 176,
HIP_API_ID_hipModuleUnload = 177,
HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor = 178,
HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = 179,
HIP_API_ID_hipOccupancyMaxPotentialBlockSize = 180,
HIP_API_ID_hipPeekAtLastError = 181,
HIP_API_ID_hipPointerGetAttributes = 182,
HIP_API_ID_hipProfilerStart = 183,
HIP_API_ID_hipProfilerStop = 184,
HIP_API_ID_hipRuntimeGetVersion = 185,
HIP_API_ID_hipSetDevice = 186,
HIP_API_ID_hipSetDeviceFlags = 187,
HIP_API_ID_hipSetupArgument = 188,
HIP_API_ID_hipSignalExternalSemaphoresAsync = 189,
HIP_API_ID_hipStreamAddCallback = 190,
HIP_API_ID_hipStreamAttachMemAsync = 191,
HIP_API_ID_hipStreamCreate = 192,
HIP_API_ID_hipStreamCreateWithFlags = 193,
HIP_API_ID_hipStreamCreateWithPriority = 194,
HIP_API_ID_hipStreamDestroy = 195,
HIP_API_ID_hipStreamGetFlags = 196,
HIP_API_ID_hipStreamGetPriority = 197,
HIP_API_ID_hipStreamQuery = 198,
HIP_API_ID_hipStreamSynchronize = 199,
HIP_API_ID_hipStreamWaitEvent = 200,
HIP_API_ID_hipStreamWaitValue32 = 201,
HIP_API_ID_hipStreamWaitValue64 = 202,
HIP_API_ID_hipStreamWriteValue32 = 203,
HIP_API_ID_hipStreamWriteValue64 = 204,
HIP_API_ID_hipWaitExternalSemaphoresAsync = 205,
HIP_API_ID_LAST = 205,
HIP_API_ID_hipArray3DGetDescriptor = HIP_API_ID_NONE,
HIP_API_ID_hipArrayGetDescriptor = HIP_API_ID_NONE,
HIP_API_ID_hipBindTexture = HIP_API_ID_NONE,
HIP_API_ID_hipBindTexture2D = HIP_API_ID_NONE,
HIP_API_ID_hipBindTextureToArray = HIP_API_ID_NONE,
HIP_API_ID_hipBindTextureToMipmappedArray = HIP_API_ID_NONE,
HIP_API_ID_hipCreateSurfaceObject = HIP_API_ID_NONE,
HIP_API_ID_hipCreateTextureObject = HIP_API_ID_NONE,
HIP_API_ID_hipDestroySurfaceObject = HIP_API_ID_NONE,
HIP_API_ID_hipDestroyTextureObject = HIP_API_ID_NONE,
HIP_API_ID_hipDeviceGetCount = HIP_API_ID_NONE,
HIP_API_ID_hipGLGetDevices = HIP_API_ID_NONE,
HIP_API_ID_hipGetChannelDesc = HIP_API_ID_NONE,
HIP_API_ID_hipGetTextureAlignmentOffset = HIP_API_ID_NONE,
HIP_API_ID_hipGetTextureObjectResourceDesc = HIP_API_ID_NONE,
HIP_API_ID_hipGetTextureObjectResourceViewDesc = HIP_API_ID_NONE,
HIP_API_ID_hipGetTextureObjectTextureDesc = HIP_API_ID_NONE,
HIP_API_ID_hipGetTextureReference = HIP_API_ID_NONE,
HIP_API_ID_hipGraphAddDependencies = HIP_API_ID_NONE,
HIP_API_ID_hipGraphAddKernelNode = HIP_API_ID_NONE,
HIP_API_ID_hipGraphAddMemcpyNode = HIP_API_ID_NONE,
HIP_API_ID_hipGraphAddMemsetNode = HIP_API_ID_NONE,
HIP_API_ID_hipGraphCreate = HIP_API_ID_NONE,
HIP_API_ID_hipGraphDestroy = HIP_API_ID_NONE,
HIP_API_ID_hipGraphExecDestroy = HIP_API_ID_NONE,
HIP_API_ID_hipGraphGetNodes = HIP_API_ID_NONE,
HIP_API_ID_hipGraphGetRootNodes = HIP_API_ID_NONE,
HIP_API_ID_hipGraphInstantiate = HIP_API_ID_NONE,
HIP_API_ID_hipGraphKernelNodeGetParams = HIP_API_ID_NONE,
HIP_API_ID_hipGraphKernelNodeSetParams = HIP_API_ID_NONE,
HIP_API_ID_hipGraphLaunch = HIP_API_ID_NONE,
HIP_API_ID_hipGraphMemcpyNodeGetParams = HIP_API_ID_NONE,
HIP_API_ID_hipGraphMemcpyNodeSetParams = HIP_API_ID_NONE,
HIP_API_ID_hipGraphMemsetNodeGetParams = HIP_API_ID_NONE,
HIP_API_ID_hipGraphMemsetNodeSetParams = HIP_API_ID_NONE,
HIP_API_ID_hipGraphicsGLRegisterBuffer = HIP_API_ID_NONE,
HIP_API_ID_hipGraphicsMapResources = HIP_API_ID_NONE,
HIP_API_ID_hipGraphicsResourceGetMappedPointer = HIP_API_ID_NONE,
HIP_API_ID_hipGraphicsUnmapResources = HIP_API_ID_NONE,
HIP_API_ID_hipGraphicsUnregisterResource = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpy2DArrayToArray = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyArrayToArray = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyAtoA = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyAtoD = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyAtoHAsync = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyDtoA = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyFromArrayAsync = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyHtoAAsync = HIP_API_ID_NONE,
HIP_API_ID_hipMemcpyToArrayAsync = HIP_API_ID_NONE,
HIP_API_ID_hipMipmappedArrayCreate = HIP_API_ID_NONE,
HIP_API_ID_hipMipmappedArrayDestroy = HIP_API_ID_NONE,
HIP_API_ID_hipMipmappedArrayGetLevel = HIP_API_ID_NONE,
HIP_API_ID_hipModuleLaunchKernelExt = HIP_API_ID_NONE,
HIP_API_ID_hipSetValidDevices = HIP_API_ID_NONE,
HIP_API_ID_hipStreamBeginCapture = HIP_API_ID_NONE,
HIP_API_ID_hipStreamEndCapture = HIP_API_ID_NONE,
HIP_API_ID_hipStreamIsCapturing = HIP_API_ID_NONE,
HIP_API_ID_hipTexObjectCreate = HIP_API_ID_NONE,
HIP_API_ID_hipTexObjectDestroy = HIP_API_ID_NONE,
HIP_API_ID_hipTexObjectGetResourceDesc = HIP_API_ID_NONE,
HIP_API_ID_hipTexObjectGetResourceViewDesc = HIP_API_ID_NONE,
HIP_API_ID_hipTexObjectGetTextureDesc = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetAddress = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetAddressMode = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetArray = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetBorderColor = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetFilterMode = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetFlags = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetFormat = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetMaxAnisotropy = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetMipmapFilterMode = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetMipmapLevelBias = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetMipmapLevelClamp = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefGetMipmappedArray = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetAddress = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetAddress2D = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetAddressMode = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetArray = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetBorderColor = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetFilterMode = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetFlags = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetFormat = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetMaxAnisotropy = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetMipmapFilterMode = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetMipmapLevelBias = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetMipmapLevelClamp = HIP_API_ID_NONE,
HIP_API_ID_hipTexRefSetMipmappedArray = HIP_API_ID_NONE,
HIP_API_ID_hipUnbindTexture = HIP_API_ID_NONE,
HIP_API_ID_ihipModuleLaunchKernel = HIP_API_ID_NONE,
};
// Return the HIP API string for a given callback ID
static inline const char* hip_api_name(const uint32_t id) {
switch(id) {
case HIP_API_ID___hipPopCallConfiguration: return "__hipPopCallConfiguration";
case HIP_API_ID___hipPushCallConfiguration: return "__hipPushCallConfiguration";
case HIP_API_ID_hipArray3DCreate: return "hipArray3DCreate";
case HIP_API_ID_hipArrayCreate: return "hipArrayCreate";
case HIP_API_ID_hipArrayDestroy: return "hipArrayDestroy";
case HIP_API_ID_hipChooseDevice: return "hipChooseDevice";
case HIP_API_ID_hipConfigureCall: return "hipConfigureCall";
case HIP_API_ID_hipCtxCreate: return "hipCtxCreate";
case HIP_API_ID_hipCtxDestroy: return "hipCtxDestroy";
case HIP_API_ID_hipCtxDisablePeerAccess: return "hipCtxDisablePeerAccess";
case HIP_API_ID_hipCtxEnablePeerAccess: return "hipCtxEnablePeerAccess";
case HIP_API_ID_hipCtxGetApiVersion: return "hipCtxGetApiVersion";
case HIP_API_ID_hipCtxGetCacheConfig: return "hipCtxGetCacheConfig";
case HIP_API_ID_hipCtxGetCurrent: return "hipCtxGetCurrent";
case HIP_API_ID_hipCtxGetDevice: return "hipCtxGetDevice";
case HIP_API_ID_hipCtxGetFlags: return "hipCtxGetFlags";
case HIP_API_ID_hipCtxGetSharedMemConfig: return "hipCtxGetSharedMemConfig";
case HIP_API_ID_hipCtxPopCurrent: return "hipCtxPopCurrent";
case HIP_API_ID_hipCtxPushCurrent: return "hipCtxPushCurrent";
case HIP_API_ID_hipCtxSetCacheConfig: return "hipCtxSetCacheConfig";
case HIP_API_ID_hipCtxSetCurrent: return "hipCtxSetCurrent";
case HIP_API_ID_hipCtxSetSharedMemConfig: return "hipCtxSetSharedMemConfig";
case HIP_API_ID_hipCtxSynchronize: return "hipCtxSynchronize";
case HIP_API_ID_hipDestroyExternalMemory: return "hipDestroyExternalMemory";
case HIP_API_ID_hipDestroyExternalSemaphore: return "hipDestroyExternalSemaphore";
case HIP_API_ID_hipDeviceCanAccessPeer: return "hipDeviceCanAccessPeer";
case HIP_API_ID_hipDeviceComputeCapability: return "hipDeviceComputeCapability";
case HIP_API_ID_hipDeviceDisablePeerAccess: return "hipDeviceDisablePeerAccess";
case HIP_API_ID_hipDeviceEnablePeerAccess: return "hipDeviceEnablePeerAccess";
case HIP_API_ID_hipDeviceGet: return "hipDeviceGet";
case HIP_API_ID_hipDeviceGetAttribute: return "hipDeviceGetAttribute";
case HIP_API_ID_hipDeviceGetByPCIBusId: return "hipDeviceGetByPCIBusId";
case HIP_API_ID_hipDeviceGetCacheConfig: return "hipDeviceGetCacheConfig";
case HIP_API_ID_hipDeviceGetLimit: return "hipDeviceGetLimit";
case HIP_API_ID_hipDeviceGetName: return "hipDeviceGetName";
case HIP_API_ID_hipDeviceGetP2PAttribute: return "hipDeviceGetP2PAttribute";
case HIP_API_ID_hipDeviceGetPCIBusId: return "hipDeviceGetPCIBusId";
case HIP_API_ID_hipDeviceGetSharedMemConfig: return "hipDeviceGetSharedMemConfig";
case HIP_API_ID_hipDeviceGetStreamPriorityRange: return "hipDeviceGetStreamPriorityRange";
case HIP_API_ID_hipDevicePrimaryCtxGetState: return "hipDevicePrimaryCtxGetState";
case HIP_API_ID_hipDevicePrimaryCtxRelease: return "hipDevicePrimaryCtxRelease";
case HIP_API_ID_hipDevicePrimaryCtxReset: return "hipDevicePrimaryCtxReset";
case HIP_API_ID_hipDevicePrimaryCtxRetain: return "hipDevicePrimaryCtxRetain";
case HIP_API_ID_hipDevicePrimaryCtxSetFlags: return "hipDevicePrimaryCtxSetFlags";
case HIP_API_ID_hipDeviceReset: return "hipDeviceReset";
case HIP_API_ID_hipDeviceSetCacheConfig: return "hipDeviceSetCacheConfig";
case HIP_API_ID_hipDeviceSetSharedMemConfig: return "hipDeviceSetSharedMemConfig";
case HIP_API_ID_hipDeviceSynchronize: return "hipDeviceSynchronize";
case HIP_API_ID_hipDeviceTotalMem: return "hipDeviceTotalMem";
case HIP_API_ID_hipDriverGetVersion: return "hipDriverGetVersion";
case HIP_API_ID_hipDrvMemcpy2DUnaligned: return "hipDrvMemcpy2DUnaligned";
case HIP_API_ID_hipDrvMemcpy3D: return "hipDrvMemcpy3D";
case HIP_API_ID_hipDrvMemcpy3DAsync: return "hipDrvMemcpy3DAsync";
case HIP_API_ID_hipEventCreate: return "hipEventCreate";
case HIP_API_ID_hipEventCreateWithFlags: return "hipEventCreateWithFlags";
case HIP_API_ID_hipEventDestroy: return "hipEventDestroy";
case HIP_API_ID_hipEventElapsedTime: return "hipEventElapsedTime";
case HIP_API_ID_hipEventQuery: return "hipEventQuery";
case HIP_API_ID_hipEventRecord: return "hipEventRecord";
case HIP_API_ID_hipEventSynchronize: return "hipEventSynchronize";
case HIP_API_ID_hipExtGetLinkTypeAndHopCount: return "hipExtGetLinkTypeAndHopCount";
case HIP_API_ID_hipExtLaunchKernel: return "hipExtLaunchKernel";
case HIP_API_ID_hipExtLaunchMultiKernelMultiDevice: return "hipExtLaunchMultiKernelMultiDevice";
case HIP_API_ID_hipExtMallocWithFlags: return "hipExtMallocWithFlags";
case HIP_API_ID_hipExtModuleLaunchKernel: return "hipExtModuleLaunchKernel";
case HIP_API_ID_hipExtStreamCreateWithCUMask: return "hipExtStreamCreateWithCUMask";
case HIP_API_ID_hipExtStreamGetCUMask: return "hipExtStreamGetCUMask";
case HIP_API_ID_hipExternalMemoryGetMappedBuffer: return "hipExternalMemoryGetMappedBuffer";
case HIP_API_ID_hipFree: return "hipFree";
case HIP_API_ID_hipFreeArray: return "hipFreeArray";
case HIP_API_ID_hipFreeHost: return "hipFreeHost";
case HIP_API_ID_hipFreeMipmappedArray: return "hipFreeMipmappedArray";
case HIP_API_ID_hipFuncGetAttribute: return "hipFuncGetAttribute";
case HIP_API_ID_hipFuncGetAttributes: return "hipFuncGetAttributes";
case HIP_API_ID_hipFuncSetAttribute: return "hipFuncSetAttribute";
case HIP_API_ID_hipFuncSetCacheConfig: return "hipFuncSetCacheConfig";
case HIP_API_ID_hipFuncSetSharedMemConfig: return "hipFuncSetSharedMemConfig";
case HIP_API_ID_hipGetDevice: return "hipGetDevice";
case HIP_API_ID_hipGetDeviceCount: return "hipGetDeviceCount";
case HIP_API_ID_hipGetDeviceFlags: return "hipGetDeviceFlags";
case HIP_API_ID_hipGetDeviceProperties: return "hipGetDeviceProperties";
case HIP_API_ID_hipGetErrorName: return "hipGetErrorName";
case HIP_API_ID_hipGetErrorString: return "hipGetErrorString";
case HIP_API_ID_hipGetLastError: return "hipGetLastError";
case HIP_API_ID_hipGetMipmappedArrayLevel: return "hipGetMipmappedArrayLevel";
case HIP_API_ID_hipGetSymbolAddress: return "hipGetSymbolAddress";
case HIP_API_ID_hipGetSymbolSize: return "hipGetSymbolSize";
case HIP_API_ID_hipHccModuleLaunchKernel: return "hipHccModuleLaunchKernel";
case HIP_API_ID_hipHostAlloc: return "hipHostAlloc";
case HIP_API_ID_hipHostFree: return "hipHostFree";
case HIP_API_ID_hipHostGetDevicePointer: return "hipHostGetDevicePointer";
case HIP_API_ID_hipHostGetFlags: return "hipHostGetFlags";
case HIP_API_ID_hipHostMalloc: return "hipHostMalloc";
case HIP_API_ID_hipHostRegister: return "hipHostRegister";
case HIP_API_ID_hipHostUnregister: return "hipHostUnregister";
case HIP_API_ID_hipImportExternalMemory: return "hipImportExternalMemory";
case HIP_API_ID_hipImportExternalSemaphore: return "hipImportExternalSemaphore";
case HIP_API_ID_hipInit: return "hipInit";
case HIP_API_ID_hipIpcCloseMemHandle: return "hipIpcCloseMemHandle";
case HIP_API_ID_hipIpcGetEventHandle: return "hipIpcGetEventHandle";
case HIP_API_ID_hipIpcGetMemHandle: return "hipIpcGetMemHandle";
case HIP_API_ID_hipIpcOpenEventHandle: return "hipIpcOpenEventHandle";
case HIP_API_ID_hipIpcOpenMemHandle: return "hipIpcOpenMemHandle";
case HIP_API_ID_hipLaunchByPtr: return "hipLaunchByPtr";
case HIP_API_ID_hipLaunchCooperativeKernel: return "hipLaunchCooperativeKernel";
case HIP_API_ID_hipLaunchCooperativeKernelMultiDevice: return "hipLaunchCooperativeKernelMultiDevice";
case HIP_API_ID_hipLaunchKernel: return "hipLaunchKernel";
case HIP_API_ID_hipMalloc: return "hipMalloc";
case HIP_API_ID_hipMalloc3D: return "hipMalloc3D";
case HIP_API_ID_hipMalloc3DArray: return "hipMalloc3DArray";
case HIP_API_ID_hipMallocArray: return "hipMallocArray";
case HIP_API_ID_hipMallocHost: return "hipMallocHost";
case HIP_API_ID_hipMallocManaged: return "hipMallocManaged";
case HIP_API_ID_hipMallocMipmappedArray: return "hipMallocMipmappedArray";
case HIP_API_ID_hipMallocPitch: return "hipMallocPitch";
case HIP_API_ID_hipMemAdvise: return "hipMemAdvise";
case HIP_API_ID_hipMemAllocHost: return "hipMemAllocHost";
case HIP_API_ID_hipMemAllocPitch: return "hipMemAllocPitch";
case HIP_API_ID_hipMemGetAddressRange: return "hipMemGetAddressRange";
case HIP_API_ID_hipMemGetInfo: return "hipMemGetInfo";
case HIP_API_ID_hipMemPrefetchAsync: return "hipMemPrefetchAsync";
case HIP_API_ID_hipMemPtrGetInfo: return "hipMemPtrGetInfo";
case HIP_API_ID_hipMemRangeGetAttribute: return "hipMemRangeGetAttribute";
case HIP_API_ID_hipMemRangeGetAttributes: return "hipMemRangeGetAttributes";
case HIP_API_ID_hipMemcpy: return "hipMemcpy";
case HIP_API_ID_hipMemcpy2D: return "hipMemcpy2D";
case HIP_API_ID_hipMemcpy2DAsync: return "hipMemcpy2DAsync";
case HIP_API_ID_hipMemcpy2DFromArray: return "hipMemcpy2DFromArray";
case HIP_API_ID_hipMemcpy2DFromArrayAsync: return "hipMemcpy2DFromArrayAsync";
case HIP_API_ID_hipMemcpy2DToArray: return "hipMemcpy2DToArray";
case HIP_API_ID_hipMemcpy2DToArrayAsync: return "hipMemcpy2DToArrayAsync";
case HIP_API_ID_hipMemcpy3D: return "hipMemcpy3D";
case HIP_API_ID_hipMemcpy3DAsync: return "hipMemcpy3DAsync";
case HIP_API_ID_hipMemcpyAsync: return "hipMemcpyAsync";
case HIP_API_ID_hipMemcpyAtoH: return "hipMemcpyAtoH";
case HIP_API_ID_hipMemcpyDtoD: return "hipMemcpyDtoD";
case HIP_API_ID_hipMemcpyDtoDAsync: return "hipMemcpyDtoDAsync";
case HIP_API_ID_hipMemcpyDtoH: return "hipMemcpyDtoH";
case HIP_API_ID_hipMemcpyDtoHAsync: return "hipMemcpyDtoHAsync";
case HIP_API_ID_hipMemcpyFromArray: return "hipMemcpyFromArray";
case HIP_API_ID_hipMemcpyFromSymbol: return "hipMemcpyFromSymbol";
case HIP_API_ID_hipMemcpyFromSymbolAsync: return "hipMemcpyFromSymbolAsync";
case HIP_API_ID_hipMemcpyHtoA: return "hipMemcpyHtoA";
case HIP_API_ID_hipMemcpyHtoD: return "hipMemcpyHtoD";
case HIP_API_ID_hipMemcpyHtoDAsync: return "hipMemcpyHtoDAsync";
case HIP_API_ID_hipMemcpyParam2D: return "hipMemcpyParam2D";
case HIP_API_ID_hipMemcpyParam2DAsync: return "hipMemcpyParam2DAsync";
case HIP_API_ID_hipMemcpyPeer: return "hipMemcpyPeer";
case HIP_API_ID_hipMemcpyPeerAsync: return "hipMemcpyPeerAsync";
case HIP_API_ID_hipMemcpyToArray: return "hipMemcpyToArray";
case HIP_API_ID_hipMemcpyToSymbol: return "hipMemcpyToSymbol";
case HIP_API_ID_hipMemcpyToSymbolAsync: return "hipMemcpyToSymbolAsync";
case HIP_API_ID_hipMemcpyWithStream: return "hipMemcpyWithStream";
case HIP_API_ID_hipMemset: return "hipMemset";
case HIP_API_ID_hipMemset2D: return "hipMemset2D";
case HIP_API_ID_hipMemset2DAsync: return "hipMemset2DAsync";
case HIP_API_ID_hipMemset3D: return "hipMemset3D";
case HIP_API_ID_hipMemset3DAsync: return "hipMemset3DAsync";
case HIP_API_ID_hipMemsetAsync: return "hipMemsetAsync";
case HIP_API_ID_hipMemsetD16: return "hipMemsetD16";
case HIP_API_ID_hipMemsetD16Async: return "hipMemsetD16Async";
case HIP_API_ID_hipMemsetD32: return "hipMemsetD32";
case HIP_API_ID_hipMemsetD32Async: return "hipMemsetD32Async";
case HIP_API_ID_hipMemsetD8: return "hipMemsetD8";
case HIP_API_ID_hipMemsetD8Async: return "hipMemsetD8Async";
case HIP_API_ID_hipModuleGetFunction: return "hipModuleGetFunction";
case HIP_API_ID_hipModuleGetGlobal: return "hipModuleGetGlobal";
case HIP_API_ID_hipModuleGetTexRef: return "hipModuleGetTexRef";
case HIP_API_ID_hipModuleLaunchKernel: return "hipModuleLaunchKernel";
case HIP_API_ID_hipModuleLoad: return "hipModuleLoad";
case HIP_API_ID_hipModuleLoadData: return "hipModuleLoadData";
case HIP_API_ID_hipModuleLoadDataEx: return "hipModuleLoadDataEx";
case HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor: return "hipModuleOccupancyMaxActiveBlocksPerMultiprocessor";
case HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags: return "hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags";
case HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSize: return "hipModuleOccupancyMaxPotentialBlockSize";
case HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags: return "hipModuleOccupancyMaxPotentialBlockSizeWithFlags";
case HIP_API_ID_hipModuleUnload: return "hipModuleUnload";
case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor: return "hipOccupancyMaxActiveBlocksPerMultiprocessor";
case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags: return "hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags";
case HIP_API_ID_hipOccupancyMaxPotentialBlockSize: return "hipOccupancyMaxPotentialBlockSize";
case HIP_API_ID_hipPeekAtLastError: return "hipPeekAtLastError";
case HIP_API_ID_hipPointerGetAttributes: return "hipPointerGetAttributes";
case HIP_API_ID_hipProfilerStart: return "hipProfilerStart";
case HIP_API_ID_hipProfilerStop: return "hipProfilerStop";
case HIP_API_ID_hipRuntimeGetVersion: return "hipRuntimeGetVersion";
case HIP_API_ID_hipSetDevice: return "hipSetDevice";
case HIP_API_ID_hipSetDeviceFlags: return "hipSetDeviceFlags";
case HIP_API_ID_hipSetupArgument: return "hipSetupArgument";
case HIP_API_ID_hipSignalExternalSemaphoresAsync: return "hipSignalExternalSemaphoresAsync";
case HIP_API_ID_hipStreamAddCallback: return "hipStreamAddCallback";
case HIP_API_ID_hipStreamAttachMemAsync: return "hipStreamAttachMemAsync";
case HIP_API_ID_hipStreamCreate: return "hipStreamCreate";
case HIP_API_ID_hipStreamCreateWithFlags: return "hipStreamCreateWithFlags";
case HIP_API_ID_hipStreamCreateWithPriority: return "hipStreamCreateWithPriority";
case HIP_API_ID_hipStreamDestroy: return "hipStreamDestroy";
case HIP_API_ID_hipStreamGetFlags: return "hipStreamGetFlags";
case HIP_API_ID_hipStreamGetPriority: return "hipStreamGetPriority";
case HIP_API_ID_hipStreamQuery: return "hipStreamQuery";
case HIP_API_ID_hipStreamSynchronize: return "hipStreamSynchronize";
case HIP_API_ID_hipStreamWaitEvent: return "hipStreamWaitEvent";
case HIP_API_ID_hipStreamWaitValue32: return "hipStreamWaitValue32";
case HIP_API_ID_hipStreamWaitValue64: return "hipStreamWaitValue64";
case HIP_API_ID_hipStreamWriteValue32: return "hipStreamWriteValue32";
case HIP_API_ID_hipStreamWriteValue64: return "hipStreamWriteValue64";
case HIP_API_ID_hipWaitExternalSemaphoresAsync: return "hipWaitExternalSemaphoresAsync";
};
return "unknown";
};
#include <string.h>
// Return the HIP API callback ID for a given name
static inline uint32_t hipApiIdByName(const char* name) {
if (strcmp("__hipPopCallConfiguration", name) == 0) return HIP_API_ID___hipPopCallConfiguration;
if (strcmp("__hipPushCallConfiguration", name) == 0) return HIP_API_ID___hipPushCallConfiguration;
if (strcmp("hipArray3DCreate", name) == 0) return HIP_API_ID_hipArray3DCreate;
if (strcmp("hipArrayCreate", name) == 0) return HIP_API_ID_hipArrayCreate;
if (strcmp("hipArrayDestroy", name) == 0) return HIP_API_ID_hipArrayDestroy;
if (strcmp("hipChooseDevice", name) == 0) return HIP_API_ID_hipChooseDevice;
if (strcmp("hipConfigureCall", name) == 0) return HIP_API_ID_hipConfigureCall;
if (strcmp("hipCtxCreate", name) == 0) return HIP_API_ID_hipCtxCreate;
if (strcmp("hipCtxDestroy", name) == 0) return HIP_API_ID_hipCtxDestroy;
if (strcmp("hipCtxDisablePeerAccess", name) == 0) return HIP_API_ID_hipCtxDisablePeerAccess;
if (strcmp("hipCtxEnablePeerAccess", name) == 0) return HIP_API_ID_hipCtxEnablePeerAccess;
if (strcmp("hipCtxGetApiVersion", name) == 0) return HIP_API_ID_hipCtxGetApiVersion;
if (strcmp("hipCtxGetCacheConfig", name) == 0) return HIP_API_ID_hipCtxGetCacheConfig;
if (strcmp("hipCtxGetCurrent", name) == 0) return HIP_API_ID_hipCtxGetCurrent;
if (strcmp("hipCtxGetDevice", name) == 0) return HIP_API_ID_hipCtxGetDevice;
if (strcmp("hipCtxGetFlags", name) == 0) return HIP_API_ID_hipCtxGetFlags;
if (strcmp("hipCtxGetSharedMemConfig", name) == 0) return HIP_API_ID_hipCtxGetSharedMemConfig;
if (strcmp("hipCtxPopCurrent", name) == 0) return HIP_API_ID_hipCtxPopCurrent;
if (strcmp("hipCtxPushCurrent", name) == 0) return HIP_API_ID_hipCtxPushCurrent;
if (strcmp("hipCtxSetCacheConfig", name) == 0) return HIP_API_ID_hipCtxSetCacheConfig;
if (strcmp("hipCtxSetCurrent", name) == 0) return HIP_API_ID_hipCtxSetCurrent;
if (strcmp("hipCtxSetSharedMemConfig", name) == 0) return HIP_API_ID_hipCtxSetSharedMemConfig;
if (strcmp("hipCtxSynchronize", name) == 0) return HIP_API_ID_hipCtxSynchronize;
if (strcmp("hipDestroyExternalMemory", name) == 0) return HIP_API_ID_hipDestroyExternalMemory;
if (strcmp("hipDestroyExternalSemaphore", name) == 0) return HIP_API_ID_hipDestroyExternalSemaphore;
if (strcmp("hipDeviceCanAccessPeer", name) == 0) return HIP_API_ID_hipDeviceCanAccessPeer;
if (strcmp("hipDeviceComputeCapability", name) == 0) return HIP_API_ID_hipDeviceComputeCapability;
if (strcmp("hipDeviceDisablePeerAccess", name) == 0) return HIP_API_ID_hipDeviceDisablePeerAccess;
if (strcmp("hipDeviceEnablePeerAccess", name) == 0) return HIP_API_ID_hipDeviceEnablePeerAccess;
if (strcmp("hipDeviceGet", name) == 0) return HIP_API_ID_hipDeviceGet;
if (strcmp("hipDeviceGetAttribute", name) == 0) return HIP_API_ID_hipDeviceGetAttribute;
if (strcmp("hipDeviceGetByPCIBusId", name) == 0) return HIP_API_ID_hipDeviceGetByPCIBusId;
if (strcmp("hipDeviceGetCacheConfig", name) == 0) return HIP_API_ID_hipDeviceGetCacheConfig;
if (strcmp("hipDeviceGetLimit", name) == 0) return HIP_API_ID_hipDeviceGetLimit;
if (strcmp("hipDeviceGetName", name) == 0) return HIP_API_ID_hipDeviceGetName;
if (strcmp("hipDeviceGetP2PAttribute", name) == 0) return HIP_API_ID_hipDeviceGetP2PAttribute;
if (strcmp("hipDeviceGetPCIBusId", name) == 0) return HIP_API_ID_hipDeviceGetPCIBusId;
if (strcmp("hipDeviceGetSharedMemConfig", name) == 0) return HIP_API_ID_hipDeviceGetSharedMemConfig;
if (strcmp("hipDeviceGetStreamPriorityRange", name) == 0) return HIP_API_ID_hipDeviceGetStreamPriorityRange;
if (strcmp("hipDevicePrimaryCtxGetState", name) == 0) return HIP_API_ID_hipDevicePrimaryCtxGetState;
if (strcmp("hipDevicePrimaryCtxRelease", name) == 0) return HIP_API_ID_hipDevicePrimaryCtxRelease;
if (strcmp("hipDevicePrimaryCtxReset", name) == 0) return HIP_API_ID_hipDevicePrimaryCtxReset;
if (strcmp("hipDevicePrimaryCtxRetain", name) == 0) return HIP_API_ID_hipDevicePrimaryCtxRetain;
if (strcmp("hipDevicePrimaryCtxSetFlags", name) == 0) return HIP_API_ID_hipDevicePrimaryCtxSetFlags;
if (strcmp("hipDeviceReset", name) == 0) return HIP_API_ID_hipDeviceReset;
if (strcmp("hipDeviceSetCacheConfig", name) == 0) return HIP_API_ID_hipDeviceSetCacheConfig;
if (strcmp("hipDeviceSetSharedMemConfig", name) == 0) return HIP_API_ID_hipDeviceSetSharedMemConfig;
if (strcmp("hipDeviceSynchronize", name) == 0) return HIP_API_ID_hipDeviceSynchronize;
if (strcmp("hipDeviceTotalMem", name) == 0) return HIP_API_ID_hipDeviceTotalMem;
if (strcmp("hipDriverGetVersion", name) == 0) return HIP_API_ID_hipDriverGetVersion;
if (strcmp("hipDrvMemcpy2DUnaligned", name) == 0) return HIP_API_ID_hipDrvMemcpy2DUnaligned;
if (strcmp("hipDrvMemcpy3D", name) == 0) return HIP_API_ID_hipDrvMemcpy3D;
if (strcmp("hipDrvMemcpy3DAsync", name) == 0) return HIP_API_ID_hipDrvMemcpy3DAsync;
if (strcmp("hipEventCreate", name) == 0) return HIP_API_ID_hipEventCreate;
if (strcmp("hipEventCreateWithFlags", name) == 0) return HIP_API_ID_hipEventCreateWithFlags;
if (strcmp("hipEventDestroy", name) == 0) return HIP_API_ID_hipEventDestroy;
if (strcmp("hipEventElapsedTime", name) == 0) return HIP_API_ID_hipEventElapsedTime;
if (strcmp("hipEventQuery", name) == 0) return HIP_API_ID_hipEventQuery;
if (strcmp("hipEventRecord", name) == 0) return HIP_API_ID_hipEventRecord;
if (strcmp("hipEventSynchronize", name) == 0) return HIP_API_ID_hipEventSynchronize;
if (strcmp("hipExtGetLinkTypeAndHopCount", name) == 0) return HIP_API_ID_hipExtGetLinkTypeAndHopCount;
if (strcmp("hipExtLaunchKernel", name) == 0) return HIP_API_ID_hipExtLaunchKernel;
if (strcmp("hipExtLaunchMultiKernelMultiDevice", name) == 0) return HIP_API_ID_hipExtLaunchMultiKernelMultiDevice;
if (strcmp("hipExtMallocWithFlags", name) == 0) return HIP_API_ID_hipExtMallocWithFlags;
if (strcmp("hipExtModuleLaunchKernel", name) == 0) return HIP_API_ID_hipExtModuleLaunchKernel;
if (strcmp("hipExtStreamCreateWithCUMask", name) == 0) return HIP_API_ID_hipExtStreamCreateWithCUMask;
if (strcmp("hipExtStreamGetCUMask", name) == 0) return HIP_API_ID_hipExtStreamGetCUMask;
if (strcmp("hipExternalMemoryGetMappedBuffer", name) == 0) return HIP_API_ID_hipExternalMemoryGetMappedBuffer;
if (strcmp("hipFree", name) == 0) return HIP_API_ID_hipFree;
if (strcmp("hipFreeArray", name) == 0) return HIP_API_ID_hipFreeArray;
if (strcmp("hipFreeHost", name) == 0) return HIP_API_ID_hipFreeHost;
if (strcmp("hipFreeMipmappedArray", name) == 0) return HIP_API_ID_hipFreeMipmappedArray;
if (strcmp("hipFuncGetAttribute", name) == 0) return HIP_API_ID_hipFuncGetAttribute;
if (strcmp("hipFuncGetAttributes", name) == 0) return HIP_API_ID_hipFuncGetAttributes;
if (strcmp("hipFuncSetAttribute", name) == 0) return HIP_API_ID_hipFuncSetAttribute;
if (strcmp("hipFuncSetCacheConfig", name) == 0) return HIP_API_ID_hipFuncSetCacheConfig;
if (strcmp("hipFuncSetSharedMemConfig", name) == 0) return HIP_API_ID_hipFuncSetSharedMemConfig;
if (strcmp("hipGetDevice", name) == 0) return HIP_API_ID_hipGetDevice;
if (strcmp("hipGetDeviceCount", name) == 0) return HIP_API_ID_hipGetDeviceCount;
if (strcmp("hipGetDeviceFlags", name) == 0) return HIP_API_ID_hipGetDeviceFlags;
if (strcmp("hipGetDeviceProperties", name) == 0) return HIP_API_ID_hipGetDeviceProperties;
if (strcmp("hipGetErrorName", name) == 0) return HIP_API_ID_hipGetErrorName;
if (strcmp("hipGetErrorString", name) == 0) return HIP_API_ID_hipGetErrorString;
if (strcmp("hipGetLastError", name) == 0) return HIP_API_ID_hipGetLastError;
if (strcmp("hipGetMipmappedArrayLevel", name) == 0) return HIP_API_ID_hipGetMipmappedArrayLevel;
if (strcmp("hipGetSymbolAddress", name) == 0) return HIP_API_ID_hipGetSymbolAddress;
if (strcmp("hipGetSymbolSize", name) == 0) return HIP_API_ID_hipGetSymbolSize;
if (strcmp("hipHccModuleLaunchKernel", name) == 0) return HIP_API_ID_hipHccModuleLaunchKernel;
if (strcmp("hipHostAlloc", name) == 0) return HIP_API_ID_hipHostAlloc;
if (strcmp("hipHostFree", name) == 0) return HIP_API_ID_hipHostFree;
if (strcmp("hipHostGetDevicePointer", name) == 0) return HIP_API_ID_hipHostGetDevicePointer;
if (strcmp("hipHostGetFlags", name) == 0) return HIP_API_ID_hipHostGetFlags;
if (strcmp("hipHostMalloc", name) == 0) return HIP_API_ID_hipHostMalloc;
if (strcmp("hipHostRegister", name) == 0) return HIP_API_ID_hipHostRegister;
if (strcmp("hipHostUnregister", name) == 0) return HIP_API_ID_hipHostUnregister;
if (strcmp("hipImportExternalMemory", name) == 0) return HIP_API_ID_hipImportExternalMemory;
if (strcmp("hipImportExternalSemaphore", name) == 0) return HIP_API_ID_hipImportExternalSemaphore;
if (strcmp("hipInit", name) == 0) return HIP_API_ID_hipInit;
if (strcmp("hipIpcCloseMemHandle", name) == 0) return HIP_API_ID_hipIpcCloseMemHandle;
if (strcmp("hipIpcGetEventHandle", name) == 0) return HIP_API_ID_hipIpcGetEventHandle;
if (strcmp("hipIpcGetMemHandle", name) == 0) return HIP_API_ID_hipIpcGetMemHandle;
if (strcmp("hipIpcOpenEventHandle", name) == 0) return HIP_API_ID_hipIpcOpenEventHandle;
if (strcmp("hipIpcOpenMemHandle", name) == 0) return HIP_API_ID_hipIpcOpenMemHandle;
if (strcmp("hipLaunchByPtr", name) == 0) return HIP_API_ID_hipLaunchByPtr;
if (strcmp("hipLaunchCooperativeKernel", name) == 0) return HIP_API_ID_hipLaunchCooperativeKernel;
if (strcmp("hipLaunchCooperativeKernelMultiDevice", name) == 0) return HIP_API_ID_hipLaunchCooperativeKernelMultiDevice;
if (strcmp("hipLaunchKernel", name) == 0) return HIP_API_ID_hipLaunchKernel;
if (strcmp("hipMalloc", name) == 0) return HIP_API_ID_hipMalloc;
if (strcmp("hipMalloc3D", name) == 0) return HIP_API_ID_hipMalloc3D;
if (strcmp("hipMalloc3DArray", name) == 0) return HIP_API_ID_hipMalloc3DArray;
if (strcmp("hipMallocArray", name) == 0) return HIP_API_ID_hipMallocArray;
if (strcmp("hipMallocHost", name) == 0) return HIP_API_ID_hipMallocHost;
if (strcmp("hipMallocManaged", name) == 0) return HIP_API_ID_hipMallocManaged;
if (strcmp("hipMallocMipmappedArray", name) == 0) return HIP_API_ID_hipMallocMipmappedArray;
if (strcmp("hipMallocPitch", name) == 0) return HIP_API_ID_hipMallocPitch;
if (strcmp("hipMemAdvise", name) == 0) return HIP_API_ID_hipMemAdvise;
if (strcmp("hipMemAllocHost", name) == 0) return HIP_API_ID_hipMemAllocHost;
if (strcmp("hipMemAllocPitch", name) == 0) return HIP_API_ID_hipMemAllocPitch;
if (strcmp("hipMemGetAddressRange", name) == 0) return HIP_API_ID_hipMemGetAddressRange;
if (strcmp("hipMemGetInfo", name) == 0) return HIP_API_ID_hipMemGetInfo;
if (strcmp("hipMemPrefetchAsync", name) == 0) return HIP_API_ID_hipMemPrefetchAsync;
if (strcmp("hipMemPtrGetInfo", name) == 0) return HIP_API_ID_hipMemPtrGetInfo;
if (strcmp("hipMemRangeGetAttribute", name) == 0) return HIP_API_ID_hipMemRangeGetAttribute;
if (strcmp("hipMemRangeGetAttributes", name) == 0) return HIP_API_ID_hipMemRangeGetAttributes;
if (strcmp("hipMemcpy", name) == 0) return HIP_API_ID_hipMemcpy;
if (strcmp("hipMemcpy2D", name) == 0) return HIP_API_ID_hipMemcpy2D;
if (strcmp("hipMemcpy2DAsync", name) == 0) return HIP_API_ID_hipMemcpy2DAsync;
if (strcmp("hipMemcpy2DFromArray", name) == 0) return HIP_API_ID_hipMemcpy2DFromArray;
if (strcmp("hipMemcpy2DFromArrayAsync", name) == 0) return HIP_API_ID_hipMemcpy2DFromArrayAsync;
if (strcmp("hipMemcpy2DToArray", name) == 0) return HIP_API_ID_hipMemcpy2DToArray;
if (strcmp("hipMemcpy2DToArrayAsync", name) == 0) return HIP_API_ID_hipMemcpy2DToArrayAsync;
if (strcmp("hipMemcpy3D", name) == 0) return HIP_API_ID_hipMemcpy3D;
if (strcmp("hipMemcpy3DAsync", name) == 0) return HIP_API_ID_hipMemcpy3DAsync;
if (strcmp("hipMemcpyAsync", name) == 0) return HIP_API_ID_hipMemcpyAsync;
if (strcmp("hipMemcpyAtoH", name) == 0) return HIP_API_ID_hipMemcpyAtoH;
if (strcmp("hipMemcpyDtoD", name) == 0) return HIP_API_ID_hipMemcpyDtoD;
if (strcmp("hipMemcpyDtoDAsync", name) == 0) return HIP_API_ID_hipMemcpyDtoDAsync;
if (strcmp("hipMemcpyDtoH", name) == 0) return HIP_API_ID_hipMemcpyDtoH;
if (strcmp("hipMemcpyDtoHAsync", name) == 0) return HIP_API_ID_hipMemcpyDtoHAsync;
if (strcmp("hipMemcpyFromArray", name) == 0) return HIP_API_ID_hipMemcpyFromArray;
if (strcmp("hipMemcpyFromSymbol", name) == 0) return HIP_API_ID_hipMemcpyFromSymbol;
if (strcmp("hipMemcpyFromSymbolAsync", name) == 0) return HIP_API_ID_hipMemcpyFromSymbolAsync;
if (strcmp("hipMemcpyHtoA", name) == 0) return HIP_API_ID_hipMemcpyHtoA;
if (strcmp("hipMemcpyHtoD", name) == 0) return HIP_API_ID_hipMemcpyHtoD;
if (strcmp("hipMemcpyHtoDAsync", name) == 0) return HIP_API_ID_hipMemcpyHtoDAsync;
if (strcmp("hipMemcpyParam2D", name) == 0) return HIP_API_ID_hipMemcpyParam2D;
if (strcmp("hipMemcpyParam2DAsync", name) == 0) return HIP_API_ID_hipMemcpyParam2DAsync;
if (strcmp("hipMemcpyPeer", name) == 0) return HIP_API_ID_hipMemcpyPeer;
if (strcmp("hipMemcpyPeerAsync", name) == 0) return HIP_API_ID_hipMemcpyPeerAsync;
if (strcmp("hipMemcpyToArray", name) == 0) return HIP_API_ID_hipMemcpyToArray;
if (strcmp("hipMemcpyToSymbol", name) == 0) return HIP_API_ID_hipMemcpyToSymbol;
if (strcmp("hipMemcpyToSymbolAsync", name) == 0) return HIP_API_ID_hipMemcpyToSymbolAsync;
if (strcmp("hipMemcpyWithStream", name) == 0) return HIP_API_ID_hipMemcpyWithStream;
if (strcmp("hipMemset", name) == 0) return HIP_API_ID_hipMemset;
if (strcmp("hipMemset2D", name) == 0) return HIP_API_ID_hipMemset2D;
if (strcmp("hipMemset2DAsync", name) == 0) return HIP_API_ID_hipMemset2DAsync;
if (strcmp("hipMemset3D", name) == 0) return HIP_API_ID_hipMemset3D;
if (strcmp("hipMemset3DAsync", name) == 0) return HIP_API_ID_hipMemset3DAsync;
if (strcmp("hipMemsetAsync", name) == 0) return HIP_API_ID_hipMemsetAsync;
if (strcmp("hipMemsetD16", name) == 0) return HIP_API_ID_hipMemsetD16;
if (strcmp("hipMemsetD16Async", name) == 0) return HIP_API_ID_hipMemsetD16Async;
if (strcmp("hipMemsetD32", name) == 0) return HIP_API_ID_hipMemsetD32;
if (strcmp("hipMemsetD32Async", name) == 0) return HIP_API_ID_hipMemsetD32Async;
if (strcmp("hipMemsetD8", name) == 0) return HIP_API_ID_hipMemsetD8;
if (strcmp("hipMemsetD8Async", name) == 0) return HIP_API_ID_hipMemsetD8Async;
if (strcmp("hipModuleGetFunction", name) == 0) return HIP_API_ID_hipModuleGetFunction;
if (strcmp("hipModuleGetGlobal", name) == 0) return HIP_API_ID_hipModuleGetGlobal;
if (strcmp("hipModuleGetTexRef", name) == 0) return HIP_API_ID_hipModuleGetTexRef;
if (strcmp("hipModuleLaunchKernel", name) == 0) return HIP_API_ID_hipModuleLaunchKernel;
if (strcmp("hipModuleLoad", name) == 0) return HIP_API_ID_hipModuleLoad;
if (strcmp("hipModuleLoadData", name) == 0) return HIP_API_ID_hipModuleLoadData;
if (strcmp("hipModuleLoadDataEx", name) == 0) return HIP_API_ID_hipModuleLoadDataEx;
if (strcmp("hipModuleOccupancyMaxActiveBlocksPerMultiprocessor", name) == 0) return HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor;
if (strcmp("hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", name) == 0) return HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
if (strcmp("hipModuleOccupancyMaxPotentialBlockSize", name) == 0) return HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSize;
if (strcmp("hipModuleOccupancyMaxPotentialBlockSizeWithFlags", name) == 0) return HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags;
if (strcmp("hipModuleUnload", name) == 0) return HIP_API_ID_hipModuleUnload;
if (strcmp("hipOccupancyMaxActiveBlocksPerMultiprocessor", name) == 0) return HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor;
if (strcmp("hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", name) == 0) return HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
if (strcmp("hipOccupancyMaxPotentialBlockSize", name) == 0) return HIP_API_ID_hipOccupancyMaxPotentialBlockSize;
if (strcmp("hipPeekAtLastError", name) == 0) return HIP_API_ID_hipPeekAtLastError;
if (strcmp("hipPointerGetAttributes", name) == 0) return HIP_API_ID_hipPointerGetAttributes;
if (strcmp("hipProfilerStart", name) == 0) return HIP_API_ID_hipProfilerStart;
if (strcmp("hipProfilerStop", name) == 0) return HIP_API_ID_hipProfilerStop;
if (strcmp("hipRuntimeGetVersion", name) == 0) return HIP_API_ID_hipRuntimeGetVersion;
if (strcmp("hipSetDevice", name) == 0) return HIP_API_ID_hipSetDevice;
if (strcmp("hipSetDeviceFlags", name) == 0) return HIP_API_ID_hipSetDeviceFlags;
if (strcmp("hipSetupArgument", name) == 0) return HIP_API_ID_hipSetupArgument;
if (strcmp("hipSignalExternalSemaphoresAsync", name) == 0) return HIP_API_ID_hipSignalExternalSemaphoresAsync;
if (strcmp("hipStreamAddCallback", name) == 0) return HIP_API_ID_hipStreamAddCallback;
if (strcmp("hipStreamAttachMemAsync", name) == 0) return HIP_API_ID_hipStreamAttachMemAsync;
if (strcmp("hipStreamCreate", name) == 0) return HIP_API_ID_hipStreamCreate;
if (strcmp("hipStreamCreateWithFlags", name) == 0) return HIP_API_ID_hipStreamCreateWithFlags;
if (strcmp("hipStreamCreateWithPriority", name) == 0) return HIP_API_ID_hipStreamCreateWithPriority;
if (strcmp("hipStreamDestroy", name) == 0) return HIP_API_ID_hipStreamDestroy;
if (strcmp("hipStreamGetFlags", name) == 0) return HIP_API_ID_hipStreamGetFlags;
if (strcmp("hipStreamGetPriority", name) == 0) return HIP_API_ID_hipStreamGetPriority;
if (strcmp("hipStreamQuery", name) == 0) return HIP_API_ID_hipStreamQuery;
if (strcmp("hipStreamSynchronize", name) == 0) return HIP_API_ID_hipStreamSynchronize;
if (strcmp("hipStreamWaitEvent", name) == 0) return HIP_API_ID_hipStreamWaitEvent;
if (strcmp("hipStreamWaitValue32", name) == 0) return HIP_API_ID_hipStreamWaitValue32;
if (strcmp("hipStreamWaitValue64", name) == 0) return HIP_API_ID_hipStreamWaitValue64;
if (strcmp("hipStreamWriteValue32", name) == 0) return HIP_API_ID_hipStreamWriteValue32;
if (strcmp("hipStreamWriteValue64", name) == 0) return HIP_API_ID_hipStreamWriteValue64;
if (strcmp("hipWaitExternalSemaphoresAsync", name) == 0) return HIP_API_ID_hipWaitExternalSemaphoresAsync;
return HIP_API_ID_NONE;
}
// HIP API callbacks data structures
typedef struct hip_api_data_s {
uint64_t correlation_id;
uint32_t phase;
union {
struct {
dim3* gridDim;
dim3 gridDim__val;
dim3* blockDim;
dim3 blockDim__val;
size_t* sharedMem;
size_t sharedMem__val;
hipStream_t* stream;
hipStream_t stream__val;
} __hipPopCallConfiguration;
struct {
dim3 gridDim;
dim3 blockDim;
size_t sharedMem;
hipStream_t stream;
} __hipPushCallConfiguration;
struct {
hipArray** array;
hipArray* array__val;
const HIP_ARRAY3D_DESCRIPTOR* pAllocateArray;
HIP_ARRAY3D_DESCRIPTOR pAllocateArray__val;
} hipArray3DCreate;
struct {
hipArray** pHandle;
hipArray* pHandle__val;
const HIP_ARRAY_DESCRIPTOR* pAllocateArray;
HIP_ARRAY_DESCRIPTOR pAllocateArray__val;
} hipArrayCreate;
struct {
hipArray* array;
hipArray array__val;
} hipArrayDestroy;
struct {
int* device;
int device__val;
const hipDeviceProp_t* prop;
hipDeviceProp_t prop__val;
} hipChooseDevice;
struct {
dim3 gridDim;
dim3 blockDim;
size_t sharedMem;
hipStream_t stream;
} hipConfigureCall;
struct {
hipCtx_t* ctx;
hipCtx_t ctx__val;
unsigned int flags;
hipDevice_t device;
} hipCtxCreate;
struct {
hipCtx_t ctx;
} hipCtxDestroy;
struct {
hipCtx_t peerCtx;
} hipCtxDisablePeerAccess;
struct {
hipCtx_t peerCtx;
unsigned int flags;
} hipCtxEnablePeerAccess;
struct {
hipCtx_t ctx;
int* apiVersion;
int apiVersion__val;
} hipCtxGetApiVersion;
struct {
hipFuncCache_t* cacheConfig;
hipFuncCache_t cacheConfig__val;
} hipCtxGetCacheConfig;
struct {
hipCtx_t* ctx;
hipCtx_t ctx__val;
} hipCtxGetCurrent;
struct {
hipDevice_t* device;
hipDevice_t device__val;
} hipCtxGetDevice;
struct {
unsigned int* flags;
unsigned int flags__val;
} hipCtxGetFlags;
struct {
hipSharedMemConfig* pConfig;
hipSharedMemConfig pConfig__val;
} hipCtxGetSharedMemConfig;
struct {
hipCtx_t* ctx;
hipCtx_t ctx__val;
} hipCtxPopCurrent;
struct {
hipCtx_t ctx;
} hipCtxPushCurrent;
struct {
hipFuncCache_t cacheConfig;
} hipCtxSetCacheConfig;
struct {
hipCtx_t ctx;
} hipCtxSetCurrent;
struct {
hipSharedMemConfig config;
} hipCtxSetSharedMemConfig;
struct {
hipExternalMemory_t extMem;
} hipDestroyExternalMemory;
struct {
hipExternalSemaphore_t extSem;
} hipDestroyExternalSemaphore;
struct {
int* canAccessPeer;
int canAccessPeer__val;
int deviceId;
int peerDeviceId;
} hipDeviceCanAccessPeer;
struct {
int* major;
int major__val;
int* minor;
int minor__val;
hipDevice_t device;
} hipDeviceComputeCapability;
struct {
int peerDeviceId;
} hipDeviceDisablePeerAccess;
struct {
int peerDeviceId;
unsigned int flags;
} hipDeviceEnablePeerAccess;
struct {
hipDevice_t* device;
hipDevice_t device__val;
int ordinal;
} hipDeviceGet;
struct {
int* pi;
int pi__val;
hipDeviceAttribute_t attr;
int deviceId;
} hipDeviceGetAttribute;
struct {
int* device;
int device__val;
const char* pciBusId;
char pciBusId__val;
} hipDeviceGetByPCIBusId;
struct {
hipFuncCache_t* cacheConfig;
hipFuncCache_t cacheConfig__val;
} hipDeviceGetCacheConfig;
struct {
size_t* pValue;
size_t pValue__val;
enum hipLimit_t limit;
} hipDeviceGetLimit;
struct {
char* name;
char name__val;
int len;
hipDevice_t device;
} hipDeviceGetName;
struct {
int* value;
int value__val;
hipDeviceP2PAttr attr;
int srcDevice;
int dstDevice;
} hipDeviceGetP2PAttribute;
struct {
char* pciBusId;
char pciBusId__val;
int len;
int device;
} hipDeviceGetPCIBusId;
struct {
hipSharedMemConfig* pConfig;
hipSharedMemConfig pConfig__val;
} hipDeviceGetSharedMemConfig;
struct {
int* leastPriority;
int leastPriority__val;
int* greatestPriority;
int greatestPriority__val;
} hipDeviceGetStreamPriorityRange;
struct {
hipDevice_t dev;
unsigned int* flags;
unsigned int flags__val;
int* active;
int active__val;
} hipDevicePrimaryCtxGetState;
struct {
hipDevice_t dev;
} hipDevicePrimaryCtxRelease;
struct {
hipDevice_t dev;
} hipDevicePrimaryCtxReset;
struct {
hipCtx_t* pctx;
hipCtx_t pctx__val;
hipDevice_t dev;
} hipDevicePrimaryCtxRetain;
struct {
hipDevice_t dev;
unsigned int flags;
} hipDevicePrimaryCtxSetFlags;
struct {
hipFuncCache_t cacheConfig;
} hipDeviceSetCacheConfig;
struct {
hipSharedMemConfig config;
} hipDeviceSetSharedMemConfig;
struct {
size_t* bytes;
size_t bytes__val;
hipDevice_t device;
} hipDeviceTotalMem;
struct {
int* driverVersion;
int driverVersion__val;
} hipDriverGetVersion;
struct {
const hip_Memcpy2D* pCopy;
hip_Memcpy2D pCopy__val;
} hipDrvMemcpy2DUnaligned;
struct {
const HIP_MEMCPY3D* pCopy;
HIP_MEMCPY3D pCopy__val;
} hipDrvMemcpy3D;
struct {
const HIP_MEMCPY3D* pCopy;
HIP_MEMCPY3D pCopy__val;
hipStream_t stream;
} hipDrvMemcpy3DAsync;
struct {
hipEvent_t* event;
hipEvent_t event__val;
} hipEventCreate;
struct {
hipEvent_t* event;
hipEvent_t event__val;
unsigned int flags;
} hipEventCreateWithFlags;
struct {
hipEvent_t event;
} hipEventDestroy;
struct {
float* ms;
float ms__val;
hipEvent_t start;
hipEvent_t stop;
} hipEventElapsedTime;
struct {
hipEvent_t event;
} hipEventQuery;
struct {
hipEvent_t event;
hipStream_t stream;
} hipEventRecord;
struct {
hipEvent_t event;
} hipEventSynchronize;
struct {
int device1;
int device2;
unsigned int* linktype;
unsigned int linktype__val;
unsigned int* hopcount;
unsigned int hopcount__val;
} hipExtGetLinkTypeAndHopCount;
struct {
const void* function_address;
dim3 numBlocks;
dim3 dimBlocks;
void** args;
void* args__val;
size_t sharedMemBytes;
hipStream_t stream;
hipEvent_t startEvent;
hipEvent_t stopEvent;
int flags;
} hipExtLaunchKernel;
struct {
hipLaunchParams* launchParamsList;
hipLaunchParams launchParamsList__val;
int numDevices;
unsigned int flags;
} hipExtLaunchMultiKernelMultiDevice;
struct {
void** ptr;
void* ptr__val;
size_t sizeBytes;
unsigned int flags;
} hipExtMallocWithFlags;
struct {
hipFunction_t f;
unsigned int globalWorkSizeX;
unsigned int globalWorkSizeY;
unsigned int globalWorkSizeZ;
unsigned int localWorkSizeX;
unsigned int localWorkSizeY;
unsigned int localWorkSizeZ;
size_t sharedMemBytes;
hipStream_t hStream;
void** kernelParams;
void* kernelParams__val;
void** extra;
void* extra__val;
hipEvent_t startEvent;
hipEvent_t stopEvent;
unsigned int flags;
} hipExtModuleLaunchKernel;
struct {
hipStream_t* stream;
hipStream_t stream__val;
unsigned int cuMaskSize;
const unsigned int* cuMask;
unsigned int cuMask__val;
} hipExtStreamCreateWithCUMask;
struct {
hipStream_t stream;
unsigned int cuMaskSize;
unsigned int* cuMask;
unsigned int cuMask__val;
} hipExtStreamGetCUMask;
struct {
void** devPtr;
void* devPtr__val;
hipExternalMemory_t extMem;
const hipExternalMemoryBufferDesc* bufferDesc;
hipExternalMemoryBufferDesc bufferDesc__val;
} hipExternalMemoryGetMappedBuffer;
struct {
void* ptr;
} hipFree;
struct {
hipArray* array;
hipArray array__val;
} hipFreeArray;
struct {
void* ptr;
} hipFreeHost;
struct {
hipMipmappedArray_t mipmappedArray;
} hipFreeMipmappedArray;
struct {
int* value;
int value__val;
hipFunction_attribute attrib;
hipFunction_t hfunc;
} hipFuncGetAttribute;
struct {
hipFuncAttributes* attr;
hipFuncAttributes attr__val;
const void* func;
} hipFuncGetAttributes;
struct {
const void* func;
hipFuncAttribute attr;
int value;
} hipFuncSetAttribute;
struct {
const void* func;
hipFuncCache_t config;
} hipFuncSetCacheConfig;
struct {
const void* func;
hipSharedMemConfig config;
} hipFuncSetSharedMemConfig;
struct {
int* deviceId;
int deviceId__val;
} hipGetDevice;
struct {
int* count;
int count__val;
} hipGetDeviceCount;
struct {
unsigned int* flags;
unsigned int flags__val;
} hipGetDeviceFlags;
struct {
hipDeviceProp_t* props;
hipDeviceProp_t props__val;
hipDevice_t device;
} hipGetDeviceProperties;
struct {
hipArray_t* levelArray;
hipArray_t levelArray__val;
hipMipmappedArray_const_t mipmappedArray;
unsigned int level;
} hipGetMipmappedArrayLevel;
struct {
void** devPtr;
void* devPtr__val;
const void* symbol;
} hipGetSymbolAddress;
struct {
size_t* size;
size_t size__val;
const void* symbol;
} hipGetSymbolSize;
struct {
hipFunction_t f;
unsigned int globalWorkSizeX;
unsigned int globalWorkSizeY;
unsigned int globalWorkSizeZ;
unsigned int blockDimX;
unsigned int blockDimY;
unsigned int blockDimZ;
size_t sharedMemBytes;
hipStream_t hStream;
void** kernelParams;
void* kernelParams__val;
void** extra;
void* extra__val;
hipEvent_t startEvent;
hipEvent_t stopEvent;
} hipHccModuleLaunchKernel;
struct {
void** ptr;
void* ptr__val;
size_t size;
unsigned int flags;
} hipHostAlloc;
struct {
void* ptr;
} hipHostFree;
struct {
void** devPtr;
void* devPtr__val;
void* hstPtr;
unsigned int flags;
} hipHostGetDevicePointer;
struct {
unsigned int* flagsPtr;
unsigned int flagsPtr__val;
void* hostPtr;
} hipHostGetFlags;
struct {
void** ptr;
void* ptr__val;
size_t size;
unsigned int flags;
} hipHostMalloc;
struct {
void* hostPtr;
size_t sizeBytes;
unsigned int flags;
} hipHostRegister;
struct {
void* hostPtr;
} hipHostUnregister;
struct {
hipExternalMemory_t* extMem_out;
hipExternalMemory_t extMem_out__val;
const hipExternalMemoryHandleDesc* memHandleDesc;
hipExternalMemoryHandleDesc memHandleDesc__val;
} hipImportExternalMemory;
struct {
hipExternalSemaphore_t* extSem_out;
hipExternalSemaphore_t extSem_out__val;
const hipExternalSemaphoreHandleDesc* semHandleDesc;
hipExternalSemaphoreHandleDesc semHandleDesc__val;
} hipImportExternalSemaphore;
struct {
unsigned int flags;
} hipInit;
struct {
void* devPtr;
} hipIpcCloseMemHandle;
struct {
hipIpcEventHandle_t* handle;
hipIpcEventHandle_t handle__val;
hipEvent_t event;
} hipIpcGetEventHandle;
struct {
hipIpcMemHandle_t* handle;
hipIpcMemHandle_t handle__val;
void* devPtr;
} hipIpcGetMemHandle;
struct {
hipEvent_t* event;
hipEvent_t event__val;
hipIpcEventHandle_t handle;
} hipIpcOpenEventHandle;
struct {
void** devPtr;
void* devPtr__val;
hipIpcMemHandle_t handle;
unsigned int flags;
} hipIpcOpenMemHandle;
struct {
const void* hostFunction;
} hipLaunchByPtr;
struct {
const void* f;
dim3 gridDim;
dim3 blockDimX;
void** kernelParams;
void* kernelParams__val;
unsigned int sharedMemBytes;
hipStream_t stream;
} hipLaunchCooperativeKernel;
struct {
hipLaunchParams* launchParamsList;
hipLaunchParams launchParamsList__val;
int numDevices;
unsigned int flags;
} hipLaunchCooperativeKernelMultiDevice;
struct {
const void* function_address;
dim3 numBlocks;
dim3 dimBlocks;
void** args;
void* args__val;
size_t sharedMemBytes;
hipStream_t stream;
} hipLaunchKernel;
struct {
void** ptr;
void* ptr__val;
size_t size;
} hipMalloc;
struct {
hipPitchedPtr* pitchedDevPtr;
hipPitchedPtr pitchedDevPtr__val;
hipExtent extent;
} hipMalloc3D;
struct {
hipArray_t* array;
hipArray_t array__val;
const hipChannelFormatDesc* desc;
hipChannelFormatDesc desc__val;
hipExtent extent;
unsigned int flags;
} hipMalloc3DArray;
struct {
hipArray** array;
hipArray* array__val;
const hipChannelFormatDesc* desc;
hipChannelFormatDesc desc__val;
size_t width;
size_t height;
unsigned int flags;
} hipMallocArray;
struct {
void** ptr;
void* ptr__val;
size_t size;
} hipMallocHost;
struct {
void** dev_ptr;
void* dev_ptr__val;
size_t size;
unsigned int flags;
} hipMallocManaged;
struct {
hipMipmappedArray_t* mipmappedArray;
hipMipmappedArray_t mipmappedArray__val;
const hipChannelFormatDesc* desc;
hipChannelFormatDesc desc__val;
hipExtent extent;
unsigned int numLevels;
unsigned int flags;
} hipMallocMipmappedArray;
struct {
void** ptr;
void* ptr__val;
size_t* pitch;
size_t pitch__val;
size_t width;
size_t height;
} hipMallocPitch;
struct {
const void* dev_ptr;
size_t count;
hipMemoryAdvise advice;
int device;
} hipMemAdvise;
struct {
void** ptr;
void* ptr__val;
size_t size;
} hipMemAllocHost;
struct {
hipDeviceptr_t* dptr;
hipDeviceptr_t dptr__val;
size_t* pitch;
size_t pitch__val;
size_t widthInBytes;
size_t height;
unsigned int elementSizeBytes;
} hipMemAllocPitch;
struct {
hipDeviceptr_t* pbase;
hipDeviceptr_t pbase__val;
size_t* psize;
size_t psize__val;
hipDeviceptr_t dptr;
} hipMemGetAddressRange;
struct {
size_t* free;
size_t free__val;
size_t* total;
size_t total__val;
} hipMemGetInfo;
struct {
const void* dev_ptr;
size_t count;
int device;
hipStream_t stream;
} hipMemPrefetchAsync;
struct {
void* ptr;
size_t* size;
size_t size__val;
} hipMemPtrGetInfo;
struct {
void* data;
size_t data_size;
hipMemRangeAttribute attribute;
const void* dev_ptr;
size_t count;
} hipMemRangeGetAttribute;
struct {
void** data;
void* data__val;
size_t* data_sizes;
size_t data_sizes__val;
hipMemRangeAttribute* attributes;
hipMemRangeAttribute attributes__val;
size_t num_attributes;
const void* dev_ptr;
size_t count;
} hipMemRangeGetAttributes;
struct {
void* dst;
const void* src;
size_t sizeBytes;
hipMemcpyKind kind;
} hipMemcpy;
struct {
void* dst;
size_t dpitch;
const void* src;
size_t spitch;
size_t width;
size_t height;
hipMemcpyKind kind;
} hipMemcpy2D;
struct {
void* dst;
size_t dpitch;
const void* src;
size_t spitch;
size_t width;
size_t height;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpy2DAsync;
struct {
void* dst;
size_t dpitch;
hipArray_const_t src;
size_t wOffset;
size_t hOffset;
size_t width;
size_t height;
hipMemcpyKind kind;
} hipMemcpy2DFromArray;
struct {
void* dst;
size_t dpitch;
hipArray_const_t src;
size_t wOffset;
size_t hOffset;
size_t width;
size_t height;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpy2DFromArrayAsync;
struct {
hipArray* dst;
hipArray dst__val;
size_t wOffset;
size_t hOffset;
const void* src;
size_t spitch;
size_t width;
size_t height;
hipMemcpyKind kind;
} hipMemcpy2DToArray;
struct {
hipArray* dst;
hipArray dst__val;
size_t wOffset;
size_t hOffset;
const void* src;
size_t spitch;
size_t width;
size_t height;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpy2DToArrayAsync;
struct {
const hipMemcpy3DParms* p;
hipMemcpy3DParms p__val;
} hipMemcpy3D;
struct {
const hipMemcpy3DParms* p;
hipMemcpy3DParms p__val;
hipStream_t stream;
} hipMemcpy3DAsync;
struct {
void* dst;
const void* src;
size_t sizeBytes;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpyAsync;
struct {
void* dst;
hipArray* srcArray;
hipArray srcArray__val;
size_t srcOffset;
size_t count;
} hipMemcpyAtoH;
struct {
hipDeviceptr_t dst;
hipDeviceptr_t src;
size_t sizeBytes;
} hipMemcpyDtoD;
struct {
hipDeviceptr_t dst;
hipDeviceptr_t src;
size_t sizeBytes;
hipStream_t stream;
} hipMemcpyDtoDAsync;
struct {
void* dst;
hipDeviceptr_t src;
size_t sizeBytes;
} hipMemcpyDtoH;
struct {
void* dst;
hipDeviceptr_t src;
size_t sizeBytes;
hipStream_t stream;
} hipMemcpyDtoHAsync;
struct {
void* dst;
hipArray_const_t srcArray;
size_t wOffset;
size_t hOffset;
size_t count;
hipMemcpyKind kind;
} hipMemcpyFromArray;
struct {
void* dst;
const void* symbol;
size_t sizeBytes;
size_t offset;
hipMemcpyKind kind;
} hipMemcpyFromSymbol;
struct {
void* dst;
const void* symbol;
size_t sizeBytes;
size_t offset;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpyFromSymbolAsync;
struct {
hipArray* dstArray;
hipArray dstArray__val;
size_t dstOffset;
const void* srcHost;
size_t count;
} hipMemcpyHtoA;
struct {
hipDeviceptr_t dst;
void* src;
size_t sizeBytes;
} hipMemcpyHtoD;
struct {
hipDeviceptr_t dst;
void* src;
size_t sizeBytes;
hipStream_t stream;
} hipMemcpyHtoDAsync;
struct {
const hip_Memcpy2D* pCopy;
hip_Memcpy2D pCopy__val;
} hipMemcpyParam2D;
struct {
const hip_Memcpy2D* pCopy;
hip_Memcpy2D pCopy__val;
hipStream_t stream;
} hipMemcpyParam2DAsync;
struct {
void* dst;
int dstDeviceId;
const void* src;
int srcDeviceId;
size_t sizeBytes;
} hipMemcpyPeer;
struct {
void* dst;
int dstDeviceId;
const void* src;
int srcDevice;
size_t sizeBytes;
hipStream_t stream;
} hipMemcpyPeerAsync;
struct {
hipArray* dst;
hipArray dst__val;
size_t wOffset;
size_t hOffset;
const void* src;
size_t count;
hipMemcpyKind kind;
} hipMemcpyToArray;
struct {
const void* symbol;
const void* src;
size_t sizeBytes;
size_t offset;
hipMemcpyKind kind;
} hipMemcpyToSymbol;
struct {
const void* symbol;
const void* src;
size_t sizeBytes;
size_t offset;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpyToSymbolAsync;
struct {
void* dst;
const void* src;
size_t sizeBytes;
hipMemcpyKind kind;
hipStream_t stream;
} hipMemcpyWithStream;
struct {
void* dst;
int value;
size_t sizeBytes;
} hipMemset;
struct {
void* dst;
size_t pitch;
int value;
size_t width;
size_t height;
} hipMemset2D;
struct {
void* dst;
size_t pitch;
int value;
size_t width;
size_t height;
hipStream_t stream;
} hipMemset2DAsync;
struct {
hipPitchedPtr pitchedDevPtr;
int value;
hipExtent extent;
} hipMemset3D;
struct {
hipPitchedPtr pitchedDevPtr;
int value;
hipExtent extent;
hipStream_t stream;
} hipMemset3DAsync;
struct {
void* dst;
int value;
size_t sizeBytes;
hipStream_t stream;
} hipMemsetAsync;
struct {
hipDeviceptr_t dest;
unsigned short value;
size_t count;
} hipMemsetD16;
struct {
hipDeviceptr_t dest;
unsigned short value;
size_t count;
hipStream_t stream;
} hipMemsetD16Async;
struct {
hipDeviceptr_t dest;
int value;
size_t count;
} hipMemsetD32;
struct {
hipDeviceptr_t dst;
int value;
size_t count;
hipStream_t stream;
} hipMemsetD32Async;
struct {
hipDeviceptr_t dest;
unsigned char value;
size_t count;
} hipMemsetD8;
struct {
hipDeviceptr_t dest;
unsigned char value;
size_t count;
hipStream_t stream;
} hipMemsetD8Async;
struct {
hipFunction_t* function;
hipFunction_t function__val;
hipModule_t module;
const char* kname;
char kname__val;
} hipModuleGetFunction;
struct {
hipDeviceptr_t* dptr;
hipDeviceptr_t dptr__val;
size_t* bytes;
size_t bytes__val;
hipModule_t hmod;
const char* name;
char name__val;
} hipModuleGetGlobal;
struct {
textureReference** texRef;
textureReference* texRef__val;
hipModule_t hmod;
const char* name;
char name__val;
} hipModuleGetTexRef;
struct {
hipFunction_t f;
unsigned int gridDimX;
unsigned int gridDimY;
unsigned int gridDimZ;
unsigned int blockDimX;
unsigned int blockDimY;
unsigned int blockDimZ;
unsigned int sharedMemBytes;
hipStream_t stream;
void** kernelParams;
void* kernelParams__val;
void** extra;
void* extra__val;
} hipModuleLaunchKernel;
struct {
hipModule_t* module;
hipModule_t module__val;
const char* fname;
char fname__val;
} hipModuleLoad;
struct {
hipModule_t* module;
hipModule_t module__val;
const void* image;
} hipModuleLoadData;
struct {
hipModule_t* module;
hipModule_t module__val;
const void* image;
unsigned int numOptions;
hipJitOption* options;
hipJitOption options__val;
void** optionsValues;
void* optionsValues__val;
} hipModuleLoadDataEx;
struct {
int* numBlocks;
int numBlocks__val;
hipFunction_t f;
int blockSize;
size_t dynSharedMemPerBlk;
} hipModuleOccupancyMaxActiveBlocksPerMultiprocessor;
struct {
int* numBlocks;
int numBlocks__val;
hipFunction_t f;
int blockSize;
size_t dynSharedMemPerBlk;
unsigned int flags;
} hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
struct {
int* gridSize;
int gridSize__val;
int* blockSize;
int blockSize__val;
hipFunction_t f;
size_t dynSharedMemPerBlk;
int blockSizeLimit;
} hipModuleOccupancyMaxPotentialBlockSize;
struct {
int* gridSize;
int gridSize__val;
int* blockSize;
int blockSize__val;
hipFunction_t f;
size_t dynSharedMemPerBlk;
int blockSizeLimit;
unsigned int flags;
} hipModuleOccupancyMaxPotentialBlockSizeWithFlags;
struct {
hipModule_t module;
} hipModuleUnload;
struct {
int* numBlocks;
int numBlocks__val;
const void* f;
int blockSize;
size_t dynamicSMemSize;
} hipOccupancyMaxActiveBlocksPerMultiprocessor;
struct {
int* numBlocks;
int numBlocks__val;
const void* f;
int blockSize;
size_t dynamicSMemSize;
unsigned int flags;
} hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags;
struct {
int* gridSize;
int gridSize__val;
int* blockSize;
int blockSize__val;
const void* f;
size_t dynSharedMemPerBlk;
int blockSizeLimit;
} hipOccupancyMaxPotentialBlockSize;
struct {
hipPointerAttribute_t* attributes;
hipPointerAttribute_t attributes__val;
const void* ptr;
} hipPointerGetAttributes;
struct {
int* runtimeVersion;
int runtimeVersion__val;
} hipRuntimeGetVersion;
struct {
int deviceId;
} hipSetDevice;
struct {
unsigned int flags;
} hipSetDeviceFlags;
struct {
const void* arg;
size_t size;
size_t offset;
} hipSetupArgument;
struct {
const hipExternalSemaphore_t* extSemArray;
hipExternalSemaphore_t extSemArray__val;
const hipExternalSemaphoreSignalParams* paramsArray;
hipExternalSemaphoreSignalParams paramsArray__val;
unsigned int numExtSems;
hipStream_t stream;
} hipSignalExternalSemaphoresAsync;
struct {
hipStream_t stream;
hipStreamCallback_t callback;
void* userData;
unsigned int flags;
} hipStreamAddCallback;
struct {
hipStream_t stream;
void* dev_ptr;
size_t length;
unsigned int flags;
} hipStreamAttachMemAsync;
struct {
hipStream_t* stream;
hipStream_t stream__val;
} hipStreamCreate;
struct {
hipStream_t* stream;
hipStream_t stream__val;
unsigned int flags;
} hipStreamCreateWithFlags;
struct {
hipStream_t* stream;
hipStream_t stream__val;
unsigned int flags;
int priority;
} hipStreamCreateWithPriority;
struct {
hipStream_t stream;
} hipStreamDestroy;
struct {
hipStream_t stream;
unsigned int* flags;
unsigned int flags__val;
} hipStreamGetFlags;
struct {
hipStream_t stream;
int* priority;
int priority__val;
} hipStreamGetPriority;
struct {
hipStream_t stream;
} hipStreamQuery;
struct {
hipStream_t stream;
} hipStreamSynchronize;
struct {
hipStream_t stream;
hipEvent_t event;
unsigned int flags;
} hipStreamWaitEvent;
struct {
hipStream_t stream;
void* ptr;
int32_t value;
unsigned int flags;
unsigned int mask;
} hipStreamWaitValue32;
struct {
hipStream_t stream;
void* ptr;
int64_t value;
unsigned int flags;
uint64_t mask;
} hipStreamWaitValue64;
struct {
hipStream_t stream;
void* ptr;
int32_t value;
unsigned int flags;
} hipStreamWriteValue32;
struct {
hipStream_t stream;
void* ptr;
int64_t value;
unsigned int flags;
} hipStreamWriteValue64;
struct {
const hipExternalSemaphore_t* extSemArray;
hipExternalSemaphore_t extSemArray__val;
const hipExternalSemaphoreWaitParams* paramsArray;
hipExternalSemaphoreWaitParams paramsArray__val;
unsigned int numExtSems;
hipStream_t stream;
} hipWaitExternalSemaphoresAsync;
} args;
} hip_api_data_t;
// HIP API callbacks args data filling macros
// __hipPopCallConfiguration[('dim3*', 'gridDim'), ('dim3*', 'blockDim'), ('size_t*', 'sharedMem'), ('hipStream_t*', 'stream')]
#define INIT___hipPopCallConfiguration_CB_ARGS_DATA(cb_data) { \
cb_data.args.__hipPopCallConfiguration.gridDim = (dim3*)gridDim; \
cb_data.args.__hipPopCallConfiguration.blockDim = (dim3*)blockDim; \
cb_data.args.__hipPopCallConfiguration.sharedMem = (size_t*)sharedMem; \
cb_data.args.__hipPopCallConfiguration.stream = (hipStream_t*)stream; \
};
// __hipPushCallConfiguration[('dim3', 'gridDim'), ('dim3', 'blockDim'), ('size_t', 'sharedMem'), ('hipStream_t', 'stream')]
#define INIT___hipPushCallConfiguration_CB_ARGS_DATA(cb_data) { \
cb_data.args.__hipPushCallConfiguration.gridDim = (dim3)gridDim; \
cb_data.args.__hipPushCallConfiguration.blockDim = (dim3)blockDim; \
cb_data.args.__hipPushCallConfiguration.sharedMem = (size_t)sharedMem; \
cb_data.args.__hipPushCallConfiguration.stream = (hipStream_t)stream; \
};
// hipArray3DCreate[('hipArray**', 'array'), ('const HIP_ARRAY3D_DESCRIPTOR*', 'pAllocateArray')]
#define INIT_hipArray3DCreate_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipArray3DCreate.array = (hipArray**)array; \
cb_data.args.hipArray3DCreate.pAllocateArray = (const HIP_ARRAY3D_DESCRIPTOR*)pAllocateArray; \
};
// hipArrayCreate[('hipArray**', 'pHandle'), ('const HIP_ARRAY_DESCRIPTOR*', 'pAllocateArray')]
#define INIT_hipArrayCreate_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipArrayCreate.pHandle = (hipArray**)array; \
cb_data.args.hipArrayCreate.pAllocateArray = (const HIP_ARRAY_DESCRIPTOR*)pAllocateArray; \
};
// hipArrayDestroy[('hipArray*', 'array')]
#define INIT_hipArrayDestroy_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipArrayDestroy.array = (hipArray*)array; \
};
// hipChooseDevice[('int*', 'device'), ('const hipDeviceProp_t*', 'prop')]
#define INIT_hipChooseDevice_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipChooseDevice.device = (int*)device; \
cb_data.args.hipChooseDevice.prop = (const hipDeviceProp_t*)properties; \
};
// hipConfigureCall[('dim3', 'gridDim'), ('dim3', 'blockDim'), ('size_t', 'sharedMem'), ('hipStream_t', 'stream')]
#define INIT_hipConfigureCall_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipConfigureCall.gridDim = (dim3)gridDim; \
cb_data.args.hipConfigureCall.blockDim = (dim3)blockDim; \
cb_data.args.hipConfigureCall.sharedMem = (size_t)sharedMem; \
cb_data.args.hipConfigureCall.stream = (hipStream_t)stream; \
};
// hipCtxCreate[('hipCtx_t*', 'ctx'), ('unsigned int', 'flags'), ('hipDevice_t', 'device')]
#define INIT_hipCtxCreate_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxCreate.ctx = (hipCtx_t*)ctx; \
cb_data.args.hipCtxCreate.flags = (unsigned int)flags; \
cb_data.args.hipCtxCreate.device = (hipDevice_t)device; \
};
// hipCtxDestroy[('hipCtx_t', 'ctx')]
#define INIT_hipCtxDestroy_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxDestroy.ctx = (hipCtx_t)ctx; \
};
// hipCtxDisablePeerAccess[('hipCtx_t', 'peerCtx')]
#define INIT_hipCtxDisablePeerAccess_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxDisablePeerAccess.peerCtx = (hipCtx_t)peerCtx; \
};
// hipCtxEnablePeerAccess[('hipCtx_t', 'peerCtx'), ('unsigned int', 'flags')]
#define INIT_hipCtxEnablePeerAccess_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxEnablePeerAccess.peerCtx = (hipCtx_t)peerCtx; \
cb_data.args.hipCtxEnablePeerAccess.flags = (unsigned int)flags; \
};
// hipCtxGetApiVersion[('hipCtx_t', 'ctx'), ('int*', 'apiVersion')]
#define INIT_hipCtxGetApiVersion_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxGetApiVersion.ctx = (hipCtx_t)ctx; \
cb_data.args.hipCtxGetApiVersion.apiVersion = (int*)apiVersion; \
};
// hipCtxGetCacheConfig[('hipFuncCache_t*', 'cacheConfig')]
#define INIT_hipCtxGetCacheConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxGetCacheConfig.cacheConfig = (hipFuncCache_t*)cacheConfig; \
};
// hipCtxGetCurrent[('hipCtx_t*', 'ctx')]
#define INIT_hipCtxGetCurrent_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxGetCurrent.ctx = (hipCtx_t*)ctx; \
};
// hipCtxGetDevice[('hipDevice_t*', 'device')]
#define INIT_hipCtxGetDevice_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxGetDevice.device = (hipDevice_t*)device; \
};
// hipCtxGetFlags[('unsigned int*', 'flags')]
#define INIT_hipCtxGetFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxGetFlags.flags = (unsigned int*)flags; \
};
// hipCtxGetSharedMemConfig[('hipSharedMemConfig*', 'pConfig')]
#define INIT_hipCtxGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxGetSharedMemConfig.pConfig = (hipSharedMemConfig*)pConfig; \
};
// hipCtxPopCurrent[('hipCtx_t*', 'ctx')]
#define INIT_hipCtxPopCurrent_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxPopCurrent.ctx = (hipCtx_t*)ctx; \
};
// hipCtxPushCurrent[('hipCtx_t', 'ctx')]
#define INIT_hipCtxPushCurrent_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxPushCurrent.ctx = (hipCtx_t)ctx; \
};
// hipCtxSetCacheConfig[('hipFuncCache_t', 'cacheConfig')]
#define INIT_hipCtxSetCacheConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxSetCacheConfig.cacheConfig = (hipFuncCache_t)cacheConfig; \
};
// hipCtxSetCurrent[('hipCtx_t', 'ctx')]
#define INIT_hipCtxSetCurrent_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxSetCurrent.ctx = (hipCtx_t)ctx; \
};
// hipCtxSetSharedMemConfig[('hipSharedMemConfig', 'config')]
#define INIT_hipCtxSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipCtxSetSharedMemConfig.config = (hipSharedMemConfig)config; \
};
// hipCtxSynchronize[]
#define INIT_hipCtxSynchronize_CB_ARGS_DATA(cb_data) { \
};
// hipDestroyExternalMemory[('hipExternalMemory_t', 'extMem')]
#define INIT_hipDestroyExternalMemory_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDestroyExternalMemory.extMem = (hipExternalMemory_t)extMem; \
};
// hipDestroyExternalSemaphore[('hipExternalSemaphore_t', 'extSem')]
#define INIT_hipDestroyExternalSemaphore_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDestroyExternalSemaphore.extSem = (hipExternalSemaphore_t)extSem; \
};
// hipDeviceCanAccessPeer[('int*', 'canAccessPeer'), ('int', 'deviceId'), ('int', 'peerDeviceId')]
#define INIT_hipDeviceCanAccessPeer_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceCanAccessPeer.canAccessPeer = (int*)canAccess; \
cb_data.args.hipDeviceCanAccessPeer.deviceId = (int)deviceId; \
cb_data.args.hipDeviceCanAccessPeer.peerDeviceId = (int)peerDeviceId; \
};
// hipDeviceComputeCapability[('int*', 'major'), ('int*', 'minor'), ('hipDevice_t', 'device')]
#define INIT_hipDeviceComputeCapability_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceComputeCapability.major = (int*)major; \
cb_data.args.hipDeviceComputeCapability.minor = (int*)minor; \
cb_data.args.hipDeviceComputeCapability.device = (hipDevice_t)device; \
};
// hipDeviceDisablePeerAccess[('int', 'peerDeviceId')]
#define INIT_hipDeviceDisablePeerAccess_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceDisablePeerAccess.peerDeviceId = (int)peerDeviceId; \
};
// hipDeviceEnablePeerAccess[('int', 'peerDeviceId'), ('unsigned int', 'flags')]
#define INIT_hipDeviceEnablePeerAccess_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceEnablePeerAccess.peerDeviceId = (int)peerDeviceId; \
cb_data.args.hipDeviceEnablePeerAccess.flags = (unsigned int)flags; \
};
// hipDeviceGet[('hipDevice_t*', 'device'), ('int', 'ordinal')]
#define INIT_hipDeviceGet_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGet.device = (hipDevice_t*)device; \
cb_data.args.hipDeviceGet.ordinal = (int)deviceId; \
};
// hipDeviceGetAttribute[('int*', 'pi'), ('hipDeviceAttribute_t', 'attr'), ('int', 'deviceId')]
#define INIT_hipDeviceGetAttribute_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetAttribute.pi = (int*)pi; \
cb_data.args.hipDeviceGetAttribute.attr = (hipDeviceAttribute_t)attr; \
cb_data.args.hipDeviceGetAttribute.deviceId = (int)device; \
};
// hipDeviceGetByPCIBusId[('int*', 'device'), ('const char*', 'pciBusId')]
#define INIT_hipDeviceGetByPCIBusId_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetByPCIBusId.device = (int*)device; \
cb_data.args.hipDeviceGetByPCIBusId.pciBusId = (pciBusIdstr) ? strdup(pciBusIdstr) : NULL; \
};
// hipDeviceGetCacheConfig[('hipFuncCache_t*', 'cacheConfig')]
#define INIT_hipDeviceGetCacheConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetCacheConfig.cacheConfig = (hipFuncCache_t*)cacheConfig; \
};
// hipDeviceGetLimit[('size_t*', 'pValue'), ('hipLimit_t', 'limit')]
#define INIT_hipDeviceGetLimit_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetLimit.pValue = (size_t*)pValue; \
cb_data.args.hipDeviceGetLimit.limit = (hipLimit_t)limit; \
};
// hipDeviceGetName[('char*', 'name'), ('int', 'len'), ('hipDevice_t', 'device')]
#define INIT_hipDeviceGetName_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetName.name = (char*)name; \
cb_data.args.hipDeviceGetName.len = (int)len; \
cb_data.args.hipDeviceGetName.device = (hipDevice_t)device; \
};
// hipDeviceGetP2PAttribute[('int*', 'value'), ('hipDeviceP2PAttr', 'attr'), ('int', 'srcDevice'), ('int', 'dstDevice')]
#define INIT_hipDeviceGetP2PAttribute_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetP2PAttribute.value = (int*)value; \
cb_data.args.hipDeviceGetP2PAttribute.attr = (hipDeviceP2PAttr)attr; \
cb_data.args.hipDeviceGetP2PAttribute.srcDevice = (int)srcDevice; \
cb_data.args.hipDeviceGetP2PAttribute.dstDevice = (int)dstDevice; \
};
// hipDeviceGetPCIBusId[('char*', 'pciBusId'), ('int', 'len'), ('int', 'device')]
#define INIT_hipDeviceGetPCIBusId_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetPCIBusId.pciBusId = (char*)pciBusId; \
cb_data.args.hipDeviceGetPCIBusId.len = (int)len; \
cb_data.args.hipDeviceGetPCIBusId.device = (int)device; \
};
// hipDeviceGetSharedMemConfig[('hipSharedMemConfig*', 'pConfig')]
#define INIT_hipDeviceGetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetSharedMemConfig.pConfig = (hipSharedMemConfig*)pConfig; \
};
// hipDeviceGetStreamPriorityRange[('int*', 'leastPriority'), ('int*', 'greatestPriority')]
#define INIT_hipDeviceGetStreamPriorityRange_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceGetStreamPriorityRange.leastPriority = (int*)leastPriority; \
cb_data.args.hipDeviceGetStreamPriorityRange.greatestPriority = (int*)greatestPriority; \
};
// hipDevicePrimaryCtxGetState[('hipDevice_t', 'dev'), ('unsigned int*', 'flags'), ('int*', 'active')]
#define INIT_hipDevicePrimaryCtxGetState_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDevicePrimaryCtxGetState.dev = (hipDevice_t)dev; \
cb_data.args.hipDevicePrimaryCtxGetState.flags = (unsigned int*)flags; \
cb_data.args.hipDevicePrimaryCtxGetState.active = (int*)active; \
};
// hipDevicePrimaryCtxRelease[('hipDevice_t', 'dev')]
#define INIT_hipDevicePrimaryCtxRelease_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDevicePrimaryCtxRelease.dev = (hipDevice_t)dev; \
};
// hipDevicePrimaryCtxReset[('hipDevice_t', 'dev')]
#define INIT_hipDevicePrimaryCtxReset_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDevicePrimaryCtxReset.dev = (hipDevice_t)dev; \
};
// hipDevicePrimaryCtxRetain[('hipCtx_t*', 'pctx'), ('hipDevice_t', 'dev')]
#define INIT_hipDevicePrimaryCtxRetain_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDevicePrimaryCtxRetain.pctx = (hipCtx_t*)pctx; \
cb_data.args.hipDevicePrimaryCtxRetain.dev = (hipDevice_t)dev; \
};
// hipDevicePrimaryCtxSetFlags[('hipDevice_t', 'dev'), ('unsigned int', 'flags')]
#define INIT_hipDevicePrimaryCtxSetFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDevicePrimaryCtxSetFlags.dev = (hipDevice_t)dev; \
cb_data.args.hipDevicePrimaryCtxSetFlags.flags = (unsigned int)flags; \
};
// hipDeviceReset[]
#define INIT_hipDeviceReset_CB_ARGS_DATA(cb_data) { \
};
// hipDeviceSetCacheConfig[('hipFuncCache_t', 'cacheConfig')]
#define INIT_hipDeviceSetCacheConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceSetCacheConfig.cacheConfig = (hipFuncCache_t)cacheConfig; \
};
// hipDeviceSetSharedMemConfig[('hipSharedMemConfig', 'config')]
#define INIT_hipDeviceSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceSetSharedMemConfig.config = (hipSharedMemConfig)config; \
};
// hipDeviceSynchronize[]
#define INIT_hipDeviceSynchronize_CB_ARGS_DATA(cb_data) { \
};
// hipDeviceTotalMem[('size_t*', 'bytes'), ('hipDevice_t', 'device')]
#define INIT_hipDeviceTotalMem_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDeviceTotalMem.bytes = (size_t*)bytes; \
cb_data.args.hipDeviceTotalMem.device = (hipDevice_t)device; \
};
// hipDriverGetVersion[('int*', 'driverVersion')]
#define INIT_hipDriverGetVersion_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDriverGetVersion.driverVersion = (int*)driverVersion; \
};
// hipDrvMemcpy2DUnaligned[('const hip_Memcpy2D*', 'pCopy')]
#define INIT_hipDrvMemcpy2DUnaligned_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDrvMemcpy2DUnaligned.pCopy = (const hip_Memcpy2D*)pCopy; \
};
// hipDrvMemcpy3D[('const HIP_MEMCPY3D*', 'pCopy')]
#define INIT_hipDrvMemcpy3D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDrvMemcpy3D.pCopy = (const HIP_MEMCPY3D*)pCopy; \
};
// hipDrvMemcpy3DAsync[('const HIP_MEMCPY3D*', 'pCopy'), ('hipStream_t', 'stream')]
#define INIT_hipDrvMemcpy3DAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipDrvMemcpy3DAsync.pCopy = (const HIP_MEMCPY3D*)pCopy; \
cb_data.args.hipDrvMemcpy3DAsync.stream = (hipStream_t)stream; \
};
// hipEventCreate[('hipEvent_t*', 'event')]
#define INIT_hipEventCreate_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventCreate.event = (hipEvent_t*)event; \
};
// hipEventCreateWithFlags[('hipEvent_t*', 'event'), ('unsigned int', 'flags')]
#define INIT_hipEventCreateWithFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventCreateWithFlags.event = (hipEvent_t*)event; \
cb_data.args.hipEventCreateWithFlags.flags = (unsigned int)flags; \
};
// hipEventDestroy[('hipEvent_t', 'event')]
#define INIT_hipEventDestroy_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventDestroy.event = (hipEvent_t)event; \
};
// hipEventElapsedTime[('float*', 'ms'), ('hipEvent_t', 'start'), ('hipEvent_t', 'stop')]
#define INIT_hipEventElapsedTime_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventElapsedTime.ms = (float*)ms; \
cb_data.args.hipEventElapsedTime.start = (hipEvent_t)start; \
cb_data.args.hipEventElapsedTime.stop = (hipEvent_t)stop; \
};
// hipEventQuery[('hipEvent_t', 'event')]
#define INIT_hipEventQuery_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventQuery.event = (hipEvent_t)event; \
};
// hipEventRecord[('hipEvent_t', 'event'), ('hipStream_t', 'stream')]
#define INIT_hipEventRecord_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventRecord.event = (hipEvent_t)event; \
cb_data.args.hipEventRecord.stream = (hipStream_t)stream; \
};
// hipEventSynchronize[('hipEvent_t', 'event')]
#define INIT_hipEventSynchronize_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipEventSynchronize.event = (hipEvent_t)event; \
};
// hipExtGetLinkTypeAndHopCount[('int', 'device1'), ('int', 'device2'), ('unsigned int*', 'linktype'), ('unsigned int*', 'hopcount')]
#define INIT_hipExtGetLinkTypeAndHopCount_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtGetLinkTypeAndHopCount.device1 = (int)device1; \
cb_data.args.hipExtGetLinkTypeAndHopCount.device2 = (int)device2; \
cb_data.args.hipExtGetLinkTypeAndHopCount.linktype = (unsigned int*)linktype; \
cb_data.args.hipExtGetLinkTypeAndHopCount.hopcount = (unsigned int*)hopcount; \
};
// hipExtLaunchKernel[('const void*', 'function_address'), ('dim3', 'numBlocks'), ('dim3', 'dimBlocks'), ('void**', 'args'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'stream'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent'), ('int', 'flags')]
#define INIT_hipExtLaunchKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtLaunchKernel.function_address = (const void*)hostFunction; \
cb_data.args.hipExtLaunchKernel.numBlocks = (dim3)gridDim; \
cb_data.args.hipExtLaunchKernel.dimBlocks = (dim3)blockDim; \
cb_data.args.hipExtLaunchKernel.args = (void**)args; \
cb_data.args.hipExtLaunchKernel.sharedMemBytes = (size_t)sharedMemBytes; \
cb_data.args.hipExtLaunchKernel.stream = (hipStream_t)stream; \
cb_data.args.hipExtLaunchKernel.startEvent = (hipEvent_t)startEvent; \
cb_data.args.hipExtLaunchKernel.stopEvent = (hipEvent_t)stopEvent; \
cb_data.args.hipExtLaunchKernel.flags = (int)flags; \
};
// hipExtLaunchMultiKernelMultiDevice[('hipLaunchParams*', 'launchParamsList'), ('int', 'numDevices'), ('unsigned int', 'flags')]
#define INIT_hipExtLaunchMultiKernelMultiDevice_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtLaunchMultiKernelMultiDevice.launchParamsList = (hipLaunchParams*)launchParamsList; \
cb_data.args.hipExtLaunchMultiKernelMultiDevice.numDevices = (int)numDevices; \
cb_data.args.hipExtLaunchMultiKernelMultiDevice.flags = (unsigned int)flags; \
};
// hipExtMallocWithFlags[('void**', 'ptr'), ('size_t', 'sizeBytes'), ('unsigned int', 'flags')]
#define INIT_hipExtMallocWithFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtMallocWithFlags.ptr = (void**)ptr; \
cb_data.args.hipExtMallocWithFlags.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipExtMallocWithFlags.flags = (unsigned int)flags; \
};
// hipExtModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'globalWorkSizeX'), ('unsigned int', 'globalWorkSizeY'), ('unsigned int', 'globalWorkSizeZ'), ('unsigned int', 'localWorkSizeX'), ('unsigned int', 'localWorkSizeY'), ('unsigned int', 'localWorkSizeZ'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'hStream'), ('void**', 'kernelParams'), ('void**', 'extra'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent'), ('unsigned int', 'flags')]
#define INIT_hipExtModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtModuleLaunchKernel.f = (hipFunction_t)f; \
cb_data.args.hipExtModuleLaunchKernel.globalWorkSizeX = (unsigned int)globalWorkSizeX; \
cb_data.args.hipExtModuleLaunchKernel.globalWorkSizeY = (unsigned int)globalWorkSizeY; \
cb_data.args.hipExtModuleLaunchKernel.globalWorkSizeZ = (unsigned int)globalWorkSizeZ; \
cb_data.args.hipExtModuleLaunchKernel.localWorkSizeX = (unsigned int)localWorkSizeX; \
cb_data.args.hipExtModuleLaunchKernel.localWorkSizeY = (unsigned int)localWorkSizeY; \
cb_data.args.hipExtModuleLaunchKernel.localWorkSizeZ = (unsigned int)localWorkSizeZ; \
cb_data.args.hipExtModuleLaunchKernel.sharedMemBytes = (size_t)sharedMemBytes; \
cb_data.args.hipExtModuleLaunchKernel.hStream = (hipStream_t)hStream; \
cb_data.args.hipExtModuleLaunchKernel.kernelParams = (void**)kernelParams; \
cb_data.args.hipExtModuleLaunchKernel.extra = (void**)extra; \
cb_data.args.hipExtModuleLaunchKernel.startEvent = (hipEvent_t)startEvent; \
cb_data.args.hipExtModuleLaunchKernel.stopEvent = (hipEvent_t)stopEvent; \
cb_data.args.hipExtModuleLaunchKernel.flags = (unsigned int)flags; \
};
// hipExtStreamCreateWithCUMask[('hipStream_t*', 'stream'), ('unsigned int', 'cuMaskSize'), ('const unsigned int*', 'cuMask')]
#define INIT_hipExtStreamCreateWithCUMask_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtStreamCreateWithCUMask.stream = (hipStream_t*)stream; \
cb_data.args.hipExtStreamCreateWithCUMask.cuMaskSize = (unsigned int)cuMaskSize; \
cb_data.args.hipExtStreamCreateWithCUMask.cuMask = (const unsigned int*)cuMask; \
};
// hipExtStreamGetCUMask[('hipStream_t', 'stream'), ('unsigned int', 'cuMaskSize'), ('unsigned int*', 'cuMask')]
#define INIT_hipExtStreamGetCUMask_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExtStreamGetCUMask.stream = (hipStream_t)stream; \
cb_data.args.hipExtStreamGetCUMask.cuMaskSize = (unsigned int)cuMaskSize; \
cb_data.args.hipExtStreamGetCUMask.cuMask = (unsigned int*)cuMask; \
};
// hipExternalMemoryGetMappedBuffer[('void**', 'devPtr'), ('hipExternalMemory_t', 'extMem'), ('const hipExternalMemoryBufferDesc*', 'bufferDesc')]
#define INIT_hipExternalMemoryGetMappedBuffer_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipExternalMemoryGetMappedBuffer.devPtr = (void**)devPtr; \
cb_data.args.hipExternalMemoryGetMappedBuffer.extMem = (hipExternalMemory_t)extMem; \
cb_data.args.hipExternalMemoryGetMappedBuffer.bufferDesc = (const hipExternalMemoryBufferDesc*)bufferDesc; \
};
// hipFree[('void*', 'ptr')]
#define INIT_hipFree_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFree.ptr = (void*)ptr; \
};
// hipFreeArray[('hipArray*', 'array')]
#define INIT_hipFreeArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFreeArray.array = (hipArray*)array; \
};
// hipFreeHost[('void*', 'ptr')]
#define INIT_hipFreeHost_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFreeHost.ptr = (void*)ptr; \
};
// hipFreeMipmappedArray[('hipMipmappedArray_t', 'mipmappedArray')]
#define INIT_hipFreeMipmappedArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFreeMipmappedArray.mipmappedArray = (hipMipmappedArray_t)mipmappedArray; \
};
// hipFuncGetAttribute[('int*', 'value'), ('hipFunction_attribute', 'attrib'), ('hipFunction_t', 'hfunc')]
#define INIT_hipFuncGetAttribute_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFuncGetAttribute.value = (int*)value; \
cb_data.args.hipFuncGetAttribute.attrib = (hipFunction_attribute)attrib; \
cb_data.args.hipFuncGetAttribute.hfunc = (hipFunction_t)hfunc; \
};
// hipFuncGetAttributes[('hipFuncAttributes*', 'attr'), ('const void*', 'func')]
#define INIT_hipFuncGetAttributes_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFuncGetAttributes.attr = (hipFuncAttributes*)attr; \
cb_data.args.hipFuncGetAttributes.func = (const void*)func; \
};
// hipFuncSetAttribute[('const void*', 'func'), ('hipFuncAttribute', 'attr'), ('int', 'value')]
#define INIT_hipFuncSetAttribute_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFuncSetAttribute.func = (const void*)func; \
cb_data.args.hipFuncSetAttribute.attr = (hipFuncAttribute)attr; \
cb_data.args.hipFuncSetAttribute.value = (int)value; \
};
// hipFuncSetCacheConfig[('const void*', 'func'), ('hipFuncCache_t', 'config')]
#define INIT_hipFuncSetCacheConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFuncSetCacheConfig.func = (const void*)func; \
cb_data.args.hipFuncSetCacheConfig.config = (hipFuncCache_t)cacheConfig; \
};
// hipFuncSetSharedMemConfig[('const void*', 'func'), ('hipSharedMemConfig', 'config')]
#define INIT_hipFuncSetSharedMemConfig_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipFuncSetSharedMemConfig.func = (const void*)func; \
cb_data.args.hipFuncSetSharedMemConfig.config = (hipSharedMemConfig)config; \
};
// hipGetDevice[('int*', 'deviceId')]
#define INIT_hipGetDevice_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetDevice.deviceId = (int*)deviceId; \
};
// hipGetDeviceCount[('int*', 'count')]
#define INIT_hipGetDeviceCount_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetDeviceCount.count = (int*)count; \
};
// hipGetDeviceFlags[('unsigned int*', 'flags')]
#define INIT_hipGetDeviceFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetDeviceFlags.flags = (unsigned int*)flags; \
};
// hipGetDeviceProperties[('hipDeviceProp_t*', 'props'), ('hipDevice_t', 'device')]
#define INIT_hipGetDeviceProperties_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetDeviceProperties.props = (hipDeviceProp_t*)props; \
cb_data.args.hipGetDeviceProperties.device = (hipDevice_t)device; \
};
// hipGetErrorName[]
#define INIT_hipGetErrorName_CB_ARGS_DATA(cb_data) { \
};
// hipGetErrorString[]
#define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \
};
// hipGetLastError[]
#define INIT_hipGetLastError_CB_ARGS_DATA(cb_data) { \
};
// hipGetMipmappedArrayLevel[('hipArray_t*', 'levelArray'), ('hipMipmappedArray_const_t', 'mipmappedArray'), ('unsigned int', 'level')]
#define INIT_hipGetMipmappedArrayLevel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetMipmappedArrayLevel.levelArray = (hipArray_t*)levelArray; \
cb_data.args.hipGetMipmappedArrayLevel.mipmappedArray = (hipMipmappedArray_const_t)mipmappedArray; \
cb_data.args.hipGetMipmappedArrayLevel.level = (unsigned int)level; \
};
// hipGetSymbolAddress[('void**', 'devPtr'), ('const void*', 'symbol')]
#define INIT_hipGetSymbolAddress_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetSymbolAddress.devPtr = (void**)devPtr; \
cb_data.args.hipGetSymbolAddress.symbol = (const void*)symbol; \
};
// hipGetSymbolSize[('size_t*', 'size'), ('const void*', 'symbol')]
#define INIT_hipGetSymbolSize_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipGetSymbolSize.size = (size_t*)sizePtr; \
cb_data.args.hipGetSymbolSize.symbol = (const void*)symbol; \
};
// hipHccModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'globalWorkSizeX'), ('unsigned int', 'globalWorkSizeY'), ('unsigned int', 'globalWorkSizeZ'), ('unsigned int', 'blockDimX'), ('unsigned int', 'blockDimY'), ('unsigned int', 'blockDimZ'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'hStream'), ('void**', 'kernelParams'), ('void**', 'extra'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent')]
#define INIT_hipHccModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHccModuleLaunchKernel.f = (hipFunction_t)f; \
cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeX = (unsigned int)globalWorkSizeX; \
cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeY = (unsigned int)globalWorkSizeY; \
cb_data.args.hipHccModuleLaunchKernel.globalWorkSizeZ = (unsigned int)globalWorkSizeZ; \
cb_data.args.hipHccModuleLaunchKernel.blockDimX = (unsigned int)blockDimX; \
cb_data.args.hipHccModuleLaunchKernel.blockDimY = (unsigned int)blockDimY; \
cb_data.args.hipHccModuleLaunchKernel.blockDimZ = (unsigned int)blockDimZ; \
cb_data.args.hipHccModuleLaunchKernel.sharedMemBytes = (size_t)sharedMemBytes; \
cb_data.args.hipHccModuleLaunchKernel.hStream = (hipStream_t)hStream; \
cb_data.args.hipHccModuleLaunchKernel.kernelParams = (void**)kernelParams; \
cb_data.args.hipHccModuleLaunchKernel.extra = (void**)extra; \
cb_data.args.hipHccModuleLaunchKernel.startEvent = (hipEvent_t)startEvent; \
cb_data.args.hipHccModuleLaunchKernel.stopEvent = (hipEvent_t)stopEvent; \
};
// hipHostAlloc[('void**', 'ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
#define INIT_hipHostAlloc_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostAlloc.ptr = (void**)ptr; \
cb_data.args.hipHostAlloc.size = (size_t)sizeBytes; \
cb_data.args.hipHostAlloc.flags = (unsigned int)flags; \
};
// hipHostFree[('void*', 'ptr')]
#define INIT_hipHostFree_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostFree.ptr = (void*)ptr; \
};
// hipHostGetDevicePointer[('void**', 'devPtr'), ('void*', 'hstPtr'), ('unsigned int', 'flags')]
#define INIT_hipHostGetDevicePointer_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostGetDevicePointer.devPtr = (void**)devicePointer; \
cb_data.args.hipHostGetDevicePointer.hstPtr = (void*)hostPointer; \
cb_data.args.hipHostGetDevicePointer.flags = (unsigned int)flags; \
};
// hipHostGetFlags[('unsigned int*', 'flagsPtr'), ('void*', 'hostPtr')]
#define INIT_hipHostGetFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostGetFlags.flagsPtr = (unsigned int*)flagsPtr; \
cb_data.args.hipHostGetFlags.hostPtr = (void*)hostPtr; \
};
// hipHostMalloc[('void**', 'ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
#define INIT_hipHostMalloc_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostMalloc.ptr = (void**)ptr; \
cb_data.args.hipHostMalloc.size = (size_t)sizeBytes; \
cb_data.args.hipHostMalloc.flags = (unsigned int)flags; \
};
// hipHostRegister[('void*', 'hostPtr'), ('size_t', 'sizeBytes'), ('unsigned int', 'flags')]
#define INIT_hipHostRegister_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostRegister.hostPtr = (void*)hostPtr; \
cb_data.args.hipHostRegister.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipHostRegister.flags = (unsigned int)flags; \
};
// hipHostUnregister[('void*', 'hostPtr')]
#define INIT_hipHostUnregister_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipHostUnregister.hostPtr = (void*)hostPtr; \
};
// hipImportExternalMemory[('hipExternalMemory_t*', 'extMem_out'), ('const hipExternalMemoryHandleDesc*', 'memHandleDesc')]
#define INIT_hipImportExternalMemory_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipImportExternalMemory.extMem_out = (hipExternalMemory_t*)extMem_out; \
cb_data.args.hipImportExternalMemory.memHandleDesc = (const hipExternalMemoryHandleDesc*)memHandleDesc; \
};
// hipImportExternalSemaphore[('hipExternalSemaphore_t*', 'extSem_out'), ('const hipExternalSemaphoreHandleDesc*', 'semHandleDesc')]
#define INIT_hipImportExternalSemaphore_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipImportExternalSemaphore.extSem_out = (hipExternalSemaphore_t*)extSem_out; \
cb_data.args.hipImportExternalSemaphore.semHandleDesc = (const hipExternalSemaphoreHandleDesc*)semHandleDesc; \
};
// hipInit[('unsigned int', 'flags')]
#define INIT_hipInit_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipInit.flags = (unsigned int)flags; \
};
// hipIpcCloseMemHandle[('void*', 'devPtr')]
#define INIT_hipIpcCloseMemHandle_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipIpcCloseMemHandle.devPtr = (void*)dev_ptr; \
};
// hipIpcGetEventHandle[('hipIpcEventHandle_t*', 'handle'), ('hipEvent_t', 'event')]
#define INIT_hipIpcGetEventHandle_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipIpcGetEventHandle.handle = (hipIpcEventHandle_t*)handle; \
cb_data.args.hipIpcGetEventHandle.event = (hipEvent_t)event; \
};
// hipIpcGetMemHandle[('hipIpcMemHandle_t*', 'handle'), ('void*', 'devPtr')]
#define INIT_hipIpcGetMemHandle_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipIpcGetMemHandle.handle = (hipIpcMemHandle_t*)handle; \
cb_data.args.hipIpcGetMemHandle.devPtr = (void*)dev_ptr; \
};
// hipIpcOpenEventHandle[('hipEvent_t*', 'event'), ('hipIpcEventHandle_t', 'handle')]
#define INIT_hipIpcOpenEventHandle_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipIpcOpenEventHandle.event = (hipEvent_t*)event; \
cb_data.args.hipIpcOpenEventHandle.handle = (hipIpcEventHandle_t)handle; \
};
// hipIpcOpenMemHandle[('void**', 'devPtr'), ('hipIpcMemHandle_t', 'handle'), ('unsigned int', 'flags')]
#define INIT_hipIpcOpenMemHandle_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipIpcOpenMemHandle.devPtr = (void**)dev_ptr; \
cb_data.args.hipIpcOpenMemHandle.handle = (hipIpcMemHandle_t)handle; \
cb_data.args.hipIpcOpenMemHandle.flags = (unsigned int)flags; \
};
// hipLaunchByPtr[('const void*', 'hostFunction')]
#define INIT_hipLaunchByPtr_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipLaunchByPtr.hostFunction = (const void*)hostFunction; \
};
// hipLaunchCooperativeKernel[('const void*', 'f'), ('dim3', 'gridDim'), ('dim3', 'blockDimX'), ('void**', 'kernelParams'), ('unsigned int', 'sharedMemBytes'), ('hipStream_t', 'stream')]
#define INIT_hipLaunchCooperativeKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipLaunchCooperativeKernel.f = (const void*)f; \
cb_data.args.hipLaunchCooperativeKernel.gridDim = (dim3)gridDim; \
cb_data.args.hipLaunchCooperativeKernel.blockDimX = (dim3)blockDim; \
cb_data.args.hipLaunchCooperativeKernel.kernelParams = (void**)kernelParams; \
cb_data.args.hipLaunchCooperativeKernel.sharedMemBytes = (unsigned int)sharedMemBytes; \
cb_data.args.hipLaunchCooperativeKernel.stream = (hipStream_t)hStream; \
};
// hipLaunchCooperativeKernelMultiDevice[('hipLaunchParams*', 'launchParamsList'), ('int', 'numDevices'), ('unsigned int', 'flags')]
#define INIT_hipLaunchCooperativeKernelMultiDevice_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipLaunchCooperativeKernelMultiDevice.launchParamsList = (hipLaunchParams*)launchParamsList; \
cb_data.args.hipLaunchCooperativeKernelMultiDevice.numDevices = (int)numDevices; \
cb_data.args.hipLaunchCooperativeKernelMultiDevice.flags = (unsigned int)flags; \
};
// hipLaunchKernel[('const void*', 'function_address'), ('dim3', 'numBlocks'), ('dim3', 'dimBlocks'), ('void**', 'args'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'stream')]
#define INIT_hipLaunchKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipLaunchKernel.function_address = (const void*)hostFunction; \
cb_data.args.hipLaunchKernel.numBlocks = (dim3)gridDim; \
cb_data.args.hipLaunchKernel.dimBlocks = (dim3)blockDim; \
cb_data.args.hipLaunchKernel.args = (void**)args; \
cb_data.args.hipLaunchKernel.sharedMemBytes = (size_t)sharedMemBytes; \
cb_data.args.hipLaunchKernel.stream = (hipStream_t)stream; \
};
// hipMalloc[('void**', 'ptr'), ('size_t', 'size')]
#define INIT_hipMalloc_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMalloc.ptr = (void**)ptr; \
cb_data.args.hipMalloc.size = (size_t)sizeBytes; \
};
// hipMalloc3D[('hipPitchedPtr*', 'pitchedDevPtr'), ('hipExtent', 'extent')]
#define INIT_hipMalloc3D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMalloc3D.pitchedDevPtr = (hipPitchedPtr*)pitchedDevPtr; \
cb_data.args.hipMalloc3D.extent = (hipExtent)extent; \
};
// hipMalloc3DArray[('hipArray_t*', 'array'), ('const hipChannelFormatDesc*', 'desc'), ('hipExtent', 'extent'), ('unsigned int', 'flags')]
#define INIT_hipMalloc3DArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMalloc3DArray.array = (hipArray_t*)array; \
cb_data.args.hipMalloc3DArray.desc = (const hipChannelFormatDesc*)desc; \
cb_data.args.hipMalloc3DArray.extent = (hipExtent)extent; \
cb_data.args.hipMalloc3DArray.flags = (unsigned int)flags; \
};
// hipMallocArray[('hipArray**', 'array'), ('const hipChannelFormatDesc*', 'desc'), ('size_t', 'width'), ('size_t', 'height'), ('unsigned int', 'flags')]
#define INIT_hipMallocArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMallocArray.array = (hipArray**)array; \
cb_data.args.hipMallocArray.desc = (const hipChannelFormatDesc*)desc; \
cb_data.args.hipMallocArray.width = (size_t)width; \
cb_data.args.hipMallocArray.height = (size_t)height; \
cb_data.args.hipMallocArray.flags = (unsigned int)flags; \
};
// hipMallocHost[('void**', 'ptr'), ('size_t', 'size')]
#define INIT_hipMallocHost_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMallocHost.ptr = (void**)ptr; \
cb_data.args.hipMallocHost.size = (size_t)size; \
};
// hipMallocManaged[('void**', 'dev_ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
#define INIT_hipMallocManaged_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMallocManaged.dev_ptr = (void**)dev_ptr; \
cb_data.args.hipMallocManaged.size = (size_t)size; \
cb_data.args.hipMallocManaged.flags = (unsigned int)flags; \
};
// hipMallocMipmappedArray[('hipMipmappedArray_t*', 'mipmappedArray'), ('const hipChannelFormatDesc*', 'desc'), ('hipExtent', 'extent'), ('unsigned int', 'numLevels'), ('unsigned int', 'flags')]
#define INIT_hipMallocMipmappedArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMallocMipmappedArray.mipmappedArray = (hipMipmappedArray_t*)mipmappedArray; \
cb_data.args.hipMallocMipmappedArray.desc = (const hipChannelFormatDesc*)desc; \
cb_data.args.hipMallocMipmappedArray.extent = (hipExtent)extent; \
cb_data.args.hipMallocMipmappedArray.numLevels = (unsigned int)numLevels; \
cb_data.args.hipMallocMipmappedArray.flags = (unsigned int)flags; \
};
// hipMallocPitch[('void**', 'ptr'), ('size_t*', 'pitch'), ('size_t', 'width'), ('size_t', 'height')]
#define INIT_hipMallocPitch_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMallocPitch.ptr = (void**)ptr; \
cb_data.args.hipMallocPitch.pitch = (size_t*)pitch; \
cb_data.args.hipMallocPitch.width = (size_t)width; \
cb_data.args.hipMallocPitch.height = (size_t)height; \
};
// hipMemAdvise[('const void*', 'dev_ptr'), ('size_t', 'count'), ('hipMemoryAdvise', 'advice'), ('int', 'device')]
#define INIT_hipMemAdvise_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemAdvise.dev_ptr = (const void*)dev_ptr; \
cb_data.args.hipMemAdvise.count = (size_t)count; \
cb_data.args.hipMemAdvise.advice = (hipMemoryAdvise)advice; \
cb_data.args.hipMemAdvise.device = (int)device; \
};
// hipMemAllocHost[('void**', 'ptr'), ('size_t', 'size')]
#define INIT_hipMemAllocHost_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemAllocHost.ptr = (void**)ptr; \
cb_data.args.hipMemAllocHost.size = (size_t)size; \
};
// hipMemAllocPitch[('hipDeviceptr_t*', 'dptr'), ('size_t*', 'pitch'), ('size_t', 'widthInBytes'), ('size_t', 'height'), ('unsigned int', 'elementSizeBytes')]
#define INIT_hipMemAllocPitch_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemAllocPitch.dptr = (hipDeviceptr_t*)dptr; \
cb_data.args.hipMemAllocPitch.pitch = (size_t*)pitch; \
cb_data.args.hipMemAllocPitch.widthInBytes = (size_t)widthInBytes; \
cb_data.args.hipMemAllocPitch.height = (size_t)height; \
cb_data.args.hipMemAllocPitch.elementSizeBytes = (unsigned int)elementSizeBytes; \
};
// hipMemGetAddressRange[('hipDeviceptr_t*', 'pbase'), ('size_t*', 'psize'), ('hipDeviceptr_t', 'dptr')]
#define INIT_hipMemGetAddressRange_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemGetAddressRange.pbase = (hipDeviceptr_t*)pbase; \
cb_data.args.hipMemGetAddressRange.psize = (size_t*)psize; \
cb_data.args.hipMemGetAddressRange.dptr = (hipDeviceptr_t)dptr; \
};
// hipMemGetInfo[('size_t*', 'free'), ('size_t*', 'total')]
#define INIT_hipMemGetInfo_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemGetInfo.free = (size_t*)free; \
cb_data.args.hipMemGetInfo.total = (size_t*)total; \
};
// hipMemPrefetchAsync[('const void*', 'dev_ptr'), ('size_t', 'count'), ('int', 'device'), ('hipStream_t', 'stream')]
#define INIT_hipMemPrefetchAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemPrefetchAsync.dev_ptr = (const void*)dev_ptr; \
cb_data.args.hipMemPrefetchAsync.count = (size_t)count; \
cb_data.args.hipMemPrefetchAsync.device = (int)device; \
cb_data.args.hipMemPrefetchAsync.stream = (hipStream_t)stream; \
};
// hipMemPtrGetInfo[('void*', 'ptr'), ('size_t*', 'size')]
#define INIT_hipMemPtrGetInfo_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemPtrGetInfo.ptr = (void*)ptr; \
cb_data.args.hipMemPtrGetInfo.size = (size_t*)size; \
};
// hipMemRangeGetAttribute[('void*', 'data'), ('size_t', 'data_size'), ('hipMemRangeAttribute', 'attribute'), ('const void*', 'dev_ptr'), ('size_t', 'count')]
#define INIT_hipMemRangeGetAttribute_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemRangeGetAttribute.data = (void*)data; \
cb_data.args.hipMemRangeGetAttribute.data_size = (size_t)data_size; \
cb_data.args.hipMemRangeGetAttribute.attribute = (hipMemRangeAttribute)attribute; \
cb_data.args.hipMemRangeGetAttribute.dev_ptr = (const void*)dev_ptr; \
cb_data.args.hipMemRangeGetAttribute.count = (size_t)count; \
};
// hipMemRangeGetAttributes[('void**', 'data'), ('size_t*', 'data_sizes'), ('hipMemRangeAttribute*', 'attributes'), ('size_t', 'num_attributes'), ('const void*', 'dev_ptr'), ('size_t', 'count')]
#define INIT_hipMemRangeGetAttributes_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemRangeGetAttributes.data = (void**)data; \
cb_data.args.hipMemRangeGetAttributes.data_sizes = (size_t*)data_sizes; \
cb_data.args.hipMemRangeGetAttributes.attributes = (hipMemRangeAttribute*)attributes; \
cb_data.args.hipMemRangeGetAttributes.num_attributes = (size_t)num_attributes; \
cb_data.args.hipMemRangeGetAttributes.dev_ptr = (const void*)dev_ptr; \
cb_data.args.hipMemRangeGetAttributes.count = (size_t)count; \
};
// hipMemcpy[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpy_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy.dst = (void*)dst; \
cb_data.args.hipMemcpy.src = (const void*)src; \
cb_data.args.hipMemcpy.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpy.kind = (hipMemcpyKind)kind; \
};
// hipMemcpy2D[('void*', 'dst'), ('size_t', 'dpitch'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpy2D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy2D.dst = (void*)dst; \
cb_data.args.hipMemcpy2D.dpitch = (size_t)dpitch; \
cb_data.args.hipMemcpy2D.src = (const void*)src; \
cb_data.args.hipMemcpy2D.spitch = (size_t)spitch; \
cb_data.args.hipMemcpy2D.width = (size_t)width; \
cb_data.args.hipMemcpy2D.height = (size_t)height; \
cb_data.args.hipMemcpy2D.kind = (hipMemcpyKind)kind; \
};
// hipMemcpy2DAsync[('void*', 'dst'), ('size_t', 'dpitch'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpy2DAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy2DAsync.dst = (void*)dst; \
cb_data.args.hipMemcpy2DAsync.dpitch = (size_t)dpitch; \
cb_data.args.hipMemcpy2DAsync.src = (const void*)src; \
cb_data.args.hipMemcpy2DAsync.spitch = (size_t)spitch; \
cb_data.args.hipMemcpy2DAsync.width = (size_t)width; \
cb_data.args.hipMemcpy2DAsync.height = (size_t)height; \
cb_data.args.hipMemcpy2DAsync.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpy2DAsync.stream = (hipStream_t)stream; \
};
// hipMemcpy2DFromArray[('void*', 'dst'), ('size_t', 'dpitch'), ('hipArray_const_t', 'src'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpy2DFromArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy2DFromArray.dst = (void*)dst; \
cb_data.args.hipMemcpy2DFromArray.dpitch = (size_t)dpitch; \
cb_data.args.hipMemcpy2DFromArray.src = (hipArray_const_t)src; \
cb_data.args.hipMemcpy2DFromArray.wOffset = (size_t)wOffsetSrc; \
cb_data.args.hipMemcpy2DFromArray.hOffset = (size_t)hOffset; \
cb_data.args.hipMemcpy2DFromArray.width = (size_t)width; \
cb_data.args.hipMemcpy2DFromArray.height = (size_t)height; \
cb_data.args.hipMemcpy2DFromArray.kind = (hipMemcpyKind)kind; \
};
// hipMemcpy2DFromArrayAsync[('void*', 'dst'), ('size_t', 'dpitch'), ('hipArray_const_t', 'src'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpy2DFromArrayAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy2DFromArrayAsync.dst = (void*)dst; \
cb_data.args.hipMemcpy2DFromArrayAsync.dpitch = (size_t)dpitch; \
cb_data.args.hipMemcpy2DFromArrayAsync.src = (hipArray_const_t)src; \
cb_data.args.hipMemcpy2DFromArrayAsync.wOffset = (size_t)wOffsetSrc; \
cb_data.args.hipMemcpy2DFromArrayAsync.hOffset = (size_t)hOffsetSrc; \
cb_data.args.hipMemcpy2DFromArrayAsync.width = (size_t)width; \
cb_data.args.hipMemcpy2DFromArrayAsync.height = (size_t)height; \
cb_data.args.hipMemcpy2DFromArrayAsync.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpy2DFromArrayAsync.stream = (hipStream_t)stream; \
};
// hipMemcpy2DToArray[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpy2DToArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy2DToArray.dst = (hipArray*)dst; \
cb_data.args.hipMemcpy2DToArray.wOffset = (size_t)wOffset; \
cb_data.args.hipMemcpy2DToArray.hOffset = (size_t)hOffset; \
cb_data.args.hipMemcpy2DToArray.src = (const void*)src; \
cb_data.args.hipMemcpy2DToArray.spitch = (size_t)spitch; \
cb_data.args.hipMemcpy2DToArray.width = (size_t)width; \
cb_data.args.hipMemcpy2DToArray.height = (size_t)height; \
cb_data.args.hipMemcpy2DToArray.kind = (hipMemcpyKind)kind; \
};
// hipMemcpy2DToArrayAsync[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpy2DToArrayAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy2DToArrayAsync.dst = (hipArray*)dst; \
cb_data.args.hipMemcpy2DToArrayAsync.wOffset = (size_t)wOffset; \
cb_data.args.hipMemcpy2DToArrayAsync.hOffset = (size_t)hOffset; \
cb_data.args.hipMemcpy2DToArrayAsync.src = (const void*)src; \
cb_data.args.hipMemcpy2DToArrayAsync.spitch = (size_t)spitch; \
cb_data.args.hipMemcpy2DToArrayAsync.width = (size_t)width; \
cb_data.args.hipMemcpy2DToArrayAsync.height = (size_t)height; \
cb_data.args.hipMemcpy2DToArrayAsync.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpy2DToArrayAsync.stream = (hipStream_t)stream; \
};
// hipMemcpy3D[('const hipMemcpy3DParms*', 'p')]
#define INIT_hipMemcpy3D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy3D.p = (const hipMemcpy3DParms*)p; \
};
// hipMemcpy3DAsync[('const hipMemcpy3DParms*', 'p'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpy3DAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpy3DAsync.p = (const hipMemcpy3DParms*)p; \
cb_data.args.hipMemcpy3DAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyAsync[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyAsync.dst = (void*)dst; \
cb_data.args.hipMemcpyAsync.src = (const void*)src; \
cb_data.args.hipMemcpyAsync.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyAsync.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpyAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyAtoH[('void*', 'dst'), ('hipArray*', 'srcArray'), ('size_t', 'srcOffset'), ('size_t', 'count')]
#define INIT_hipMemcpyAtoH_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyAtoH.dst = (void*)dstHost; \
cb_data.args.hipMemcpyAtoH.srcArray = (hipArray*)srcArray; \
cb_data.args.hipMemcpyAtoH.srcOffset = (size_t)srcOffset; \
cb_data.args.hipMemcpyAtoH.count = (size_t)ByteCount; \
};
// hipMemcpyDtoD[('hipDeviceptr_t', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes')]
#define INIT_hipMemcpyDtoD_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyDtoD.dst = (hipDeviceptr_t)dstDevice; \
cb_data.args.hipMemcpyDtoD.src = (hipDeviceptr_t)srcDevice; \
cb_data.args.hipMemcpyDtoD.sizeBytes = (size_t)ByteCount; \
};
// hipMemcpyDtoDAsync[('hipDeviceptr_t', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyDtoDAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyDtoDAsync.dst = (hipDeviceptr_t)dstDevice; \
cb_data.args.hipMemcpyDtoDAsync.src = (hipDeviceptr_t)srcDevice; \
cb_data.args.hipMemcpyDtoDAsync.sizeBytes = (size_t)ByteCount; \
cb_data.args.hipMemcpyDtoDAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyDtoH[('void*', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes')]
#define INIT_hipMemcpyDtoH_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyDtoH.dst = (void*)dstHost; \
cb_data.args.hipMemcpyDtoH.src = (hipDeviceptr_t)srcDevice; \
cb_data.args.hipMemcpyDtoH.sizeBytes = (size_t)ByteCount; \
};
// hipMemcpyDtoHAsync[('void*', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyDtoHAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyDtoHAsync.dst = (void*)dstHost; \
cb_data.args.hipMemcpyDtoHAsync.src = (hipDeviceptr_t)srcDevice; \
cb_data.args.hipMemcpyDtoHAsync.sizeBytes = (size_t)ByteCount; \
cb_data.args.hipMemcpyDtoHAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyFromArray[('void*', 'dst'), ('hipArray_const_t', 'srcArray'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'count'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpyFromArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyFromArray.dst = (void*)dst; \
cb_data.args.hipMemcpyFromArray.srcArray = (hipArray_const_t)src; \
cb_data.args.hipMemcpyFromArray.wOffset = (size_t)wOffsetSrc; \
cb_data.args.hipMemcpyFromArray.hOffset = (size_t)hOffset; \
cb_data.args.hipMemcpyFromArray.count = (size_t)count; \
cb_data.args.hipMemcpyFromArray.kind = (hipMemcpyKind)kind; \
};
// hipMemcpyFromSymbol[('void*', 'dst'), ('const void*', 'symbol'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpyFromSymbol_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyFromSymbol.dst = (void*)dst; \
cb_data.args.hipMemcpyFromSymbol.symbol = (const void*)symbol; \
cb_data.args.hipMemcpyFromSymbol.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyFromSymbol.offset = (size_t)offset; \
cb_data.args.hipMemcpyFromSymbol.kind = (hipMemcpyKind)kind; \
};
// hipMemcpyFromSymbolAsync[('void*', 'dst'), ('const void*', 'symbol'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyFromSymbolAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyFromSymbolAsync.dst = (void*)dst; \
cb_data.args.hipMemcpyFromSymbolAsync.symbol = (const void*)symbol; \
cb_data.args.hipMemcpyFromSymbolAsync.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyFromSymbolAsync.offset = (size_t)offset; \
cb_data.args.hipMemcpyFromSymbolAsync.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpyFromSymbolAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyHtoA[('hipArray*', 'dstArray'), ('size_t', 'dstOffset'), ('const void*', 'srcHost'), ('size_t', 'count')]
#define INIT_hipMemcpyHtoA_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyHtoA.dstArray = (hipArray*)dstArray; \
cb_data.args.hipMemcpyHtoA.dstOffset = (size_t)dstOffset; \
cb_data.args.hipMemcpyHtoA.srcHost = (const void*)srcHost; \
cb_data.args.hipMemcpyHtoA.count = (size_t)ByteCount; \
};
// hipMemcpyHtoD[('hipDeviceptr_t', 'dst'), ('void*', 'src'), ('size_t', 'sizeBytes')]
#define INIT_hipMemcpyHtoD_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyHtoD.dst = (hipDeviceptr_t)dstDevice; \
cb_data.args.hipMemcpyHtoD.src = (void*)srcHost; \
cb_data.args.hipMemcpyHtoD.sizeBytes = (size_t)ByteCount; \
};
// hipMemcpyHtoDAsync[('hipDeviceptr_t', 'dst'), ('void*', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyHtoDAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyHtoDAsync.dst = (hipDeviceptr_t)dstDevice; \
cb_data.args.hipMemcpyHtoDAsync.src = (void*)srcHost; \
cb_data.args.hipMemcpyHtoDAsync.sizeBytes = (size_t)ByteCount; \
cb_data.args.hipMemcpyHtoDAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyParam2D[('const hip_Memcpy2D*', 'pCopy')]
#define INIT_hipMemcpyParam2D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyParam2D.pCopy = (const hip_Memcpy2D*)pCopy; \
};
// hipMemcpyParam2DAsync[('const hip_Memcpy2D*', 'pCopy'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyParam2DAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyParam2DAsync.pCopy = (const hip_Memcpy2D*)pCopy; \
cb_data.args.hipMemcpyParam2DAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyPeer[('void*', 'dst'), ('int', 'dstDeviceId'), ('const void*', 'src'), ('int', 'srcDeviceId'), ('size_t', 'sizeBytes')]
#define INIT_hipMemcpyPeer_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyPeer.dst = (void*)dst; \
cb_data.args.hipMemcpyPeer.dstDeviceId = (int)dstDevice; \
cb_data.args.hipMemcpyPeer.src = (const void*)src; \
cb_data.args.hipMemcpyPeer.srcDeviceId = (int)srcDevice; \
cb_data.args.hipMemcpyPeer.sizeBytes = (size_t)sizeBytes; \
};
// hipMemcpyPeerAsync[('void*', 'dst'), ('int', 'dstDeviceId'), ('const void*', 'src'), ('int', 'srcDevice'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyPeerAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyPeerAsync.dst = (void*)dst; \
cb_data.args.hipMemcpyPeerAsync.dstDeviceId = (int)dstDevice; \
cb_data.args.hipMemcpyPeerAsync.src = (const void*)src; \
cb_data.args.hipMemcpyPeerAsync.srcDevice = (int)srcDevice; \
cb_data.args.hipMemcpyPeerAsync.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyPeerAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyToArray[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'count'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpyToArray_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyToArray.dst = (hipArray*)dst; \
cb_data.args.hipMemcpyToArray.wOffset = (size_t)wOffset; \
cb_data.args.hipMemcpyToArray.hOffset = (size_t)hOffset; \
cb_data.args.hipMemcpyToArray.src = (const void*)src; \
cb_data.args.hipMemcpyToArray.count = (size_t)count; \
cb_data.args.hipMemcpyToArray.kind = (hipMemcpyKind)kind; \
};
// hipMemcpyToSymbol[('const void*', 'symbol'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind')]
#define INIT_hipMemcpyToSymbol_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyToSymbol.symbol = (const void*)symbol; \
cb_data.args.hipMemcpyToSymbol.src = (const void*)src; \
cb_data.args.hipMemcpyToSymbol.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyToSymbol.offset = (size_t)offset; \
cb_data.args.hipMemcpyToSymbol.kind = (hipMemcpyKind)kind; \
};
// hipMemcpyToSymbolAsync[('const void*', 'symbol'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyToSymbolAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyToSymbolAsync.symbol = (const void*)symbol; \
cb_data.args.hipMemcpyToSymbolAsync.src = (const void*)src; \
cb_data.args.hipMemcpyToSymbolAsync.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyToSymbolAsync.offset = (size_t)offset; \
cb_data.args.hipMemcpyToSymbolAsync.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpyToSymbolAsync.stream = (hipStream_t)stream; \
};
// hipMemcpyWithStream[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
#define INIT_hipMemcpyWithStream_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemcpyWithStream.dst = (void*)dst; \
cb_data.args.hipMemcpyWithStream.src = (const void*)src; \
cb_data.args.hipMemcpyWithStream.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemcpyWithStream.kind = (hipMemcpyKind)kind; \
cb_data.args.hipMemcpyWithStream.stream = (hipStream_t)stream; \
};
// hipMemset[('void*', 'dst'), ('int', 'value'), ('size_t', 'sizeBytes')]
#define INIT_hipMemset_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemset.dst = (void*)dst; \
cb_data.args.hipMemset.value = (int)value; \
cb_data.args.hipMemset.sizeBytes = (size_t)sizeBytes; \
};
// hipMemset2D[('void*', 'dst'), ('size_t', 'pitch'), ('int', 'value'), ('size_t', 'width'), ('size_t', 'height')]
#define INIT_hipMemset2D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemset2D.dst = (void*)dst; \
cb_data.args.hipMemset2D.pitch = (size_t)pitch; \
cb_data.args.hipMemset2D.value = (int)value; \
cb_data.args.hipMemset2D.width = (size_t)width; \
cb_data.args.hipMemset2D.height = (size_t)height; \
};
// hipMemset2DAsync[('void*', 'dst'), ('size_t', 'pitch'), ('int', 'value'), ('size_t', 'width'), ('size_t', 'height'), ('hipStream_t', 'stream')]
#define INIT_hipMemset2DAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemset2DAsync.dst = (void*)dst; \
cb_data.args.hipMemset2DAsync.pitch = (size_t)pitch; \
cb_data.args.hipMemset2DAsync.value = (int)value; \
cb_data.args.hipMemset2DAsync.width = (size_t)width; \
cb_data.args.hipMemset2DAsync.height = (size_t)height; \
cb_data.args.hipMemset2DAsync.stream = (hipStream_t)stream; \
};
// hipMemset3D[('hipPitchedPtr', 'pitchedDevPtr'), ('int', 'value'), ('hipExtent', 'extent')]
#define INIT_hipMemset3D_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemset3D.pitchedDevPtr = (hipPitchedPtr)pitchedDevPtr; \
cb_data.args.hipMemset3D.value = (int)value; \
cb_data.args.hipMemset3D.extent = (hipExtent)extent; \
};
// hipMemset3DAsync[('hipPitchedPtr', 'pitchedDevPtr'), ('int', 'value'), ('hipExtent', 'extent'), ('hipStream_t', 'stream')]
#define INIT_hipMemset3DAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemset3DAsync.pitchedDevPtr = (hipPitchedPtr)pitchedDevPtr; \
cb_data.args.hipMemset3DAsync.value = (int)value; \
cb_data.args.hipMemset3DAsync.extent = (hipExtent)extent; \
cb_data.args.hipMemset3DAsync.stream = (hipStream_t)stream; \
};
// hipMemsetAsync[('void*', 'dst'), ('int', 'value'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
#define INIT_hipMemsetAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetAsync.dst = (void*)dst; \
cb_data.args.hipMemsetAsync.value = (int)value; \
cb_data.args.hipMemsetAsync.sizeBytes = (size_t)sizeBytes; \
cb_data.args.hipMemsetAsync.stream = (hipStream_t)stream; \
};
// hipMemsetD16[('hipDeviceptr_t', 'dest'), ('unsigned short', 'value'), ('size_t', 'count')]
#define INIT_hipMemsetD16_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetD16.dest = (hipDeviceptr_t)dst; \
cb_data.args.hipMemsetD16.value = (unsigned short)value; \
cb_data.args.hipMemsetD16.count = (size_t)count; \
};
// hipMemsetD16Async[('hipDeviceptr_t', 'dest'), ('unsigned short', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
#define INIT_hipMemsetD16Async_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetD16Async.dest = (hipDeviceptr_t)dst; \
cb_data.args.hipMemsetD16Async.value = (unsigned short)value; \
cb_data.args.hipMemsetD16Async.count = (size_t)count; \
cb_data.args.hipMemsetD16Async.stream = (hipStream_t)stream; \
};
// hipMemsetD32[('hipDeviceptr_t', 'dest'), ('int', 'value'), ('size_t', 'count')]
#define INIT_hipMemsetD32_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetD32.dest = (hipDeviceptr_t)dst; \
cb_data.args.hipMemsetD32.value = (int)value; \
cb_data.args.hipMemsetD32.count = (size_t)count; \
};
// hipMemsetD32Async[('hipDeviceptr_t', 'dst'), ('int', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
#define INIT_hipMemsetD32Async_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetD32Async.dst = (hipDeviceptr_t)dst; \
cb_data.args.hipMemsetD32Async.value = (int)value; \
cb_data.args.hipMemsetD32Async.count = (size_t)count; \
cb_data.args.hipMemsetD32Async.stream = (hipStream_t)stream; \
};
// hipMemsetD8[('hipDeviceptr_t', 'dest'), ('unsigned char', 'value'), ('size_t', 'count')]
#define INIT_hipMemsetD8_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetD8.dest = (hipDeviceptr_t)dst; \
cb_data.args.hipMemsetD8.value = (unsigned char)value; \
cb_data.args.hipMemsetD8.count = (size_t)count; \
};
// hipMemsetD8Async[('hipDeviceptr_t', 'dest'), ('unsigned char', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
#define INIT_hipMemsetD8Async_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipMemsetD8Async.dest = (hipDeviceptr_t)dst; \
cb_data.args.hipMemsetD8Async.value = (unsigned char)value; \
cb_data.args.hipMemsetD8Async.count = (size_t)count; \
cb_data.args.hipMemsetD8Async.stream = (hipStream_t)stream; \
};
// hipModuleGetFunction[('hipFunction_t*', 'function'), ('hipModule_t', 'module'), ('const char*', 'kname')]
#define INIT_hipModuleGetFunction_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleGetFunction.function = (hipFunction_t*)hfunc; \
cb_data.args.hipModuleGetFunction.module = (hipModule_t)hmod; \
cb_data.args.hipModuleGetFunction.kname = (name) ? strdup(name) : NULL; \
};
// hipModuleGetGlobal[('hipDeviceptr_t*', 'dptr'), ('size_t*', 'bytes'), ('hipModule_t', 'hmod'), ('const char*', 'name')]
#define INIT_hipModuleGetGlobal_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleGetGlobal.dptr = (hipDeviceptr_t*)dptr; \
cb_data.args.hipModuleGetGlobal.bytes = (size_t*)bytes; \
cb_data.args.hipModuleGetGlobal.hmod = (hipModule_t)hmod; \
cb_data.args.hipModuleGetGlobal.name = (name) ? strdup(name) : NULL; \
};
// hipModuleGetTexRef[('textureReference**', 'texRef'), ('hipModule_t', 'hmod'), ('const char*', 'name')]
#define INIT_hipModuleGetTexRef_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleGetTexRef.texRef = (textureReference**)texRef; \
cb_data.args.hipModuleGetTexRef.hmod = (hipModule_t)hmod; \
cb_data.args.hipModuleGetTexRef.name = (name) ? strdup(name) : NULL; \
};
// hipModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'gridDimX'), ('unsigned int', 'gridDimY'), ('unsigned int', 'gridDimZ'), ('unsigned int', 'blockDimX'), ('unsigned int', 'blockDimY'), ('unsigned int', 'blockDimZ'), ('unsigned int', 'sharedMemBytes'), ('hipStream_t', 'stream'), ('void**', 'kernelParams'), ('void**', 'extra')]
#define INIT_hipModuleLaunchKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleLaunchKernel.f = (hipFunction_t)f; \
cb_data.args.hipModuleLaunchKernel.gridDimX = (unsigned int)gridDimX; \
cb_data.args.hipModuleLaunchKernel.gridDimY = (unsigned int)gridDimY; \
cb_data.args.hipModuleLaunchKernel.gridDimZ = (unsigned int)gridDimZ; \
cb_data.args.hipModuleLaunchKernel.blockDimX = (unsigned int)blockDimX; \
cb_data.args.hipModuleLaunchKernel.blockDimY = (unsigned int)blockDimY; \
cb_data.args.hipModuleLaunchKernel.blockDimZ = (unsigned int)blockDimZ; \
cb_data.args.hipModuleLaunchKernel.sharedMemBytes = (unsigned int)sharedMemBytes; \
cb_data.args.hipModuleLaunchKernel.stream = (hipStream_t)hStream; \
cb_data.args.hipModuleLaunchKernel.kernelParams = (void**)kernelParams; \
cb_data.args.hipModuleLaunchKernel.extra = (void**)extra; \
};
// hipModuleLoad[('hipModule_t*', 'module'), ('const char*', 'fname')]
#define INIT_hipModuleLoad_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleLoad.module = (hipModule_t*)module; \
cb_data.args.hipModuleLoad.fname = (fname) ? strdup(fname) : NULL; \
};
// hipModuleLoadData[('hipModule_t*', 'module'), ('const void*', 'image')]
#define INIT_hipModuleLoadData_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleLoadData.module = (hipModule_t*)module; \
cb_data.args.hipModuleLoadData.image = (const void*)image; \
};
// hipModuleLoadDataEx[('hipModule_t*', 'module'), ('const void*', 'image'), ('unsigned int', 'numOptions'), ('hipJitOption*', 'options'), ('void**', 'optionsValues')]
#define INIT_hipModuleLoadDataEx_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleLoadDataEx.module = (hipModule_t*)module; \
cb_data.args.hipModuleLoadDataEx.image = (const void*)image; \
cb_data.args.hipModuleLoadDataEx.numOptions = (unsigned int)numOptions; \
cb_data.args.hipModuleLoadDataEx.options = (hipJitOption*)options; \
cb_data.args.hipModuleLoadDataEx.optionsValues = (void**)optionsValues; \
};
// hipModuleOccupancyMaxActiveBlocksPerMultiprocessor[('int*', 'numBlocks'), ('hipFunction_t', 'f'), ('int', 'blockSize'), ('size_t', 'dynSharedMemPerBlk')]
#define INIT_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks = (int*)numBlocks; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.f = (hipFunction_t)f; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.blockSize = (int)blockSize; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.dynSharedMemPerBlk = (size_t)dynSharedMemPerBlk; \
};
// hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags[('int*', 'numBlocks'), ('hipFunction_t', 'f'), ('int', 'blockSize'), ('size_t', 'dynSharedMemPerBlk'), ('unsigned int', 'flags')]
#define INIT_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks = (int*)numBlocks; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f = (hipFunction_t)f; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize = (int)blockSize; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynSharedMemPerBlk = (size_t)dynSharedMemPerBlk; \
cb_data.args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags = (unsigned int)flags; \
};
// hipModuleOccupancyMaxPotentialBlockSize[('int*', 'gridSize'), ('int*', 'blockSize'), ('hipFunction_t', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('int', 'blockSizeLimit')]
#define INIT_hipModuleOccupancyMaxPotentialBlockSize_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSize.gridSize = (int*)gridSize; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSize.blockSize = (int*)blockSize; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSize.f = (hipFunction_t)f; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk = (size_t)dynSharedMemPerBlk; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSize.blockSizeLimit = (int)blockSizeLimit; \
};
// hipModuleOccupancyMaxPotentialBlockSizeWithFlags[('int*', 'gridSize'), ('int*', 'blockSize'), ('hipFunction_t', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('int', 'blockSizeLimit'), ('unsigned int', 'flags')]
#define INIT_hipModuleOccupancyMaxPotentialBlockSizeWithFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.gridSize = (int*)gridSize; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSize = (int*)blockSize; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.f = (hipFunction_t)f; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.dynSharedMemPerBlk = (size_t)dynSharedMemPerBlk; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSizeLimit = (int)blockSizeLimit; \
cb_data.args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.flags = (unsigned int)flags; \
};
// hipModuleUnload[('hipModule_t', 'module')]
#define INIT_hipModuleUnload_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipModuleUnload.module = (hipModule_t)hmod; \
};
// hipOccupancyMaxActiveBlocksPerMultiprocessor[('int*', 'numBlocks'), ('const void*', 'f'), ('int', 'blockSize'), ('size_t', 'dynamicSMemSize')]
#define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessor_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks = (int*)numBlocks; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.f = (const void*)f; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.blockSize = (int)blockSize; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessor.dynamicSMemSize = (size_t)dynamicSMemSize; \
};
// hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags[('int*', 'numBlocks'), ('const void*', 'f'), ('int', 'blockSize'), ('size_t', 'dynamicSMemSize'), ('unsigned int', 'flags')]
#define INIT_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks = (int*)numBlocks; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f = (const void*)f; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize = (int)blockSize; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynamicSMemSize = (size_t)dynamicSMemSize; \
cb_data.args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags = (unsigned int)flags; \
};
// hipOccupancyMaxPotentialBlockSize[('int*', 'gridSize'), ('int*', 'blockSize'), ('const void*', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('int', 'blockSizeLimit')]
#define INIT_hipOccupancyMaxPotentialBlockSize_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipOccupancyMaxPotentialBlockSize.gridSize = (int*)gridSize; \
cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSize = (int*)blockSize; \
cb_data.args.hipOccupancyMaxPotentialBlockSize.f = (const void*)f; \
cb_data.args.hipOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk = (size_t)dynSharedMemPerBlk; \
cb_data.args.hipOccupancyMaxPotentialBlockSize.blockSizeLimit = (int)blockSizeLimit; \
};
// hipPeekAtLastError[]
#define INIT_hipPeekAtLastError_CB_ARGS_DATA(cb_data) { \
};
// hipPointerGetAttributes[('hipPointerAttribute_t*', 'attributes'), ('const void*', 'ptr')]
#define INIT_hipPointerGetAttributes_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipPointerGetAttributes.attributes = (hipPointerAttribute_t*)attributes; \
cb_data.args.hipPointerGetAttributes.ptr = (const void*)ptr; \
};
// hipProfilerStart[]
#define INIT_hipProfilerStart_CB_ARGS_DATA(cb_data) { \
};
// hipProfilerStop[]
#define INIT_hipProfilerStop_CB_ARGS_DATA(cb_data) { \
};
// hipRuntimeGetVersion[('int*', 'runtimeVersion')]
#define INIT_hipRuntimeGetVersion_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipRuntimeGetVersion.runtimeVersion = (int*)runtimeVersion; \
};
// hipSetDevice[('int', 'deviceId')]
#define INIT_hipSetDevice_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipSetDevice.deviceId = (int)device; \
};
// hipSetDeviceFlags[('unsigned int', 'flags')]
#define INIT_hipSetDeviceFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipSetDeviceFlags.flags = (unsigned int)flags; \
};
// hipSetupArgument[('const void*', 'arg'), ('size_t', 'size'), ('size_t', 'offset')]
#define INIT_hipSetupArgument_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipSetupArgument.arg = (const void*)arg; \
cb_data.args.hipSetupArgument.size = (size_t)size; \
cb_data.args.hipSetupArgument.offset = (size_t)offset; \
};
// hipSignalExternalSemaphoresAsync[('const hipExternalSemaphore_t*', 'extSemArray'), ('const hipExternalSemaphoreSignalParams*', 'paramsArray'), ('unsigned int', 'numExtSems'), ('hipStream_t', 'stream')]
#define INIT_hipSignalExternalSemaphoresAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipSignalExternalSemaphoresAsync.extSemArray = (const hipExternalSemaphore_t*)extSemArray; \
cb_data.args.hipSignalExternalSemaphoresAsync.paramsArray = (const hipExternalSemaphoreSignalParams*)paramsArray; \
cb_data.args.hipSignalExternalSemaphoresAsync.numExtSems = (unsigned int)numExtSems; \
cb_data.args.hipSignalExternalSemaphoresAsync.stream = (hipStream_t)stream; \
};
// hipStreamAddCallback[('hipStream_t', 'stream'), ('hipStreamCallback_t', 'callback'), ('void*', 'userData'), ('unsigned int', 'flags')]
#define INIT_hipStreamAddCallback_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamAddCallback.stream = (hipStream_t)stream; \
cb_data.args.hipStreamAddCallback.callback = (hipStreamCallback_t)callback; \
cb_data.args.hipStreamAddCallback.userData = (void*)userData; \
cb_data.args.hipStreamAddCallback.flags = (unsigned int)flags; \
};
// hipStreamAttachMemAsync[('hipStream_t', 'stream'), ('void*', 'dev_ptr'), ('size_t', 'length'), ('unsigned int', 'flags')]
#define INIT_hipStreamAttachMemAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamAttachMemAsync.stream = (hipStream_t)stream; \
cb_data.args.hipStreamAttachMemAsync.dev_ptr = (void*)dev_ptr; \
cb_data.args.hipStreamAttachMemAsync.length = (size_t)length; \
cb_data.args.hipStreamAttachMemAsync.flags = (unsigned int)flags; \
};
// hipStreamCreate[('hipStream_t*', 'stream')]
#define INIT_hipStreamCreate_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamCreate.stream = (hipStream_t*)stream; \
};
// hipStreamCreateWithFlags[('hipStream_t*', 'stream'), ('unsigned int', 'flags')]
#define INIT_hipStreamCreateWithFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamCreateWithFlags.stream = (hipStream_t*)stream; \
cb_data.args.hipStreamCreateWithFlags.flags = (unsigned int)flags; \
};
// hipStreamCreateWithPriority[('hipStream_t*', 'stream'), ('unsigned int', 'flags'), ('int', 'priority')]
#define INIT_hipStreamCreateWithPriority_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamCreateWithPriority.stream = (hipStream_t*)stream; \
cb_data.args.hipStreamCreateWithPriority.flags = (unsigned int)flags; \
cb_data.args.hipStreamCreateWithPriority.priority = (int)priority; \
};
// hipStreamDestroy[('hipStream_t', 'stream')]
#define INIT_hipStreamDestroy_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamDestroy.stream = (hipStream_t)stream; \
};
// hipStreamGetFlags[('hipStream_t', 'stream'), ('unsigned int*', 'flags')]
#define INIT_hipStreamGetFlags_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamGetFlags.stream = (hipStream_t)stream; \
cb_data.args.hipStreamGetFlags.flags = (unsigned int*)flags; \
};
// hipStreamGetPriority[('hipStream_t', 'stream'), ('int*', 'priority')]
#define INIT_hipStreamGetPriority_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamGetPriority.stream = (hipStream_t)stream; \
cb_data.args.hipStreamGetPriority.priority = (int*)priority; \
};
// hipStreamQuery[('hipStream_t', 'stream')]
#define INIT_hipStreamQuery_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamQuery.stream = (hipStream_t)stream; \
};
// hipStreamSynchronize[('hipStream_t', 'stream')]
#define INIT_hipStreamSynchronize_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamSynchronize.stream = (hipStream_t)stream; \
};
// hipStreamWaitEvent[('hipStream_t', 'stream'), ('hipEvent_t', 'event'), ('unsigned int', 'flags')]
#define INIT_hipStreamWaitEvent_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamWaitEvent.stream = (hipStream_t)stream; \
cb_data.args.hipStreamWaitEvent.event = (hipEvent_t)event; \
cb_data.args.hipStreamWaitEvent.flags = (unsigned int)flags; \
};
// hipStreamWaitValue32[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int32_t', 'value'), ('unsigned int', 'flags'), ('unsigned int', 'mask')]
#define INIT_hipStreamWaitValue32_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamWaitValue32.stream = (hipStream_t)stream; \
cb_data.args.hipStreamWaitValue32.ptr = (void*)ptr; \
cb_data.args.hipStreamWaitValue32.value = (int32_t)value; \
cb_data.args.hipStreamWaitValue32.flags = (unsigned int)flags; \
cb_data.args.hipStreamWaitValue32.mask = (unsigned int)mask; \
};
// hipStreamWaitValue64[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int64_t', 'value'), ('unsigned int', 'flags'), ('uint64_t', 'mask')]
#define INIT_hipStreamWaitValue64_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamWaitValue64.stream = (hipStream_t)stream; \
cb_data.args.hipStreamWaitValue64.ptr = (void*)ptr; \
cb_data.args.hipStreamWaitValue64.value = (int64_t)value; \
cb_data.args.hipStreamWaitValue64.flags = (unsigned int)flags; \
cb_data.args.hipStreamWaitValue64.mask = (uint64_t)mask; \
};
// hipStreamWriteValue32[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int32_t', 'value'), ('unsigned int', 'flags')]
#define INIT_hipStreamWriteValue32_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamWriteValue32.stream = (hipStream_t)stream; \
cb_data.args.hipStreamWriteValue32.ptr = (void*)ptr; \
cb_data.args.hipStreamWriteValue32.value = (int32_t)value; \
cb_data.args.hipStreamWriteValue32.flags = (unsigned int)flags; \
};
// hipStreamWriteValue64[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int64_t', 'value'), ('unsigned int', 'flags')]
#define INIT_hipStreamWriteValue64_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipStreamWriteValue64.stream = (hipStream_t)stream; \
cb_data.args.hipStreamWriteValue64.ptr = (void*)ptr; \
cb_data.args.hipStreamWriteValue64.value = (int64_t)value; \
cb_data.args.hipStreamWriteValue64.flags = (unsigned int)flags; \
};
// hipWaitExternalSemaphoresAsync[('const hipExternalSemaphore_t*', 'extSemArray'), ('const hipExternalSemaphoreWaitParams*', 'paramsArray'), ('unsigned int', 'numExtSems'), ('hipStream_t', 'stream')]
#define INIT_hipWaitExternalSemaphoresAsync_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipWaitExternalSemaphoresAsync.extSemArray = (const hipExternalSemaphore_t*)extSemArray; \
cb_data.args.hipWaitExternalSemaphoresAsync.paramsArray = (const hipExternalSemaphoreWaitParams*)paramsArray; \
cb_data.args.hipWaitExternalSemaphoresAsync.numExtSems = (unsigned int)numExtSems; \
cb_data.args.hipWaitExternalSemaphoresAsync.stream = (hipStream_t)stream; \
};
#define INIT_CB_ARGS_DATA(cb_id, cb_data) INIT_##cb_id##_CB_ARGS_DATA(cb_data)
// Macros for non-public API primitives
// hipArray3DGetDescriptor()
#define INIT_hipArray3DGetDescriptor_CB_ARGS_DATA(cb_data) {};
// hipArrayGetDescriptor()
#define INIT_hipArrayGetDescriptor_CB_ARGS_DATA(cb_data) {};
// hipBindTexture()
#define INIT_hipBindTexture_CB_ARGS_DATA(cb_data) {};
// hipBindTexture2D()
#define INIT_hipBindTexture2D_CB_ARGS_DATA(cb_data) {};
// hipBindTextureToArray()
#define INIT_hipBindTextureToArray_CB_ARGS_DATA(cb_data) {};
// hipBindTextureToMipmappedArray()
#define INIT_hipBindTextureToMipmappedArray_CB_ARGS_DATA(cb_data) {};
// hipCreateSurfaceObject()
#define INIT_hipCreateSurfaceObject_CB_ARGS_DATA(cb_data) {};
// hipCreateTextureObject()
#define INIT_hipCreateTextureObject_CB_ARGS_DATA(cb_data) {};
// hipDestroySurfaceObject()
#define INIT_hipDestroySurfaceObject_CB_ARGS_DATA(cb_data) {};
// hipDestroyTextureObject()
#define INIT_hipDestroyTextureObject_CB_ARGS_DATA(cb_data) {};
// hipDeviceGetCount()
#define INIT_hipDeviceGetCount_CB_ARGS_DATA(cb_data) {};
// hipGLGetDevices()
#define INIT_hipGLGetDevices_CB_ARGS_DATA(cb_data) {};
// hipGetChannelDesc()
#define INIT_hipGetChannelDesc_CB_ARGS_DATA(cb_data) {};
// hipGetTextureAlignmentOffset()
#define INIT_hipGetTextureAlignmentOffset_CB_ARGS_DATA(cb_data) {};
// hipGetTextureObjectResourceDesc()
#define INIT_hipGetTextureObjectResourceDesc_CB_ARGS_DATA(cb_data) {};
// hipGetTextureObjectResourceViewDesc()
#define INIT_hipGetTextureObjectResourceViewDesc_CB_ARGS_DATA(cb_data) {};
// hipGetTextureObjectTextureDesc()
#define INIT_hipGetTextureObjectTextureDesc_CB_ARGS_DATA(cb_data) {};
// hipGetTextureReference()
#define INIT_hipGetTextureReference_CB_ARGS_DATA(cb_data) {};
// hipGraphAddDependencies()
#define INIT_hipGraphAddDependencies_CB_ARGS_DATA(cb_data) {};
// hipGraphAddKernelNode()
#define INIT_hipGraphAddKernelNode_CB_ARGS_DATA(cb_data) {};
// hipGraphAddMemcpyNode()
#define INIT_hipGraphAddMemcpyNode_CB_ARGS_DATA(cb_data) {};
// hipGraphAddMemsetNode()
#define INIT_hipGraphAddMemsetNode_CB_ARGS_DATA(cb_data) {};
// hipGraphCreate()
#define INIT_hipGraphCreate_CB_ARGS_DATA(cb_data) {};
// hipGraphDestroy()
#define INIT_hipGraphDestroy_CB_ARGS_DATA(cb_data) {};
// hipGraphExecDestroy()
#define INIT_hipGraphExecDestroy_CB_ARGS_DATA(cb_data) {};
// hipGraphGetNodes()
#define INIT_hipGraphGetNodes_CB_ARGS_DATA(cb_data) {};
// hipGraphGetRootNodes()
#define INIT_hipGraphGetRootNodes_CB_ARGS_DATA(cb_data) {};
// hipGraphInstantiate()
#define INIT_hipGraphInstantiate_CB_ARGS_DATA(cb_data) {};
// hipGraphKernelNodeGetParams()
#define INIT_hipGraphKernelNodeGetParams_CB_ARGS_DATA(cb_data) {};
// hipGraphKernelNodeSetParams()
#define INIT_hipGraphKernelNodeSetParams_CB_ARGS_DATA(cb_data) {};
// hipGraphLaunch()
#define INIT_hipGraphLaunch_CB_ARGS_DATA(cb_data) {};
// hipGraphMemcpyNodeGetParams()
#define INIT_hipGraphMemcpyNodeGetParams_CB_ARGS_DATA(cb_data) {};
// hipGraphMemcpyNodeSetParams()
#define INIT_hipGraphMemcpyNodeSetParams_CB_ARGS_DATA(cb_data) {};
// hipGraphMemsetNodeGetParams()
#define INIT_hipGraphMemsetNodeGetParams_CB_ARGS_DATA(cb_data) {};
// hipGraphMemsetNodeSetParams()
#define INIT_hipGraphMemsetNodeSetParams_CB_ARGS_DATA(cb_data) {};
// hipGraphicsGLRegisterBuffer()
#define INIT_hipGraphicsGLRegisterBuffer_CB_ARGS_DATA(cb_data) {};
// hipGraphicsMapResources()
#define INIT_hipGraphicsMapResources_CB_ARGS_DATA(cb_data) {};
// hipGraphicsResourceGetMappedPointer()
#define INIT_hipGraphicsResourceGetMappedPointer_CB_ARGS_DATA(cb_data) {};
// hipGraphicsUnmapResources()
#define INIT_hipGraphicsUnmapResources_CB_ARGS_DATA(cb_data) {};
// hipGraphicsUnregisterResource()
#define INIT_hipGraphicsUnregisterResource_CB_ARGS_DATA(cb_data) {};
// hipMemcpy2DArrayToArray()
#define INIT_hipMemcpy2DArrayToArray_CB_ARGS_DATA(cb_data) {};
// hipMemcpyArrayToArray()
#define INIT_hipMemcpyArrayToArray_CB_ARGS_DATA(cb_data) {};
// hipMemcpyAtoA()
#define INIT_hipMemcpyAtoA_CB_ARGS_DATA(cb_data) {};
// hipMemcpyAtoD()
#define INIT_hipMemcpyAtoD_CB_ARGS_DATA(cb_data) {};
// hipMemcpyAtoHAsync()
#define INIT_hipMemcpyAtoHAsync_CB_ARGS_DATA(cb_data) {};
// hipMemcpyDtoA()
#define INIT_hipMemcpyDtoA_CB_ARGS_DATA(cb_data) {};
// hipMemcpyFromArrayAsync()
#define INIT_hipMemcpyFromArrayAsync_CB_ARGS_DATA(cb_data) {};
// hipMemcpyHtoAAsync()
#define INIT_hipMemcpyHtoAAsync_CB_ARGS_DATA(cb_data) {};
// hipMemcpyToArrayAsync()
#define INIT_hipMemcpyToArrayAsync_CB_ARGS_DATA(cb_data) {};
// hipMipmappedArrayCreate()
#define INIT_hipMipmappedArrayCreate_CB_ARGS_DATA(cb_data) {};
// hipMipmappedArrayDestroy()
#define INIT_hipMipmappedArrayDestroy_CB_ARGS_DATA(cb_data) {};
// hipMipmappedArrayGetLevel()
#define INIT_hipMipmappedArrayGetLevel_CB_ARGS_DATA(cb_data) {};
// hipModuleLaunchKernelExt()
#define INIT_hipModuleLaunchKernelExt_CB_ARGS_DATA(cb_data) {};
// hipSetValidDevices()
#define INIT_hipSetValidDevices_CB_ARGS_DATA(cb_data) {};
// hipStreamBeginCapture()
#define INIT_hipStreamBeginCapture_CB_ARGS_DATA(cb_data) {};
// hipStreamEndCapture()
#define INIT_hipStreamEndCapture_CB_ARGS_DATA(cb_data) {};
// hipStreamIsCapturing()
#define INIT_hipStreamIsCapturing_CB_ARGS_DATA(cb_data) {};
// hipTexObjectCreate()
#define INIT_hipTexObjectCreate_CB_ARGS_DATA(cb_data) {};
// hipTexObjectDestroy()
#define INIT_hipTexObjectDestroy_CB_ARGS_DATA(cb_data) {};
// hipTexObjectGetResourceDesc()
#define INIT_hipTexObjectGetResourceDesc_CB_ARGS_DATA(cb_data) {};
// hipTexObjectGetResourceViewDesc()
#define INIT_hipTexObjectGetResourceViewDesc_CB_ARGS_DATA(cb_data) {};
// hipTexObjectGetTextureDesc()
#define INIT_hipTexObjectGetTextureDesc_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetAddress()
#define INIT_hipTexRefGetAddress_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetAddressMode()
#define INIT_hipTexRefGetAddressMode_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetArray()
#define INIT_hipTexRefGetArray_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetBorderColor()
#define INIT_hipTexRefGetBorderColor_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetFilterMode()
#define INIT_hipTexRefGetFilterMode_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetFlags()
#define INIT_hipTexRefGetFlags_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetFormat()
#define INIT_hipTexRefGetFormat_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetMaxAnisotropy()
#define INIT_hipTexRefGetMaxAnisotropy_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetMipmapFilterMode()
#define INIT_hipTexRefGetMipmapFilterMode_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetMipmapLevelBias()
#define INIT_hipTexRefGetMipmapLevelBias_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetMipmapLevelClamp()
#define INIT_hipTexRefGetMipmapLevelClamp_CB_ARGS_DATA(cb_data) {};
// hipTexRefGetMipmappedArray()
#define INIT_hipTexRefGetMipmappedArray_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetAddress()
#define INIT_hipTexRefSetAddress_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetAddress2D()
#define INIT_hipTexRefSetAddress2D_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetAddressMode()
#define INIT_hipTexRefSetAddressMode_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetArray()
#define INIT_hipTexRefSetArray_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetBorderColor()
#define INIT_hipTexRefSetBorderColor_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetFilterMode()
#define INIT_hipTexRefSetFilterMode_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetFlags()
#define INIT_hipTexRefSetFlags_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetFormat()
#define INIT_hipTexRefSetFormat_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetMaxAnisotropy()
#define INIT_hipTexRefSetMaxAnisotropy_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetMipmapFilterMode()
#define INIT_hipTexRefSetMipmapFilterMode_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetMipmapLevelBias()
#define INIT_hipTexRefSetMipmapLevelBias_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetMipmapLevelClamp()
#define INIT_hipTexRefSetMipmapLevelClamp_CB_ARGS_DATA(cb_data) {};
// hipTexRefSetMipmappedArray()
#define INIT_hipTexRefSetMipmappedArray_CB_ARGS_DATA(cb_data) {};
// hipUnbindTexture()
#define INIT_hipUnbindTexture_CB_ARGS_DATA(cb_data) {};
// ihipModuleLaunchKernel()
#define INIT_ihipModuleLaunchKernel_CB_ARGS_DATA(cb_data) {};
#define INIT_NONE_CB_ARGS_DATA(cb_data) {};
#if HIP_PROF_HIP_API_STRING
// HIP API args filling helper
static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
switch (id) {
// __hipPopCallConfiguration[('dim3*', 'gridDim'), ('dim3*', 'blockDim'), ('size_t*', 'sharedMem'), ('hipStream_t*', 'stream')]
case HIP_API_ID___hipPopCallConfiguration:
if (data->args.__hipPopCallConfiguration.gridDim) data->args.__hipPopCallConfiguration.gridDim__val = *(data->args.__hipPopCallConfiguration.gridDim);
if (data->args.__hipPopCallConfiguration.blockDim) data->args.__hipPopCallConfiguration.blockDim__val = *(data->args.__hipPopCallConfiguration.blockDim);
if (data->args.__hipPopCallConfiguration.sharedMem) data->args.__hipPopCallConfiguration.sharedMem__val = *(data->args.__hipPopCallConfiguration.sharedMem);
if (data->args.__hipPopCallConfiguration.stream) data->args.__hipPopCallConfiguration.stream__val = *(data->args.__hipPopCallConfiguration.stream);
break;
// __hipPushCallConfiguration[('dim3', 'gridDim'), ('dim3', 'blockDim'), ('size_t', 'sharedMem'), ('hipStream_t', 'stream')]
case HIP_API_ID___hipPushCallConfiguration:
break;
// hipArray3DCreate[('hipArray**', 'array'), ('const HIP_ARRAY3D_DESCRIPTOR*', 'pAllocateArray')]
case HIP_API_ID_hipArray3DCreate:
if (data->args.hipArray3DCreate.array) data->args.hipArray3DCreate.array__val = *(data->args.hipArray3DCreate.array);
if (data->args.hipArray3DCreate.pAllocateArray) data->args.hipArray3DCreate.pAllocateArray__val = *(data->args.hipArray3DCreate.pAllocateArray);
break;
// hipArrayCreate[('hipArray**', 'pHandle'), ('const HIP_ARRAY_DESCRIPTOR*', 'pAllocateArray')]
case HIP_API_ID_hipArrayCreate:
if (data->args.hipArrayCreate.pHandle) data->args.hipArrayCreate.pHandle__val = *(data->args.hipArrayCreate.pHandle);
if (data->args.hipArrayCreate.pAllocateArray) data->args.hipArrayCreate.pAllocateArray__val = *(data->args.hipArrayCreate.pAllocateArray);
break;
// hipArrayDestroy[('hipArray*', 'array')]
case HIP_API_ID_hipArrayDestroy:
if (data->args.hipArrayDestroy.array) data->args.hipArrayDestroy.array__val = *(data->args.hipArrayDestroy.array);
break;
// hipChooseDevice[('int*', 'device'), ('const hipDeviceProp_t*', 'prop')]
case HIP_API_ID_hipChooseDevice:
if (data->args.hipChooseDevice.device) data->args.hipChooseDevice.device__val = *(data->args.hipChooseDevice.device);
if (data->args.hipChooseDevice.prop) data->args.hipChooseDevice.prop__val = *(data->args.hipChooseDevice.prop);
break;
// hipConfigureCall[('dim3', 'gridDim'), ('dim3', 'blockDim'), ('size_t', 'sharedMem'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipConfigureCall:
break;
// hipCtxCreate[('hipCtx_t*', 'ctx'), ('unsigned int', 'flags'), ('hipDevice_t', 'device')]
case HIP_API_ID_hipCtxCreate:
if (data->args.hipCtxCreate.ctx) data->args.hipCtxCreate.ctx__val = *(data->args.hipCtxCreate.ctx);
break;
// hipCtxDestroy[('hipCtx_t', 'ctx')]
case HIP_API_ID_hipCtxDestroy:
break;
// hipCtxDisablePeerAccess[('hipCtx_t', 'peerCtx')]
case HIP_API_ID_hipCtxDisablePeerAccess:
break;
// hipCtxEnablePeerAccess[('hipCtx_t', 'peerCtx'), ('unsigned int', 'flags')]
case HIP_API_ID_hipCtxEnablePeerAccess:
break;
// hipCtxGetApiVersion[('hipCtx_t', 'ctx'), ('int*', 'apiVersion')]
case HIP_API_ID_hipCtxGetApiVersion:
if (data->args.hipCtxGetApiVersion.apiVersion) data->args.hipCtxGetApiVersion.apiVersion__val = *(data->args.hipCtxGetApiVersion.apiVersion);
break;
// hipCtxGetCacheConfig[('hipFuncCache_t*', 'cacheConfig')]
case HIP_API_ID_hipCtxGetCacheConfig:
if (data->args.hipCtxGetCacheConfig.cacheConfig) data->args.hipCtxGetCacheConfig.cacheConfig__val = *(data->args.hipCtxGetCacheConfig.cacheConfig);
break;
// hipCtxGetCurrent[('hipCtx_t*', 'ctx')]
case HIP_API_ID_hipCtxGetCurrent:
if (data->args.hipCtxGetCurrent.ctx) data->args.hipCtxGetCurrent.ctx__val = *(data->args.hipCtxGetCurrent.ctx);
break;
// hipCtxGetDevice[('hipDevice_t*', 'device')]
case HIP_API_ID_hipCtxGetDevice:
if (data->args.hipCtxGetDevice.device) data->args.hipCtxGetDevice.device__val = *(data->args.hipCtxGetDevice.device);
break;
// hipCtxGetFlags[('unsigned int*', 'flags')]
case HIP_API_ID_hipCtxGetFlags:
if (data->args.hipCtxGetFlags.flags) data->args.hipCtxGetFlags.flags__val = *(data->args.hipCtxGetFlags.flags);
break;
// hipCtxGetSharedMemConfig[('hipSharedMemConfig*', 'pConfig')]
case HIP_API_ID_hipCtxGetSharedMemConfig:
if (data->args.hipCtxGetSharedMemConfig.pConfig) data->args.hipCtxGetSharedMemConfig.pConfig__val = *(data->args.hipCtxGetSharedMemConfig.pConfig);
break;
// hipCtxPopCurrent[('hipCtx_t*', 'ctx')]
case HIP_API_ID_hipCtxPopCurrent:
if (data->args.hipCtxPopCurrent.ctx) data->args.hipCtxPopCurrent.ctx__val = *(data->args.hipCtxPopCurrent.ctx);
break;
// hipCtxPushCurrent[('hipCtx_t', 'ctx')]
case HIP_API_ID_hipCtxPushCurrent:
break;
// hipCtxSetCacheConfig[('hipFuncCache_t', 'cacheConfig')]
case HIP_API_ID_hipCtxSetCacheConfig:
break;
// hipCtxSetCurrent[('hipCtx_t', 'ctx')]
case HIP_API_ID_hipCtxSetCurrent:
break;
// hipCtxSetSharedMemConfig[('hipSharedMemConfig', 'config')]
case HIP_API_ID_hipCtxSetSharedMemConfig:
break;
// hipCtxSynchronize[]
case HIP_API_ID_hipCtxSynchronize:
break;
// hipDestroyExternalMemory[('hipExternalMemory_t', 'extMem')]
case HIP_API_ID_hipDestroyExternalMemory:
break;
// hipDestroyExternalSemaphore[('hipExternalSemaphore_t', 'extSem')]
case HIP_API_ID_hipDestroyExternalSemaphore:
break;
// hipDeviceCanAccessPeer[('int*', 'canAccessPeer'), ('int', 'deviceId'), ('int', 'peerDeviceId')]
case HIP_API_ID_hipDeviceCanAccessPeer:
if (data->args.hipDeviceCanAccessPeer.canAccessPeer) data->args.hipDeviceCanAccessPeer.canAccessPeer__val = *(data->args.hipDeviceCanAccessPeer.canAccessPeer);
break;
// hipDeviceComputeCapability[('int*', 'major'), ('int*', 'minor'), ('hipDevice_t', 'device')]
case HIP_API_ID_hipDeviceComputeCapability:
if (data->args.hipDeviceComputeCapability.major) data->args.hipDeviceComputeCapability.major__val = *(data->args.hipDeviceComputeCapability.major);
if (data->args.hipDeviceComputeCapability.minor) data->args.hipDeviceComputeCapability.minor__val = *(data->args.hipDeviceComputeCapability.minor);
break;
// hipDeviceDisablePeerAccess[('int', 'peerDeviceId')]
case HIP_API_ID_hipDeviceDisablePeerAccess:
break;
// hipDeviceEnablePeerAccess[('int', 'peerDeviceId'), ('unsigned int', 'flags')]
case HIP_API_ID_hipDeviceEnablePeerAccess:
break;
// hipDeviceGet[('hipDevice_t*', 'device'), ('int', 'ordinal')]
case HIP_API_ID_hipDeviceGet:
if (data->args.hipDeviceGet.device) data->args.hipDeviceGet.device__val = *(data->args.hipDeviceGet.device);
break;
// hipDeviceGetAttribute[('int*', 'pi'), ('hipDeviceAttribute_t', 'attr'), ('int', 'deviceId')]
case HIP_API_ID_hipDeviceGetAttribute:
if (data->args.hipDeviceGetAttribute.pi) data->args.hipDeviceGetAttribute.pi__val = *(data->args.hipDeviceGetAttribute.pi);
break;
// hipDeviceGetByPCIBusId[('int*', 'device'), ('const char*', 'pciBusId')]
case HIP_API_ID_hipDeviceGetByPCIBusId:
if (data->args.hipDeviceGetByPCIBusId.device) data->args.hipDeviceGetByPCIBusId.device__val = *(data->args.hipDeviceGetByPCIBusId.device);
if (data->args.hipDeviceGetByPCIBusId.pciBusId) data->args.hipDeviceGetByPCIBusId.pciBusId__val = *(data->args.hipDeviceGetByPCIBusId.pciBusId);
break;
// hipDeviceGetCacheConfig[('hipFuncCache_t*', 'cacheConfig')]
case HIP_API_ID_hipDeviceGetCacheConfig:
if (data->args.hipDeviceGetCacheConfig.cacheConfig) data->args.hipDeviceGetCacheConfig.cacheConfig__val = *(data->args.hipDeviceGetCacheConfig.cacheConfig);
break;
// hipDeviceGetLimit[('size_t*', 'pValue'), ('hipLimit_t', 'limit')]
case HIP_API_ID_hipDeviceGetLimit:
if (data->args.hipDeviceGetLimit.pValue) data->args.hipDeviceGetLimit.pValue__val = *(data->args.hipDeviceGetLimit.pValue);
break;
// hipDeviceGetName[('char*', 'name'), ('int', 'len'), ('hipDevice_t', 'device')]
case HIP_API_ID_hipDeviceGetName:
data->args.hipDeviceGetName.name = (data->args.hipDeviceGetName.name) ? strdup(data->args.hipDeviceGetName.name) : NULL;
break;
// hipDeviceGetP2PAttribute[('int*', 'value'), ('hipDeviceP2PAttr', 'attr'), ('int', 'srcDevice'), ('int', 'dstDevice')]
case HIP_API_ID_hipDeviceGetP2PAttribute:
if (data->args.hipDeviceGetP2PAttribute.value) data->args.hipDeviceGetP2PAttribute.value__val = *(data->args.hipDeviceGetP2PAttribute.value);
break;
// hipDeviceGetPCIBusId[('char*', 'pciBusId'), ('int', 'len'), ('int', 'device')]
case HIP_API_ID_hipDeviceGetPCIBusId:
data->args.hipDeviceGetPCIBusId.pciBusId = (data->args.hipDeviceGetPCIBusId.pciBusId) ? strdup(data->args.hipDeviceGetPCIBusId.pciBusId) : NULL;
break;
// hipDeviceGetSharedMemConfig[('hipSharedMemConfig*', 'pConfig')]
case HIP_API_ID_hipDeviceGetSharedMemConfig:
if (data->args.hipDeviceGetSharedMemConfig.pConfig) data->args.hipDeviceGetSharedMemConfig.pConfig__val = *(data->args.hipDeviceGetSharedMemConfig.pConfig);
break;
// hipDeviceGetStreamPriorityRange[('int*', 'leastPriority'), ('int*', 'greatestPriority')]
case HIP_API_ID_hipDeviceGetStreamPriorityRange:
if (data->args.hipDeviceGetStreamPriorityRange.leastPriority) data->args.hipDeviceGetStreamPriorityRange.leastPriority__val = *(data->args.hipDeviceGetStreamPriorityRange.leastPriority);
if (data->args.hipDeviceGetStreamPriorityRange.greatestPriority) data->args.hipDeviceGetStreamPriorityRange.greatestPriority__val = *(data->args.hipDeviceGetStreamPriorityRange.greatestPriority);
break;
// hipDevicePrimaryCtxGetState[('hipDevice_t', 'dev'), ('unsigned int*', 'flags'), ('int*', 'active')]
case HIP_API_ID_hipDevicePrimaryCtxGetState:
if (data->args.hipDevicePrimaryCtxGetState.flags) data->args.hipDevicePrimaryCtxGetState.flags__val = *(data->args.hipDevicePrimaryCtxGetState.flags);
if (data->args.hipDevicePrimaryCtxGetState.active) data->args.hipDevicePrimaryCtxGetState.active__val = *(data->args.hipDevicePrimaryCtxGetState.active);
break;
// hipDevicePrimaryCtxRelease[('hipDevice_t', 'dev')]
case HIP_API_ID_hipDevicePrimaryCtxRelease:
break;
// hipDevicePrimaryCtxReset[('hipDevice_t', 'dev')]
case HIP_API_ID_hipDevicePrimaryCtxReset:
break;
// hipDevicePrimaryCtxRetain[('hipCtx_t*', 'pctx'), ('hipDevice_t', 'dev')]
case HIP_API_ID_hipDevicePrimaryCtxRetain:
if (data->args.hipDevicePrimaryCtxRetain.pctx) data->args.hipDevicePrimaryCtxRetain.pctx__val = *(data->args.hipDevicePrimaryCtxRetain.pctx);
break;
// hipDevicePrimaryCtxSetFlags[('hipDevice_t', 'dev'), ('unsigned int', 'flags')]
case HIP_API_ID_hipDevicePrimaryCtxSetFlags:
break;
// hipDeviceReset[]
case HIP_API_ID_hipDeviceReset:
break;
// hipDeviceSetCacheConfig[('hipFuncCache_t', 'cacheConfig')]
case HIP_API_ID_hipDeviceSetCacheConfig:
break;
// hipDeviceSetSharedMemConfig[('hipSharedMemConfig', 'config')]
case HIP_API_ID_hipDeviceSetSharedMemConfig:
break;
// hipDeviceSynchronize[]
case HIP_API_ID_hipDeviceSynchronize:
break;
// hipDeviceTotalMem[('size_t*', 'bytes'), ('hipDevice_t', 'device')]
case HIP_API_ID_hipDeviceTotalMem:
if (data->args.hipDeviceTotalMem.bytes) data->args.hipDeviceTotalMem.bytes__val = *(data->args.hipDeviceTotalMem.bytes);
break;
// hipDriverGetVersion[('int*', 'driverVersion')]
case HIP_API_ID_hipDriverGetVersion:
if (data->args.hipDriverGetVersion.driverVersion) data->args.hipDriverGetVersion.driverVersion__val = *(data->args.hipDriverGetVersion.driverVersion);
break;
// hipDrvMemcpy2DUnaligned[('const hip_Memcpy2D*', 'pCopy')]
case HIP_API_ID_hipDrvMemcpy2DUnaligned:
if (data->args.hipDrvMemcpy2DUnaligned.pCopy) data->args.hipDrvMemcpy2DUnaligned.pCopy__val = *(data->args.hipDrvMemcpy2DUnaligned.pCopy);
break;
// hipDrvMemcpy3D[('const HIP_MEMCPY3D*', 'pCopy')]
case HIP_API_ID_hipDrvMemcpy3D:
if (data->args.hipDrvMemcpy3D.pCopy) data->args.hipDrvMemcpy3D.pCopy__val = *(data->args.hipDrvMemcpy3D.pCopy);
break;
// hipDrvMemcpy3DAsync[('const HIP_MEMCPY3D*', 'pCopy'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipDrvMemcpy3DAsync:
if (data->args.hipDrvMemcpy3DAsync.pCopy) data->args.hipDrvMemcpy3DAsync.pCopy__val = *(data->args.hipDrvMemcpy3DAsync.pCopy);
break;
// hipEventCreate[('hipEvent_t*', 'event')]
case HIP_API_ID_hipEventCreate:
if (data->args.hipEventCreate.event) data->args.hipEventCreate.event__val = *(data->args.hipEventCreate.event);
break;
// hipEventCreateWithFlags[('hipEvent_t*', 'event'), ('unsigned int', 'flags')]
case HIP_API_ID_hipEventCreateWithFlags:
if (data->args.hipEventCreateWithFlags.event) data->args.hipEventCreateWithFlags.event__val = *(data->args.hipEventCreateWithFlags.event);
break;
// hipEventDestroy[('hipEvent_t', 'event')]
case HIP_API_ID_hipEventDestroy:
break;
// hipEventElapsedTime[('float*', 'ms'), ('hipEvent_t', 'start'), ('hipEvent_t', 'stop')]
case HIP_API_ID_hipEventElapsedTime:
if (data->args.hipEventElapsedTime.ms) data->args.hipEventElapsedTime.ms__val = *(data->args.hipEventElapsedTime.ms);
break;
// hipEventQuery[('hipEvent_t', 'event')]
case HIP_API_ID_hipEventQuery:
break;
// hipEventRecord[('hipEvent_t', 'event'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipEventRecord:
break;
// hipEventSynchronize[('hipEvent_t', 'event')]
case HIP_API_ID_hipEventSynchronize:
break;
// hipExtGetLinkTypeAndHopCount[('int', 'device1'), ('int', 'device2'), ('unsigned int*', 'linktype'), ('unsigned int*', 'hopcount')]
case HIP_API_ID_hipExtGetLinkTypeAndHopCount:
if (data->args.hipExtGetLinkTypeAndHopCount.linktype) data->args.hipExtGetLinkTypeAndHopCount.linktype__val = *(data->args.hipExtGetLinkTypeAndHopCount.linktype);
if (data->args.hipExtGetLinkTypeAndHopCount.hopcount) data->args.hipExtGetLinkTypeAndHopCount.hopcount__val = *(data->args.hipExtGetLinkTypeAndHopCount.hopcount);
break;
// hipExtLaunchKernel[('const void*', 'function_address'), ('dim3', 'numBlocks'), ('dim3', 'dimBlocks'), ('void**', 'args'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'stream'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent'), ('int', 'flags')]
case HIP_API_ID_hipExtLaunchKernel:
if (data->args.hipExtLaunchKernel.args) data->args.hipExtLaunchKernel.args__val = *(data->args.hipExtLaunchKernel.args);
break;
// hipExtLaunchMultiKernelMultiDevice[('hipLaunchParams*', 'launchParamsList'), ('int', 'numDevices'), ('unsigned int', 'flags')]
case HIP_API_ID_hipExtLaunchMultiKernelMultiDevice:
if (data->args.hipExtLaunchMultiKernelMultiDevice.launchParamsList) data->args.hipExtLaunchMultiKernelMultiDevice.launchParamsList__val = *(data->args.hipExtLaunchMultiKernelMultiDevice.launchParamsList);
break;
// hipExtMallocWithFlags[('void**', 'ptr'), ('size_t', 'sizeBytes'), ('unsigned int', 'flags')]
case HIP_API_ID_hipExtMallocWithFlags:
if (data->args.hipExtMallocWithFlags.ptr) data->args.hipExtMallocWithFlags.ptr__val = *(data->args.hipExtMallocWithFlags.ptr);
break;
// hipExtModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'globalWorkSizeX'), ('unsigned int', 'globalWorkSizeY'), ('unsigned int', 'globalWorkSizeZ'), ('unsigned int', 'localWorkSizeX'), ('unsigned int', 'localWorkSizeY'), ('unsigned int', 'localWorkSizeZ'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'hStream'), ('void**', 'kernelParams'), ('void**', 'extra'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent'), ('unsigned int', 'flags')]
case HIP_API_ID_hipExtModuleLaunchKernel:
if (data->args.hipExtModuleLaunchKernel.kernelParams) data->args.hipExtModuleLaunchKernel.kernelParams__val = *(data->args.hipExtModuleLaunchKernel.kernelParams);
if (data->args.hipExtModuleLaunchKernel.extra) data->args.hipExtModuleLaunchKernel.extra__val = *(data->args.hipExtModuleLaunchKernel.extra);
break;
// hipExtStreamCreateWithCUMask[('hipStream_t*', 'stream'), ('unsigned int', 'cuMaskSize'), ('const unsigned int*', 'cuMask')]
case HIP_API_ID_hipExtStreamCreateWithCUMask:
if (data->args.hipExtStreamCreateWithCUMask.stream) data->args.hipExtStreamCreateWithCUMask.stream__val = *(data->args.hipExtStreamCreateWithCUMask.stream);
if (data->args.hipExtStreamCreateWithCUMask.cuMask) data->args.hipExtStreamCreateWithCUMask.cuMask__val = *(data->args.hipExtStreamCreateWithCUMask.cuMask);
break;
// hipExtStreamGetCUMask[('hipStream_t', 'stream'), ('unsigned int', 'cuMaskSize'), ('unsigned int*', 'cuMask')]
case HIP_API_ID_hipExtStreamGetCUMask:
if (data->args.hipExtStreamGetCUMask.cuMask) data->args.hipExtStreamGetCUMask.cuMask__val = *(data->args.hipExtStreamGetCUMask.cuMask);
break;
// hipExternalMemoryGetMappedBuffer[('void**', 'devPtr'), ('hipExternalMemory_t', 'extMem'), ('const hipExternalMemoryBufferDesc*', 'bufferDesc')]
case HIP_API_ID_hipExternalMemoryGetMappedBuffer:
if (data->args.hipExternalMemoryGetMappedBuffer.devPtr) data->args.hipExternalMemoryGetMappedBuffer.devPtr__val = *(data->args.hipExternalMemoryGetMappedBuffer.devPtr);
if (data->args.hipExternalMemoryGetMappedBuffer.bufferDesc) data->args.hipExternalMemoryGetMappedBuffer.bufferDesc__val = *(data->args.hipExternalMemoryGetMappedBuffer.bufferDesc);
break;
// hipFree[('void*', 'ptr')]
case HIP_API_ID_hipFree:
break;
// hipFreeArray[('hipArray*', 'array')]
case HIP_API_ID_hipFreeArray:
if (data->args.hipFreeArray.array) data->args.hipFreeArray.array__val = *(data->args.hipFreeArray.array);
break;
// hipFreeHost[('void*', 'ptr')]
case HIP_API_ID_hipFreeHost:
break;
// hipFreeMipmappedArray[('hipMipmappedArray_t', 'mipmappedArray')]
case HIP_API_ID_hipFreeMipmappedArray:
break;
// hipFuncGetAttribute[('int*', 'value'), ('hipFunction_attribute', 'attrib'), ('hipFunction_t', 'hfunc')]
case HIP_API_ID_hipFuncGetAttribute:
if (data->args.hipFuncGetAttribute.value) data->args.hipFuncGetAttribute.value__val = *(data->args.hipFuncGetAttribute.value);
break;
// hipFuncGetAttributes[('hipFuncAttributes*', 'attr'), ('const void*', 'func')]
case HIP_API_ID_hipFuncGetAttributes:
if (data->args.hipFuncGetAttributes.attr) data->args.hipFuncGetAttributes.attr__val = *(data->args.hipFuncGetAttributes.attr);
break;
// hipFuncSetAttribute[('const void*', 'func'), ('hipFuncAttribute', 'attr'), ('int', 'value')]
case HIP_API_ID_hipFuncSetAttribute:
break;
// hipFuncSetCacheConfig[('const void*', 'func'), ('hipFuncCache_t', 'config')]
case HIP_API_ID_hipFuncSetCacheConfig:
break;
// hipFuncSetSharedMemConfig[('const void*', 'func'), ('hipSharedMemConfig', 'config')]
case HIP_API_ID_hipFuncSetSharedMemConfig:
break;
// hipGetDevice[('int*', 'deviceId')]
case HIP_API_ID_hipGetDevice:
if (data->args.hipGetDevice.deviceId) data->args.hipGetDevice.deviceId__val = *(data->args.hipGetDevice.deviceId);
break;
// hipGetDeviceCount[('int*', 'count')]
case HIP_API_ID_hipGetDeviceCount:
if (data->args.hipGetDeviceCount.count) data->args.hipGetDeviceCount.count__val = *(data->args.hipGetDeviceCount.count);
break;
// hipGetDeviceFlags[('unsigned int*', 'flags')]
case HIP_API_ID_hipGetDeviceFlags:
if (data->args.hipGetDeviceFlags.flags) data->args.hipGetDeviceFlags.flags__val = *(data->args.hipGetDeviceFlags.flags);
break;
// hipGetDeviceProperties[('hipDeviceProp_t*', 'props'), ('hipDevice_t', 'device')]
case HIP_API_ID_hipGetDeviceProperties:
if (data->args.hipGetDeviceProperties.props) data->args.hipGetDeviceProperties.props__val = *(data->args.hipGetDeviceProperties.props);
break;
// hipGetErrorName[]
case HIP_API_ID_hipGetErrorName:
break;
// hipGetErrorString[]
case HIP_API_ID_hipGetErrorString:
break;
// hipGetLastError[]
case HIP_API_ID_hipGetLastError:
break;
// hipGetMipmappedArrayLevel[('hipArray_t*', 'levelArray'), ('hipMipmappedArray_const_t', 'mipmappedArray'), ('unsigned int', 'level')]
case HIP_API_ID_hipGetMipmappedArrayLevel:
if (data->args.hipGetMipmappedArrayLevel.levelArray) data->args.hipGetMipmappedArrayLevel.levelArray__val = *(data->args.hipGetMipmappedArrayLevel.levelArray);
break;
// hipGetSymbolAddress[('void**', 'devPtr'), ('const void*', 'symbol')]
case HIP_API_ID_hipGetSymbolAddress:
if (data->args.hipGetSymbolAddress.devPtr) data->args.hipGetSymbolAddress.devPtr__val = *(data->args.hipGetSymbolAddress.devPtr);
break;
// hipGetSymbolSize[('size_t*', 'size'), ('const void*', 'symbol')]
case HIP_API_ID_hipGetSymbolSize:
if (data->args.hipGetSymbolSize.size) data->args.hipGetSymbolSize.size__val = *(data->args.hipGetSymbolSize.size);
break;
// hipHccModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'globalWorkSizeX'), ('unsigned int', 'globalWorkSizeY'), ('unsigned int', 'globalWorkSizeZ'), ('unsigned int', 'blockDimX'), ('unsigned int', 'blockDimY'), ('unsigned int', 'blockDimZ'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'hStream'), ('void**', 'kernelParams'), ('void**', 'extra'), ('hipEvent_t', 'startEvent'), ('hipEvent_t', 'stopEvent')]
case HIP_API_ID_hipHccModuleLaunchKernel:
if (data->args.hipHccModuleLaunchKernel.kernelParams) data->args.hipHccModuleLaunchKernel.kernelParams__val = *(data->args.hipHccModuleLaunchKernel.kernelParams);
if (data->args.hipHccModuleLaunchKernel.extra) data->args.hipHccModuleLaunchKernel.extra__val = *(data->args.hipHccModuleLaunchKernel.extra);
break;
// hipHostAlloc[('void**', 'ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
case HIP_API_ID_hipHostAlloc:
if (data->args.hipHostAlloc.ptr) data->args.hipHostAlloc.ptr__val = *(data->args.hipHostAlloc.ptr);
break;
// hipHostFree[('void*', 'ptr')]
case HIP_API_ID_hipHostFree:
break;
// hipHostGetDevicePointer[('void**', 'devPtr'), ('void*', 'hstPtr'), ('unsigned int', 'flags')]
case HIP_API_ID_hipHostGetDevicePointer:
if (data->args.hipHostGetDevicePointer.devPtr) data->args.hipHostGetDevicePointer.devPtr__val = *(data->args.hipHostGetDevicePointer.devPtr);
break;
// hipHostGetFlags[('unsigned int*', 'flagsPtr'), ('void*', 'hostPtr')]
case HIP_API_ID_hipHostGetFlags:
if (data->args.hipHostGetFlags.flagsPtr) data->args.hipHostGetFlags.flagsPtr__val = *(data->args.hipHostGetFlags.flagsPtr);
break;
// hipHostMalloc[('void**', 'ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
case HIP_API_ID_hipHostMalloc:
if (data->args.hipHostMalloc.ptr) data->args.hipHostMalloc.ptr__val = *(data->args.hipHostMalloc.ptr);
break;
// hipHostRegister[('void*', 'hostPtr'), ('size_t', 'sizeBytes'), ('unsigned int', 'flags')]
case HIP_API_ID_hipHostRegister:
break;
// hipHostUnregister[('void*', 'hostPtr')]
case HIP_API_ID_hipHostUnregister:
break;
// hipImportExternalMemory[('hipExternalMemory_t*', 'extMem_out'), ('const hipExternalMemoryHandleDesc*', 'memHandleDesc')]
case HIP_API_ID_hipImportExternalMemory:
if (data->args.hipImportExternalMemory.extMem_out) data->args.hipImportExternalMemory.extMem_out__val = *(data->args.hipImportExternalMemory.extMem_out);
if (data->args.hipImportExternalMemory.memHandleDesc) data->args.hipImportExternalMemory.memHandleDesc__val = *(data->args.hipImportExternalMemory.memHandleDesc);
break;
// hipImportExternalSemaphore[('hipExternalSemaphore_t*', 'extSem_out'), ('const hipExternalSemaphoreHandleDesc*', 'semHandleDesc')]
case HIP_API_ID_hipImportExternalSemaphore:
if (data->args.hipImportExternalSemaphore.extSem_out) data->args.hipImportExternalSemaphore.extSem_out__val = *(data->args.hipImportExternalSemaphore.extSem_out);
if (data->args.hipImportExternalSemaphore.semHandleDesc) data->args.hipImportExternalSemaphore.semHandleDesc__val = *(data->args.hipImportExternalSemaphore.semHandleDesc);
break;
// hipInit[('unsigned int', 'flags')]
case HIP_API_ID_hipInit:
break;
// hipIpcCloseMemHandle[('void*', 'devPtr')]
case HIP_API_ID_hipIpcCloseMemHandle:
break;
// hipIpcGetEventHandle[('hipIpcEventHandle_t*', 'handle'), ('hipEvent_t', 'event')]
case HIP_API_ID_hipIpcGetEventHandle:
if (data->args.hipIpcGetEventHandle.handle) data->args.hipIpcGetEventHandle.handle__val = *(data->args.hipIpcGetEventHandle.handle);
break;
// hipIpcGetMemHandle[('hipIpcMemHandle_t*', 'handle'), ('void*', 'devPtr')]
case HIP_API_ID_hipIpcGetMemHandle:
if (data->args.hipIpcGetMemHandle.handle) data->args.hipIpcGetMemHandle.handle__val = *(data->args.hipIpcGetMemHandle.handle);
break;
// hipIpcOpenEventHandle[('hipEvent_t*', 'event'), ('hipIpcEventHandle_t', 'handle')]
case HIP_API_ID_hipIpcOpenEventHandle:
if (data->args.hipIpcOpenEventHandle.event) data->args.hipIpcOpenEventHandle.event__val = *(data->args.hipIpcOpenEventHandle.event);
break;
// hipIpcOpenMemHandle[('void**', 'devPtr'), ('hipIpcMemHandle_t', 'handle'), ('unsigned int', 'flags')]
case HIP_API_ID_hipIpcOpenMemHandle:
if (data->args.hipIpcOpenMemHandle.devPtr) data->args.hipIpcOpenMemHandle.devPtr__val = *(data->args.hipIpcOpenMemHandle.devPtr);
break;
// hipLaunchByPtr[('const void*', 'hostFunction')]
case HIP_API_ID_hipLaunchByPtr:
break;
// hipLaunchCooperativeKernel[('const void*', 'f'), ('dim3', 'gridDim'), ('dim3', 'blockDimX'), ('void**', 'kernelParams'), ('unsigned int', 'sharedMemBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipLaunchCooperativeKernel:
if (data->args.hipLaunchCooperativeKernel.kernelParams) data->args.hipLaunchCooperativeKernel.kernelParams__val = *(data->args.hipLaunchCooperativeKernel.kernelParams);
break;
// hipLaunchCooperativeKernelMultiDevice[('hipLaunchParams*', 'launchParamsList'), ('int', 'numDevices'), ('unsigned int', 'flags')]
case HIP_API_ID_hipLaunchCooperativeKernelMultiDevice:
if (data->args.hipLaunchCooperativeKernelMultiDevice.launchParamsList) data->args.hipLaunchCooperativeKernelMultiDevice.launchParamsList__val = *(data->args.hipLaunchCooperativeKernelMultiDevice.launchParamsList);
break;
// hipLaunchKernel[('const void*', 'function_address'), ('dim3', 'numBlocks'), ('dim3', 'dimBlocks'), ('void**', 'args'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipLaunchKernel:
if (data->args.hipLaunchKernel.args) data->args.hipLaunchKernel.args__val = *(data->args.hipLaunchKernel.args);
break;
// hipMalloc[('void**', 'ptr'), ('size_t', 'size')]
case HIP_API_ID_hipMalloc:
if (data->args.hipMalloc.ptr) data->args.hipMalloc.ptr__val = *(data->args.hipMalloc.ptr);
break;
// hipMalloc3D[('hipPitchedPtr*', 'pitchedDevPtr'), ('hipExtent', 'extent')]
case HIP_API_ID_hipMalloc3D:
if (data->args.hipMalloc3D.pitchedDevPtr) data->args.hipMalloc3D.pitchedDevPtr__val = *(data->args.hipMalloc3D.pitchedDevPtr);
break;
// hipMalloc3DArray[('hipArray_t*', 'array'), ('const hipChannelFormatDesc*', 'desc'), ('hipExtent', 'extent'), ('unsigned int', 'flags')]
case HIP_API_ID_hipMalloc3DArray:
if (data->args.hipMalloc3DArray.array) data->args.hipMalloc3DArray.array__val = *(data->args.hipMalloc3DArray.array);
if (data->args.hipMalloc3DArray.desc) data->args.hipMalloc3DArray.desc__val = *(data->args.hipMalloc3DArray.desc);
break;
// hipMallocArray[('hipArray**', 'array'), ('const hipChannelFormatDesc*', 'desc'), ('size_t', 'width'), ('size_t', 'height'), ('unsigned int', 'flags')]
case HIP_API_ID_hipMallocArray:
if (data->args.hipMallocArray.array) data->args.hipMallocArray.array__val = *(data->args.hipMallocArray.array);
if (data->args.hipMallocArray.desc) data->args.hipMallocArray.desc__val = *(data->args.hipMallocArray.desc);
break;
// hipMallocHost[('void**', 'ptr'), ('size_t', 'size')]
case HIP_API_ID_hipMallocHost:
if (data->args.hipMallocHost.ptr) data->args.hipMallocHost.ptr__val = *(data->args.hipMallocHost.ptr);
break;
// hipMallocManaged[('void**', 'dev_ptr'), ('size_t', 'size'), ('unsigned int', 'flags')]
case HIP_API_ID_hipMallocManaged:
if (data->args.hipMallocManaged.dev_ptr) data->args.hipMallocManaged.dev_ptr__val = *(data->args.hipMallocManaged.dev_ptr);
break;
// hipMallocMipmappedArray[('hipMipmappedArray_t*', 'mipmappedArray'), ('const hipChannelFormatDesc*', 'desc'), ('hipExtent', 'extent'), ('unsigned int', 'numLevels'), ('unsigned int', 'flags')]
case HIP_API_ID_hipMallocMipmappedArray:
if (data->args.hipMallocMipmappedArray.mipmappedArray) data->args.hipMallocMipmappedArray.mipmappedArray__val = *(data->args.hipMallocMipmappedArray.mipmappedArray);
if (data->args.hipMallocMipmappedArray.desc) data->args.hipMallocMipmappedArray.desc__val = *(data->args.hipMallocMipmappedArray.desc);
break;
// hipMallocPitch[('void**', 'ptr'), ('size_t*', 'pitch'), ('size_t', 'width'), ('size_t', 'height')]
case HIP_API_ID_hipMallocPitch:
if (data->args.hipMallocPitch.ptr) data->args.hipMallocPitch.ptr__val = *(data->args.hipMallocPitch.ptr);
if (data->args.hipMallocPitch.pitch) data->args.hipMallocPitch.pitch__val = *(data->args.hipMallocPitch.pitch);
break;
// hipMemAdvise[('const void*', 'dev_ptr'), ('size_t', 'count'), ('hipMemoryAdvise', 'advice'), ('int', 'device')]
case HIP_API_ID_hipMemAdvise:
break;
// hipMemAllocHost[('void**', 'ptr'), ('size_t', 'size')]
case HIP_API_ID_hipMemAllocHost:
if (data->args.hipMemAllocHost.ptr) data->args.hipMemAllocHost.ptr__val = *(data->args.hipMemAllocHost.ptr);
break;
// hipMemAllocPitch[('hipDeviceptr_t*', 'dptr'), ('size_t*', 'pitch'), ('size_t', 'widthInBytes'), ('size_t', 'height'), ('unsigned int', 'elementSizeBytes')]
case HIP_API_ID_hipMemAllocPitch:
if (data->args.hipMemAllocPitch.dptr) data->args.hipMemAllocPitch.dptr__val = *(data->args.hipMemAllocPitch.dptr);
if (data->args.hipMemAllocPitch.pitch) data->args.hipMemAllocPitch.pitch__val = *(data->args.hipMemAllocPitch.pitch);
break;
// hipMemGetAddressRange[('hipDeviceptr_t*', 'pbase'), ('size_t*', 'psize'), ('hipDeviceptr_t', 'dptr')]
case HIP_API_ID_hipMemGetAddressRange:
if (data->args.hipMemGetAddressRange.pbase) data->args.hipMemGetAddressRange.pbase__val = *(data->args.hipMemGetAddressRange.pbase);
if (data->args.hipMemGetAddressRange.psize) data->args.hipMemGetAddressRange.psize__val = *(data->args.hipMemGetAddressRange.psize);
break;
// hipMemGetInfo[('size_t*', 'free'), ('size_t*', 'total')]
case HIP_API_ID_hipMemGetInfo:
if (data->args.hipMemGetInfo.free) data->args.hipMemGetInfo.free__val = *(data->args.hipMemGetInfo.free);
if (data->args.hipMemGetInfo.total) data->args.hipMemGetInfo.total__val = *(data->args.hipMemGetInfo.total);
break;
// hipMemPrefetchAsync[('const void*', 'dev_ptr'), ('size_t', 'count'), ('int', 'device'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemPrefetchAsync:
break;
// hipMemPtrGetInfo[('void*', 'ptr'), ('size_t*', 'size')]
case HIP_API_ID_hipMemPtrGetInfo:
if (data->args.hipMemPtrGetInfo.size) data->args.hipMemPtrGetInfo.size__val = *(data->args.hipMemPtrGetInfo.size);
break;
// hipMemRangeGetAttribute[('void*', 'data'), ('size_t', 'data_size'), ('hipMemRangeAttribute', 'attribute'), ('const void*', 'dev_ptr'), ('size_t', 'count')]
case HIP_API_ID_hipMemRangeGetAttribute:
break;
// hipMemRangeGetAttributes[('void**', 'data'), ('size_t*', 'data_sizes'), ('hipMemRangeAttribute*', 'attributes'), ('size_t', 'num_attributes'), ('const void*', 'dev_ptr'), ('size_t', 'count')]
case HIP_API_ID_hipMemRangeGetAttributes:
if (data->args.hipMemRangeGetAttributes.data) data->args.hipMemRangeGetAttributes.data__val = *(data->args.hipMemRangeGetAttributes.data);
if (data->args.hipMemRangeGetAttributes.data_sizes) data->args.hipMemRangeGetAttributes.data_sizes__val = *(data->args.hipMemRangeGetAttributes.data_sizes);
if (data->args.hipMemRangeGetAttributes.attributes) data->args.hipMemRangeGetAttributes.attributes__val = *(data->args.hipMemRangeGetAttributes.attributes);
break;
// hipMemcpy[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpy:
break;
// hipMemcpy2D[('void*', 'dst'), ('size_t', 'dpitch'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpy2D:
break;
// hipMemcpy2DAsync[('void*', 'dst'), ('size_t', 'dpitch'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpy2DAsync:
break;
// hipMemcpy2DFromArray[('void*', 'dst'), ('size_t', 'dpitch'), ('hipArray_const_t', 'src'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpy2DFromArray:
break;
// hipMemcpy2DFromArrayAsync[('void*', 'dst'), ('size_t', 'dpitch'), ('hipArray_const_t', 'src'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpy2DFromArrayAsync:
break;
// hipMemcpy2DToArray[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpy2DToArray:
if (data->args.hipMemcpy2DToArray.dst) data->args.hipMemcpy2DToArray.dst__val = *(data->args.hipMemcpy2DToArray.dst);
break;
// hipMemcpy2DToArrayAsync[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'spitch'), ('size_t', 'width'), ('size_t', 'height'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpy2DToArrayAsync:
if (data->args.hipMemcpy2DToArrayAsync.dst) data->args.hipMemcpy2DToArrayAsync.dst__val = *(data->args.hipMemcpy2DToArrayAsync.dst);
break;
// hipMemcpy3D[('const hipMemcpy3DParms*', 'p')]
case HIP_API_ID_hipMemcpy3D:
if (data->args.hipMemcpy3D.p) data->args.hipMemcpy3D.p__val = *(data->args.hipMemcpy3D.p);
break;
// hipMemcpy3DAsync[('const hipMemcpy3DParms*', 'p'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpy3DAsync:
if (data->args.hipMemcpy3DAsync.p) data->args.hipMemcpy3DAsync.p__val = *(data->args.hipMemcpy3DAsync.p);
break;
// hipMemcpyAsync[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyAsync:
break;
// hipMemcpyAtoH[('void*', 'dst'), ('hipArray*', 'srcArray'), ('size_t', 'srcOffset'), ('size_t', 'count')]
case HIP_API_ID_hipMemcpyAtoH:
if (data->args.hipMemcpyAtoH.srcArray) data->args.hipMemcpyAtoH.srcArray__val = *(data->args.hipMemcpyAtoH.srcArray);
break;
// hipMemcpyDtoD[('hipDeviceptr_t', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes')]
case HIP_API_ID_hipMemcpyDtoD:
break;
// hipMemcpyDtoDAsync[('hipDeviceptr_t', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyDtoDAsync:
break;
// hipMemcpyDtoH[('void*', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes')]
case HIP_API_ID_hipMemcpyDtoH:
break;
// hipMemcpyDtoHAsync[('void*', 'dst'), ('hipDeviceptr_t', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyDtoHAsync:
break;
// hipMemcpyFromArray[('void*', 'dst'), ('hipArray_const_t', 'srcArray'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('size_t', 'count'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpyFromArray:
break;
// hipMemcpyFromSymbol[('void*', 'dst'), ('const void*', 'symbol'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpyFromSymbol:
break;
// hipMemcpyFromSymbolAsync[('void*', 'dst'), ('const void*', 'symbol'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyFromSymbolAsync:
break;
// hipMemcpyHtoA[('hipArray*', 'dstArray'), ('size_t', 'dstOffset'), ('const void*', 'srcHost'), ('size_t', 'count')]
case HIP_API_ID_hipMemcpyHtoA:
if (data->args.hipMemcpyHtoA.dstArray) data->args.hipMemcpyHtoA.dstArray__val = *(data->args.hipMemcpyHtoA.dstArray);
break;
// hipMemcpyHtoD[('hipDeviceptr_t', 'dst'), ('void*', 'src'), ('size_t', 'sizeBytes')]
case HIP_API_ID_hipMemcpyHtoD:
break;
// hipMemcpyHtoDAsync[('hipDeviceptr_t', 'dst'), ('void*', 'src'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyHtoDAsync:
break;
// hipMemcpyParam2D[('const hip_Memcpy2D*', 'pCopy')]
case HIP_API_ID_hipMemcpyParam2D:
if (data->args.hipMemcpyParam2D.pCopy) data->args.hipMemcpyParam2D.pCopy__val = *(data->args.hipMemcpyParam2D.pCopy);
break;
// hipMemcpyParam2DAsync[('const hip_Memcpy2D*', 'pCopy'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyParam2DAsync:
if (data->args.hipMemcpyParam2DAsync.pCopy) data->args.hipMemcpyParam2DAsync.pCopy__val = *(data->args.hipMemcpyParam2DAsync.pCopy);
break;
// hipMemcpyPeer[('void*', 'dst'), ('int', 'dstDeviceId'), ('const void*', 'src'), ('int', 'srcDeviceId'), ('size_t', 'sizeBytes')]
case HIP_API_ID_hipMemcpyPeer:
break;
// hipMemcpyPeerAsync[('void*', 'dst'), ('int', 'dstDeviceId'), ('const void*', 'src'), ('int', 'srcDevice'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyPeerAsync:
break;
// hipMemcpyToArray[('hipArray*', 'dst'), ('size_t', 'wOffset'), ('size_t', 'hOffset'), ('const void*', 'src'), ('size_t', 'count'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpyToArray:
if (data->args.hipMemcpyToArray.dst) data->args.hipMemcpyToArray.dst__val = *(data->args.hipMemcpyToArray.dst);
break;
// hipMemcpyToSymbol[('const void*', 'symbol'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind')]
case HIP_API_ID_hipMemcpyToSymbol:
break;
// hipMemcpyToSymbolAsync[('const void*', 'symbol'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('size_t', 'offset'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyToSymbolAsync:
break;
// hipMemcpyWithStream[('void*', 'dst'), ('const void*', 'src'), ('size_t', 'sizeBytes'), ('hipMemcpyKind', 'kind'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemcpyWithStream:
break;
// hipMemset[('void*', 'dst'), ('int', 'value'), ('size_t', 'sizeBytes')]
case HIP_API_ID_hipMemset:
break;
// hipMemset2D[('void*', 'dst'), ('size_t', 'pitch'), ('int', 'value'), ('size_t', 'width'), ('size_t', 'height')]
case HIP_API_ID_hipMemset2D:
break;
// hipMemset2DAsync[('void*', 'dst'), ('size_t', 'pitch'), ('int', 'value'), ('size_t', 'width'), ('size_t', 'height'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemset2DAsync:
break;
// hipMemset3D[('hipPitchedPtr', 'pitchedDevPtr'), ('int', 'value'), ('hipExtent', 'extent')]
case HIP_API_ID_hipMemset3D:
break;
// hipMemset3DAsync[('hipPitchedPtr', 'pitchedDevPtr'), ('int', 'value'), ('hipExtent', 'extent'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemset3DAsync:
break;
// hipMemsetAsync[('void*', 'dst'), ('int', 'value'), ('size_t', 'sizeBytes'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemsetAsync:
break;
// hipMemsetD16[('hipDeviceptr_t', 'dest'), ('unsigned short', 'value'), ('size_t', 'count')]
case HIP_API_ID_hipMemsetD16:
break;
// hipMemsetD16Async[('hipDeviceptr_t', 'dest'), ('unsigned short', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemsetD16Async:
break;
// hipMemsetD32[('hipDeviceptr_t', 'dest'), ('int', 'value'), ('size_t', 'count')]
case HIP_API_ID_hipMemsetD32:
break;
// hipMemsetD32Async[('hipDeviceptr_t', 'dst'), ('int', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemsetD32Async:
break;
// hipMemsetD8[('hipDeviceptr_t', 'dest'), ('unsigned char', 'value'), ('size_t', 'count')]
case HIP_API_ID_hipMemsetD8:
break;
// hipMemsetD8Async[('hipDeviceptr_t', 'dest'), ('unsigned char', 'value'), ('size_t', 'count'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipMemsetD8Async:
break;
// hipModuleGetFunction[('hipFunction_t*', 'function'), ('hipModule_t', 'module'), ('const char*', 'kname')]
case HIP_API_ID_hipModuleGetFunction:
if (data->args.hipModuleGetFunction.function) data->args.hipModuleGetFunction.function__val = *(data->args.hipModuleGetFunction.function);
if (data->args.hipModuleGetFunction.kname) data->args.hipModuleGetFunction.kname__val = *(data->args.hipModuleGetFunction.kname);
break;
// hipModuleGetGlobal[('hipDeviceptr_t*', 'dptr'), ('size_t*', 'bytes'), ('hipModule_t', 'hmod'), ('const char*', 'name')]
case HIP_API_ID_hipModuleGetGlobal:
if (data->args.hipModuleGetGlobal.dptr) data->args.hipModuleGetGlobal.dptr__val = *(data->args.hipModuleGetGlobal.dptr);
if (data->args.hipModuleGetGlobal.bytes) data->args.hipModuleGetGlobal.bytes__val = *(data->args.hipModuleGetGlobal.bytes);
if (data->args.hipModuleGetGlobal.name) data->args.hipModuleGetGlobal.name__val = *(data->args.hipModuleGetGlobal.name);
break;
// hipModuleGetTexRef[('textureReference**', 'texRef'), ('hipModule_t', 'hmod'), ('const char*', 'name')]
case HIP_API_ID_hipModuleGetTexRef:
if (data->args.hipModuleGetTexRef.texRef) data->args.hipModuleGetTexRef.texRef__val = *(data->args.hipModuleGetTexRef.texRef);
if (data->args.hipModuleGetTexRef.name) data->args.hipModuleGetTexRef.name__val = *(data->args.hipModuleGetTexRef.name);
break;
// hipModuleLaunchKernel[('hipFunction_t', 'f'), ('unsigned int', 'gridDimX'), ('unsigned int', 'gridDimY'), ('unsigned int', 'gridDimZ'), ('unsigned int', 'blockDimX'), ('unsigned int', 'blockDimY'), ('unsigned int', 'blockDimZ'), ('unsigned int', 'sharedMemBytes'), ('hipStream_t', 'stream'), ('void**', 'kernelParams'), ('void**', 'extra')]
case HIP_API_ID_hipModuleLaunchKernel:
if (data->args.hipModuleLaunchKernel.kernelParams) data->args.hipModuleLaunchKernel.kernelParams__val = *(data->args.hipModuleLaunchKernel.kernelParams);
if (data->args.hipModuleLaunchKernel.extra) data->args.hipModuleLaunchKernel.extra__val = *(data->args.hipModuleLaunchKernel.extra);
break;
// hipModuleLoad[('hipModule_t*', 'module'), ('const char*', 'fname')]
case HIP_API_ID_hipModuleLoad:
if (data->args.hipModuleLoad.module) data->args.hipModuleLoad.module__val = *(data->args.hipModuleLoad.module);
if (data->args.hipModuleLoad.fname) data->args.hipModuleLoad.fname__val = *(data->args.hipModuleLoad.fname);
break;
// hipModuleLoadData[('hipModule_t*', 'module'), ('const void*', 'image')]
case HIP_API_ID_hipModuleLoadData:
if (data->args.hipModuleLoadData.module) data->args.hipModuleLoadData.module__val = *(data->args.hipModuleLoadData.module);
break;
// hipModuleLoadDataEx[('hipModule_t*', 'module'), ('const void*', 'image'), ('unsigned int', 'numOptions'), ('hipJitOption*', 'options'), ('void**', 'optionsValues')]
case HIP_API_ID_hipModuleLoadDataEx:
if (data->args.hipModuleLoadDataEx.module) data->args.hipModuleLoadDataEx.module__val = *(data->args.hipModuleLoadDataEx.module);
if (data->args.hipModuleLoadDataEx.options) data->args.hipModuleLoadDataEx.options__val = *(data->args.hipModuleLoadDataEx.options);
if (data->args.hipModuleLoadDataEx.optionsValues) data->args.hipModuleLoadDataEx.optionsValues__val = *(data->args.hipModuleLoadDataEx.optionsValues);
break;
// hipModuleOccupancyMaxActiveBlocksPerMultiprocessor[('int*', 'numBlocks'), ('hipFunction_t', 'f'), ('int', 'blockSize'), ('size_t', 'dynSharedMemPerBlk')]
case HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor:
if (data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks) data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks__val = *(data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks);
break;
// hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags[('int*', 'numBlocks'), ('hipFunction_t', 'f'), ('int', 'blockSize'), ('size_t', 'dynSharedMemPerBlk'), ('unsigned int', 'flags')]
case HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
if (data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks) data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks__val = *(data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks);
break;
// hipModuleOccupancyMaxPotentialBlockSize[('int*', 'gridSize'), ('int*', 'blockSize'), ('hipFunction_t', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('int', 'blockSizeLimit')]
case HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSize:
if (data->args.hipModuleOccupancyMaxPotentialBlockSize.gridSize) data->args.hipModuleOccupancyMaxPotentialBlockSize.gridSize__val = *(data->args.hipModuleOccupancyMaxPotentialBlockSize.gridSize);
if (data->args.hipModuleOccupancyMaxPotentialBlockSize.blockSize) data->args.hipModuleOccupancyMaxPotentialBlockSize.blockSize__val = *(data->args.hipModuleOccupancyMaxPotentialBlockSize.blockSize);
break;
// hipModuleOccupancyMaxPotentialBlockSizeWithFlags[('int*', 'gridSize'), ('int*', 'blockSize'), ('hipFunction_t', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('int', 'blockSizeLimit'), ('unsigned int', 'flags')]
case HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags:
if (data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.gridSize) data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.gridSize__val = *(data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.gridSize);
if (data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSize) data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSize__val = *(data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSize);
break;
// hipModuleUnload[('hipModule_t', 'module')]
case HIP_API_ID_hipModuleUnload:
break;
// hipOccupancyMaxActiveBlocksPerMultiprocessor[('int*', 'numBlocks'), ('const void*', 'f'), ('int', 'blockSize'), ('size_t', 'dynamicSMemSize')]
case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor:
if (data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks) data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks__val = *(data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks);
break;
// hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags[('int*', 'numBlocks'), ('const void*', 'f'), ('int', 'blockSize'), ('size_t', 'dynamicSMemSize'), ('unsigned int', 'flags')]
case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
if (data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks) data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks__val = *(data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks);
break;
// hipOccupancyMaxPotentialBlockSize[('int*', 'gridSize'), ('int*', 'blockSize'), ('const void*', 'f'), ('size_t', 'dynSharedMemPerBlk'), ('int', 'blockSizeLimit')]
case HIP_API_ID_hipOccupancyMaxPotentialBlockSize:
if (data->args.hipOccupancyMaxPotentialBlockSize.gridSize) data->args.hipOccupancyMaxPotentialBlockSize.gridSize__val = *(data->args.hipOccupancyMaxPotentialBlockSize.gridSize);
if (data->args.hipOccupancyMaxPotentialBlockSize.blockSize) data->args.hipOccupancyMaxPotentialBlockSize.blockSize__val = *(data->args.hipOccupancyMaxPotentialBlockSize.blockSize);
break;
// hipPeekAtLastError[]
case HIP_API_ID_hipPeekAtLastError:
break;
// hipPointerGetAttributes[('hipPointerAttribute_t*', 'attributes'), ('const void*', 'ptr')]
case HIP_API_ID_hipPointerGetAttributes:
if (data->args.hipPointerGetAttributes.attributes) data->args.hipPointerGetAttributes.attributes__val = *(data->args.hipPointerGetAttributes.attributes);
break;
// hipProfilerStart[]
case HIP_API_ID_hipProfilerStart:
break;
// hipProfilerStop[]
case HIP_API_ID_hipProfilerStop:
break;
// hipRuntimeGetVersion[('int*', 'runtimeVersion')]
case HIP_API_ID_hipRuntimeGetVersion:
if (data->args.hipRuntimeGetVersion.runtimeVersion) data->args.hipRuntimeGetVersion.runtimeVersion__val = *(data->args.hipRuntimeGetVersion.runtimeVersion);
break;
// hipSetDevice[('int', 'deviceId')]
case HIP_API_ID_hipSetDevice:
break;
// hipSetDeviceFlags[('unsigned int', 'flags')]
case HIP_API_ID_hipSetDeviceFlags:
break;
// hipSetupArgument[('const void*', 'arg'), ('size_t', 'size'), ('size_t', 'offset')]
case HIP_API_ID_hipSetupArgument:
break;
// hipSignalExternalSemaphoresAsync[('const hipExternalSemaphore_t*', 'extSemArray'), ('const hipExternalSemaphoreSignalParams*', 'paramsArray'), ('unsigned int', 'numExtSems'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipSignalExternalSemaphoresAsync:
if (data->args.hipSignalExternalSemaphoresAsync.extSemArray) data->args.hipSignalExternalSemaphoresAsync.extSemArray__val = *(data->args.hipSignalExternalSemaphoresAsync.extSemArray);
if (data->args.hipSignalExternalSemaphoresAsync.paramsArray) data->args.hipSignalExternalSemaphoresAsync.paramsArray__val = *(data->args.hipSignalExternalSemaphoresAsync.paramsArray);
break;
// hipStreamAddCallback[('hipStream_t', 'stream'), ('hipStreamCallback_t', 'callback'), ('void*', 'userData'), ('unsigned int', 'flags')]
case HIP_API_ID_hipStreamAddCallback:
break;
// hipStreamAttachMemAsync[('hipStream_t', 'stream'), ('void*', 'dev_ptr'), ('size_t', 'length'), ('unsigned int', 'flags')]
case HIP_API_ID_hipStreamAttachMemAsync:
break;
// hipStreamCreate[('hipStream_t*', 'stream')]
case HIP_API_ID_hipStreamCreate:
if (data->args.hipStreamCreate.stream) data->args.hipStreamCreate.stream__val = *(data->args.hipStreamCreate.stream);
break;
// hipStreamCreateWithFlags[('hipStream_t*', 'stream'), ('unsigned int', 'flags')]
case HIP_API_ID_hipStreamCreateWithFlags:
if (data->args.hipStreamCreateWithFlags.stream) data->args.hipStreamCreateWithFlags.stream__val = *(data->args.hipStreamCreateWithFlags.stream);
break;
// hipStreamCreateWithPriority[('hipStream_t*', 'stream'), ('unsigned int', 'flags'), ('int', 'priority')]
case HIP_API_ID_hipStreamCreateWithPriority:
if (data->args.hipStreamCreateWithPriority.stream) data->args.hipStreamCreateWithPriority.stream__val = *(data->args.hipStreamCreateWithPriority.stream);
break;
// hipStreamDestroy[('hipStream_t', 'stream')]
case HIP_API_ID_hipStreamDestroy:
break;
// hipStreamGetFlags[('hipStream_t', 'stream'), ('unsigned int*', 'flags')]
case HIP_API_ID_hipStreamGetFlags:
if (data->args.hipStreamGetFlags.flags) data->args.hipStreamGetFlags.flags__val = *(data->args.hipStreamGetFlags.flags);
break;
// hipStreamGetPriority[('hipStream_t', 'stream'), ('int*', 'priority')]
case HIP_API_ID_hipStreamGetPriority:
if (data->args.hipStreamGetPriority.priority) data->args.hipStreamGetPriority.priority__val = *(data->args.hipStreamGetPriority.priority);
break;
// hipStreamQuery[('hipStream_t', 'stream')]
case HIP_API_ID_hipStreamQuery:
break;
// hipStreamSynchronize[('hipStream_t', 'stream')]
case HIP_API_ID_hipStreamSynchronize:
break;
// hipStreamWaitEvent[('hipStream_t', 'stream'), ('hipEvent_t', 'event'), ('unsigned int', 'flags')]
case HIP_API_ID_hipStreamWaitEvent:
break;
// hipStreamWaitValue32[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int32_t', 'value'), ('unsigned int', 'flags'), ('unsigned int', 'mask')]
case HIP_API_ID_hipStreamWaitValue32:
break;
// hipStreamWaitValue64[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int64_t', 'value'), ('unsigned int', 'flags'), ('uint64_t', 'mask')]
case HIP_API_ID_hipStreamWaitValue64:
break;
// hipStreamWriteValue32[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int32_t', 'value'), ('unsigned int', 'flags')]
case HIP_API_ID_hipStreamWriteValue32:
break;
// hipStreamWriteValue64[('hipStream_t', 'stream'), ('void*', 'ptr'), ('int64_t', 'value'), ('unsigned int', 'flags')]
case HIP_API_ID_hipStreamWriteValue64:
break;
// hipWaitExternalSemaphoresAsync[('const hipExternalSemaphore_t*', 'extSemArray'), ('const hipExternalSemaphoreWaitParams*', 'paramsArray'), ('unsigned int', 'numExtSems'), ('hipStream_t', 'stream')]
case HIP_API_ID_hipWaitExternalSemaphoresAsync:
if (data->args.hipWaitExternalSemaphoresAsync.extSemArray) data->args.hipWaitExternalSemaphoresAsync.extSemArray__val = *(data->args.hipWaitExternalSemaphoresAsync.extSemArray);
if (data->args.hipWaitExternalSemaphoresAsync.paramsArray) data->args.hipWaitExternalSemaphoresAsync.paramsArray__val = *(data->args.hipWaitExternalSemaphoresAsync.paramsArray);
break;
default: break;
};
}
#include <sstream>
#include <string>
// HIP API string method, method name and parameters
static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* data) {
std::ostringstream oss;
switch (id) {
case HIP_API_ID___hipPopCallConfiguration:
oss << "__hipPopCallConfiguration(";
if (data->args.__hipPopCallConfiguration.gridDim == NULL) oss << "gridDim=NULL";
else oss << "gridDim=" << data->args.__hipPopCallConfiguration.gridDim__val;
if (data->args.__hipPopCallConfiguration.blockDim == NULL) oss << ", blockDim=NULL";
else oss << ", blockDim=" << data->args.__hipPopCallConfiguration.blockDim__val;
if (data->args.__hipPopCallConfiguration.sharedMem == NULL) oss << ", sharedMem=NULL";
else oss << ", sharedMem=" << data->args.__hipPopCallConfiguration.sharedMem__val;
if (data->args.__hipPopCallConfiguration.stream == NULL) oss << ", stream=NULL";
else oss << ", stream=" << data->args.__hipPopCallConfiguration.stream__val;
oss << ")";
break;
case HIP_API_ID___hipPushCallConfiguration:
oss << "__hipPushCallConfiguration(";
oss << "gridDim=" << data->args.__hipPushCallConfiguration.gridDim;
oss << ", blockDim=" << data->args.__hipPushCallConfiguration.blockDim;
oss << ", sharedMem=" << data->args.__hipPushCallConfiguration.sharedMem;
oss << ", stream=" << data->args.__hipPushCallConfiguration.stream;
oss << ")";
break;
case HIP_API_ID_hipArray3DCreate:
oss << "hipArray3DCreate(";
if (data->args.hipArray3DCreate.array == NULL) oss << "array=NULL";
else oss << "array=" << (void*)data->args.hipArray3DCreate.array__val;
if (data->args.hipArray3DCreate.pAllocateArray == NULL) oss << ", pAllocateArray=NULL";
else oss << ", pAllocateArray=" << data->args.hipArray3DCreate.pAllocateArray__val;
oss << ")";
break;
case HIP_API_ID_hipArrayCreate:
oss << "hipArrayCreate(";
if (data->args.hipArrayCreate.pHandle == NULL) oss << "pHandle=NULL";
else oss << "pHandle=" << (void*)data->args.hipArrayCreate.pHandle__val;
if (data->args.hipArrayCreate.pAllocateArray == NULL) oss << ", pAllocateArray=NULL";
else oss << ", pAllocateArray=" << data->args.hipArrayCreate.pAllocateArray__val;
oss << ")";
break;
case HIP_API_ID_hipArrayDestroy:
oss << "hipArrayDestroy(";
if (data->args.hipArrayDestroy.array == NULL) oss << "array=NULL";
else oss << "array=" << data->args.hipArrayDestroy.array__val;
oss << ")";
break;
case HIP_API_ID_hipChooseDevice:
oss << "hipChooseDevice(";
if (data->args.hipChooseDevice.device == NULL) oss << "device=NULL";
else oss << "device=" << data->args.hipChooseDevice.device__val;
if (data->args.hipChooseDevice.prop == NULL) oss << ", prop=NULL";
else oss << ", prop=" << data->args.hipChooseDevice.prop__val;
oss << ")";
break;
case HIP_API_ID_hipConfigureCall:
oss << "hipConfigureCall(";
oss << "gridDim=" << data->args.hipConfigureCall.gridDim;
oss << ", blockDim=" << data->args.hipConfigureCall.blockDim;
oss << ", sharedMem=" << data->args.hipConfigureCall.sharedMem;
oss << ", stream=" << data->args.hipConfigureCall.stream;
oss << ")";
break;
case HIP_API_ID_hipCtxCreate:
oss << "hipCtxCreate(";
if (data->args.hipCtxCreate.ctx == NULL) oss << "ctx=NULL";
else oss << "ctx=" << data->args.hipCtxCreate.ctx__val;
oss << ", flags=" << data->args.hipCtxCreate.flags;
oss << ", device=" << data->args.hipCtxCreate.device;
oss << ")";
break;
case HIP_API_ID_hipCtxDestroy:
oss << "hipCtxDestroy(";
oss << "ctx=" << data->args.hipCtxDestroy.ctx;
oss << ")";
break;
case HIP_API_ID_hipCtxDisablePeerAccess:
oss << "hipCtxDisablePeerAccess(";
oss << "peerCtx=" << data->args.hipCtxDisablePeerAccess.peerCtx;
oss << ")";
break;
case HIP_API_ID_hipCtxEnablePeerAccess:
oss << "hipCtxEnablePeerAccess(";
oss << "peerCtx=" << data->args.hipCtxEnablePeerAccess.peerCtx;
oss << ", flags=" << data->args.hipCtxEnablePeerAccess.flags;
oss << ")";
break;
case HIP_API_ID_hipCtxGetApiVersion:
oss << "hipCtxGetApiVersion(";
oss << "ctx=" << data->args.hipCtxGetApiVersion.ctx;
if (data->args.hipCtxGetApiVersion.apiVersion == NULL) oss << ", apiVersion=NULL";
else oss << ", apiVersion=" << data->args.hipCtxGetApiVersion.apiVersion__val;
oss << ")";
break;
case HIP_API_ID_hipCtxGetCacheConfig:
oss << "hipCtxGetCacheConfig(";
if (data->args.hipCtxGetCacheConfig.cacheConfig == NULL) oss << "cacheConfig=NULL";
else oss << "cacheConfig=" << data->args.hipCtxGetCacheConfig.cacheConfig__val;
oss << ")";
break;
case HIP_API_ID_hipCtxGetCurrent:
oss << "hipCtxGetCurrent(";
if (data->args.hipCtxGetCurrent.ctx == NULL) oss << "ctx=NULL";
else oss << "ctx=" << data->args.hipCtxGetCurrent.ctx__val;
oss << ")";
break;
case HIP_API_ID_hipCtxGetDevice:
oss << "hipCtxGetDevice(";
if (data->args.hipCtxGetDevice.device == NULL) oss << "device=NULL";
else oss << "device=" << data->args.hipCtxGetDevice.device__val;
oss << ")";
break;
case HIP_API_ID_hipCtxGetFlags:
oss << "hipCtxGetFlags(";
if (data->args.hipCtxGetFlags.flags == NULL) oss << "flags=NULL";
else oss << "flags=" << data->args.hipCtxGetFlags.flags__val;
oss << ")";
break;
case HIP_API_ID_hipCtxGetSharedMemConfig:
oss << "hipCtxGetSharedMemConfig(";
if (data->args.hipCtxGetSharedMemConfig.pConfig == NULL) oss << "pConfig=NULL";
else oss << "pConfig=" << data->args.hipCtxGetSharedMemConfig.pConfig__val;
oss << ")";
break;
case HIP_API_ID_hipCtxPopCurrent:
oss << "hipCtxPopCurrent(";
if (data->args.hipCtxPopCurrent.ctx == NULL) oss << "ctx=NULL";
else oss << "ctx=" << data->args.hipCtxPopCurrent.ctx__val;
oss << ")";
break;
case HIP_API_ID_hipCtxPushCurrent:
oss << "hipCtxPushCurrent(";
oss << "ctx=" << data->args.hipCtxPushCurrent.ctx;
oss << ")";
break;
case HIP_API_ID_hipCtxSetCacheConfig:
oss << "hipCtxSetCacheConfig(";
oss << "cacheConfig=" << data->args.hipCtxSetCacheConfig.cacheConfig;
oss << ")";
break;
case HIP_API_ID_hipCtxSetCurrent:
oss << "hipCtxSetCurrent(";
oss << "ctx=" << data->args.hipCtxSetCurrent.ctx;
oss << ")";
break;
case HIP_API_ID_hipCtxSetSharedMemConfig:
oss << "hipCtxSetSharedMemConfig(";
oss << "config=" << data->args.hipCtxSetSharedMemConfig.config;
oss << ")";
break;
case HIP_API_ID_hipCtxSynchronize:
oss << "hipCtxSynchronize(";
oss << ")";
break;
case HIP_API_ID_hipDestroyExternalMemory:
oss << "hipDestroyExternalMemory(";
oss << "extMem=" << data->args.hipDestroyExternalMemory.extMem;
oss << ")";
break;
case HIP_API_ID_hipDestroyExternalSemaphore:
oss << "hipDestroyExternalSemaphore(";
oss << "extSem=" << data->args.hipDestroyExternalSemaphore.extSem;
oss << ")";
break;
case HIP_API_ID_hipDeviceCanAccessPeer:
oss << "hipDeviceCanAccessPeer(";
if (data->args.hipDeviceCanAccessPeer.canAccessPeer == NULL) oss << "canAccessPeer=NULL";
else oss << "canAccessPeer=" << data->args.hipDeviceCanAccessPeer.canAccessPeer__val;
oss << ", deviceId=" << data->args.hipDeviceCanAccessPeer.deviceId;
oss << ", peerDeviceId=" << data->args.hipDeviceCanAccessPeer.peerDeviceId;
oss << ")";
break;
case HIP_API_ID_hipDeviceComputeCapability:
oss << "hipDeviceComputeCapability(";
if (data->args.hipDeviceComputeCapability.major == NULL) oss << "major=NULL";
else oss << "major=" << data->args.hipDeviceComputeCapability.major__val;
if (data->args.hipDeviceComputeCapability.minor == NULL) oss << ", minor=NULL";
else oss << ", minor=" << data->args.hipDeviceComputeCapability.minor__val;
oss << ", device=" << data->args.hipDeviceComputeCapability.device;
oss << ")";
break;
case HIP_API_ID_hipDeviceDisablePeerAccess:
oss << "hipDeviceDisablePeerAccess(";
oss << "peerDeviceId=" << data->args.hipDeviceDisablePeerAccess.peerDeviceId;
oss << ")";
break;
case HIP_API_ID_hipDeviceEnablePeerAccess:
oss << "hipDeviceEnablePeerAccess(";
oss << "peerDeviceId=" << data->args.hipDeviceEnablePeerAccess.peerDeviceId;
oss << ", flags=" << data->args.hipDeviceEnablePeerAccess.flags;
oss << ")";
break;
case HIP_API_ID_hipDeviceGet:
oss << "hipDeviceGet(";
if (data->args.hipDeviceGet.device == NULL) oss << "device=NULL";
else oss << "device=" << data->args.hipDeviceGet.device__val;
oss << ", ordinal=" << data->args.hipDeviceGet.ordinal;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetAttribute:
oss << "hipDeviceGetAttribute(";
if (data->args.hipDeviceGetAttribute.pi == NULL) oss << "pi=NULL";
else oss << "pi=" << data->args.hipDeviceGetAttribute.pi__val;
oss << ", attr=" << data->args.hipDeviceGetAttribute.attr;
oss << ", deviceId=" << data->args.hipDeviceGetAttribute.deviceId;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetByPCIBusId:
oss << "hipDeviceGetByPCIBusId(";
if (data->args.hipDeviceGetByPCIBusId.device == NULL) oss << "device=NULL";
else oss << "device=" << data->args.hipDeviceGetByPCIBusId.device__val;
if (data->args.hipDeviceGetByPCIBusId.pciBusId == NULL) oss << ", pciBusId=NULL";
else oss << ", pciBusId=" << data->args.hipDeviceGetByPCIBusId.pciBusId__val;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetCacheConfig:
oss << "hipDeviceGetCacheConfig(";
if (data->args.hipDeviceGetCacheConfig.cacheConfig == NULL) oss << "cacheConfig=NULL";
else oss << "cacheConfig=" << data->args.hipDeviceGetCacheConfig.cacheConfig__val;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetLimit:
oss << "hipDeviceGetLimit(";
if (data->args.hipDeviceGetLimit.pValue == NULL) oss << "pValue=NULL";
else oss << "pValue=" << data->args.hipDeviceGetLimit.pValue__val;
oss << ", limit=" << data->args.hipDeviceGetLimit.limit;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetName:
oss << "hipDeviceGetName(";
if (data->args.hipDeviceGetName.name == NULL) oss << "name=NULL";
else oss << "name=" << data->args.hipDeviceGetName.name__val;
oss << ", len=" << data->args.hipDeviceGetName.len;
oss << ", device=" << data->args.hipDeviceGetName.device;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetP2PAttribute:
oss << "hipDeviceGetP2PAttribute(";
if (data->args.hipDeviceGetP2PAttribute.value == NULL) oss << "value=NULL";
else oss << "value=" << data->args.hipDeviceGetP2PAttribute.value__val;
oss << ", attr=" << data->args.hipDeviceGetP2PAttribute.attr;
oss << ", srcDevice=" << data->args.hipDeviceGetP2PAttribute.srcDevice;
oss << ", dstDevice=" << data->args.hipDeviceGetP2PAttribute.dstDevice;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetPCIBusId:
oss << "hipDeviceGetPCIBusId(";
if (data->args.hipDeviceGetPCIBusId.pciBusId == NULL) oss << "pciBusId=NULL";
else oss << "pciBusId=" << data->args.hipDeviceGetPCIBusId.pciBusId__val;
oss << ", len=" << data->args.hipDeviceGetPCIBusId.len;
oss << ", device=" << data->args.hipDeviceGetPCIBusId.device;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetSharedMemConfig:
oss << "hipDeviceGetSharedMemConfig(";
if (data->args.hipDeviceGetSharedMemConfig.pConfig == NULL) oss << "pConfig=NULL";
else oss << "pConfig=" << data->args.hipDeviceGetSharedMemConfig.pConfig__val;
oss << ")";
break;
case HIP_API_ID_hipDeviceGetStreamPriorityRange:
oss << "hipDeviceGetStreamPriorityRange(";
if (data->args.hipDeviceGetStreamPriorityRange.leastPriority == NULL) oss << "leastPriority=NULL";
else oss << "leastPriority=" << data->args.hipDeviceGetStreamPriorityRange.leastPriority__val;
if (data->args.hipDeviceGetStreamPriorityRange.greatestPriority == NULL) oss << ", greatestPriority=NULL";
else oss << ", greatestPriority=" << data->args.hipDeviceGetStreamPriorityRange.greatestPriority__val;
oss << ")";
break;
case HIP_API_ID_hipDevicePrimaryCtxGetState:
oss << "hipDevicePrimaryCtxGetState(";
oss << "dev=" << data->args.hipDevicePrimaryCtxGetState.dev;
if (data->args.hipDevicePrimaryCtxGetState.flags == NULL) oss << ", flags=NULL";
else oss << ", flags=" << data->args.hipDevicePrimaryCtxGetState.flags__val;
if (data->args.hipDevicePrimaryCtxGetState.active == NULL) oss << ", active=NULL";
else oss << ", active=" << data->args.hipDevicePrimaryCtxGetState.active__val;
oss << ")";
break;
case HIP_API_ID_hipDevicePrimaryCtxRelease:
oss << "hipDevicePrimaryCtxRelease(";
oss << "dev=" << data->args.hipDevicePrimaryCtxRelease.dev;
oss << ")";
break;
case HIP_API_ID_hipDevicePrimaryCtxReset:
oss << "hipDevicePrimaryCtxReset(";
oss << "dev=" << data->args.hipDevicePrimaryCtxReset.dev;
oss << ")";
break;
case HIP_API_ID_hipDevicePrimaryCtxRetain:
oss << "hipDevicePrimaryCtxRetain(";
if (data->args.hipDevicePrimaryCtxRetain.pctx == NULL) oss << "pctx=NULL";
else oss << "pctx=" << data->args.hipDevicePrimaryCtxRetain.pctx__val;
oss << ", dev=" << data->args.hipDevicePrimaryCtxRetain.dev;
oss << ")";
break;
case HIP_API_ID_hipDevicePrimaryCtxSetFlags:
oss << "hipDevicePrimaryCtxSetFlags(";
oss << "dev=" << data->args.hipDevicePrimaryCtxSetFlags.dev;
oss << ", flags=" << data->args.hipDevicePrimaryCtxSetFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipDeviceReset:
oss << "hipDeviceReset(";
oss << ")";
break;
case HIP_API_ID_hipDeviceSetCacheConfig:
oss << "hipDeviceSetCacheConfig(";
oss << "cacheConfig=" << data->args.hipDeviceSetCacheConfig.cacheConfig;
oss << ")";
break;
case HIP_API_ID_hipDeviceSetSharedMemConfig:
oss << "hipDeviceSetSharedMemConfig(";
oss << "config=" << data->args.hipDeviceSetSharedMemConfig.config;
oss << ")";
break;
case HIP_API_ID_hipDeviceSynchronize:
oss << "hipDeviceSynchronize(";
oss << ")";
break;
case HIP_API_ID_hipDeviceTotalMem:
oss << "hipDeviceTotalMem(";
if (data->args.hipDeviceTotalMem.bytes == NULL) oss << "bytes=NULL";
else oss << "bytes=" << data->args.hipDeviceTotalMem.bytes__val;
oss << ", device=" << data->args.hipDeviceTotalMem.device;
oss << ")";
break;
case HIP_API_ID_hipDriverGetVersion:
oss << "hipDriverGetVersion(";
if (data->args.hipDriverGetVersion.driverVersion == NULL) oss << "driverVersion=NULL";
else oss << "driverVersion=" << data->args.hipDriverGetVersion.driverVersion__val;
oss << ")";
break;
case HIP_API_ID_hipDrvMemcpy2DUnaligned:
oss << "hipDrvMemcpy2DUnaligned(";
if (data->args.hipDrvMemcpy2DUnaligned.pCopy == NULL) oss << "pCopy=NULL";
else oss << "pCopy=" << data->args.hipDrvMemcpy2DUnaligned.pCopy__val;
oss << ")";
break;
case HIP_API_ID_hipDrvMemcpy3D:
oss << "hipDrvMemcpy3D(";
if (data->args.hipDrvMemcpy3D.pCopy == NULL) oss << "pCopy=NULL";
else oss << "pCopy=" << data->args.hipDrvMemcpy3D.pCopy__val;
oss << ")";
break;
case HIP_API_ID_hipDrvMemcpy3DAsync:
oss << "hipDrvMemcpy3DAsync(";
if (data->args.hipDrvMemcpy3DAsync.pCopy == NULL) oss << "pCopy=NULL";
else oss << "pCopy=" << data->args.hipDrvMemcpy3DAsync.pCopy__val;
oss << ", stream=" << data->args.hipDrvMemcpy3DAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipEventCreate:
oss << "hipEventCreate(";
if (data->args.hipEventCreate.event == NULL) oss << "event=NULL";
else oss << "event=" << data->args.hipEventCreate.event__val;
oss << ")";
break;
case HIP_API_ID_hipEventCreateWithFlags:
oss << "hipEventCreateWithFlags(";
if (data->args.hipEventCreateWithFlags.event == NULL) oss << "event=NULL";
else oss << "event=" << data->args.hipEventCreateWithFlags.event__val;
oss << ", flags=" << data->args.hipEventCreateWithFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipEventDestroy:
oss << "hipEventDestroy(";
oss << "event=" << data->args.hipEventDestroy.event;
oss << ")";
break;
case HIP_API_ID_hipEventElapsedTime:
oss << "hipEventElapsedTime(";
if (data->args.hipEventElapsedTime.ms == NULL) oss << "ms=NULL";
else oss << "ms=" << data->args.hipEventElapsedTime.ms__val;
oss << ", start=" << data->args.hipEventElapsedTime.start;
oss << ", stop=" << data->args.hipEventElapsedTime.stop;
oss << ")";
break;
case HIP_API_ID_hipEventQuery:
oss << "hipEventQuery(";
oss << "event=" << data->args.hipEventQuery.event;
oss << ")";
break;
case HIP_API_ID_hipEventRecord:
oss << "hipEventRecord(";
oss << "event=" << data->args.hipEventRecord.event;
oss << ", stream=" << data->args.hipEventRecord.stream;
oss << ")";
break;
case HIP_API_ID_hipEventSynchronize:
oss << "hipEventSynchronize(";
oss << "event=" << data->args.hipEventSynchronize.event;
oss << ")";
break;
case HIP_API_ID_hipExtGetLinkTypeAndHopCount:
oss << "hipExtGetLinkTypeAndHopCount(";
oss << "device1=" << data->args.hipExtGetLinkTypeAndHopCount.device1;
oss << ", device2=" << data->args.hipExtGetLinkTypeAndHopCount.device2;
if (data->args.hipExtGetLinkTypeAndHopCount.linktype == NULL) oss << ", linktype=NULL";
else oss << ", linktype=" << data->args.hipExtGetLinkTypeAndHopCount.linktype__val;
if (data->args.hipExtGetLinkTypeAndHopCount.hopcount == NULL) oss << ", hopcount=NULL";
else oss << ", hopcount=" << data->args.hipExtGetLinkTypeAndHopCount.hopcount__val;
oss << ")";
break;
case HIP_API_ID_hipExtLaunchKernel:
oss << "hipExtLaunchKernel(";
oss << "function_address=" << data->args.hipExtLaunchKernel.function_address;
oss << ", numBlocks=" << data->args.hipExtLaunchKernel.numBlocks;
oss << ", dimBlocks=" << data->args.hipExtLaunchKernel.dimBlocks;
if (data->args.hipExtLaunchKernel.args == NULL) oss << ", args=NULL";
else oss << ", args=" << data->args.hipExtLaunchKernel.args__val;
oss << ", sharedMemBytes=" << data->args.hipExtLaunchKernel.sharedMemBytes;
oss << ", stream=" << data->args.hipExtLaunchKernel.stream;
oss << ", startEvent=" << data->args.hipExtLaunchKernel.startEvent;
oss << ", stopEvent=" << data->args.hipExtLaunchKernel.stopEvent;
oss << ", flags=" << data->args.hipExtLaunchKernel.flags;
oss << ")";
break;
case HIP_API_ID_hipExtLaunchMultiKernelMultiDevice:
oss << "hipExtLaunchMultiKernelMultiDevice(";
if (data->args.hipExtLaunchMultiKernelMultiDevice.launchParamsList == NULL) oss << "launchParamsList=NULL";
else oss << "launchParamsList=" << data->args.hipExtLaunchMultiKernelMultiDevice.launchParamsList__val;
oss << ", numDevices=" << data->args.hipExtLaunchMultiKernelMultiDevice.numDevices;
oss << ", flags=" << data->args.hipExtLaunchMultiKernelMultiDevice.flags;
oss << ")";
break;
case HIP_API_ID_hipExtMallocWithFlags:
oss << "hipExtMallocWithFlags(";
if (data->args.hipExtMallocWithFlags.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipExtMallocWithFlags.ptr__val;
oss << ", sizeBytes=" << data->args.hipExtMallocWithFlags.sizeBytes;
oss << ", flags=" << data->args.hipExtMallocWithFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipExtModuleLaunchKernel:
oss << "hipExtModuleLaunchKernel(";
oss << "f=" << data->args.hipExtModuleLaunchKernel.f;
oss << ", globalWorkSizeX=" << data->args.hipExtModuleLaunchKernel.globalWorkSizeX;
oss << ", globalWorkSizeY=" << data->args.hipExtModuleLaunchKernel.globalWorkSizeY;
oss << ", globalWorkSizeZ=" << data->args.hipExtModuleLaunchKernel.globalWorkSizeZ;
oss << ", localWorkSizeX=" << data->args.hipExtModuleLaunchKernel.localWorkSizeX;
oss << ", localWorkSizeY=" << data->args.hipExtModuleLaunchKernel.localWorkSizeY;
oss << ", localWorkSizeZ=" << data->args.hipExtModuleLaunchKernel.localWorkSizeZ;
oss << ", sharedMemBytes=" << data->args.hipExtModuleLaunchKernel.sharedMemBytes;
oss << ", hStream=" << data->args.hipExtModuleLaunchKernel.hStream;
if (data->args.hipExtModuleLaunchKernel.kernelParams == NULL) oss << ", kernelParams=NULL";
else oss << ", kernelParams=" << data->args.hipExtModuleLaunchKernel.kernelParams__val;
if (data->args.hipExtModuleLaunchKernel.extra == NULL) oss << ", extra=NULL";
else oss << ", extra=" << data->args.hipExtModuleLaunchKernel.extra__val;
oss << ", startEvent=" << data->args.hipExtModuleLaunchKernel.startEvent;
oss << ", stopEvent=" << data->args.hipExtModuleLaunchKernel.stopEvent;
oss << ", flags=" << data->args.hipExtModuleLaunchKernel.flags;
oss << ")";
break;
case HIP_API_ID_hipExtStreamCreateWithCUMask:
oss << "hipExtStreamCreateWithCUMask(";
if (data->args.hipExtStreamCreateWithCUMask.stream == NULL) oss << "stream=NULL";
else oss << "stream=" << data->args.hipExtStreamCreateWithCUMask.stream__val;
oss << ", cuMaskSize=" << data->args.hipExtStreamCreateWithCUMask.cuMaskSize;
if (data->args.hipExtStreamCreateWithCUMask.cuMask == NULL) oss << ", cuMask=NULL";
else oss << ", cuMask=" << data->args.hipExtStreamCreateWithCUMask.cuMask__val;
oss << ")";
break;
case HIP_API_ID_hipExtStreamGetCUMask:
oss << "hipExtStreamGetCUMask(";
oss << "stream=" << data->args.hipExtStreamGetCUMask.stream;
oss << ", cuMaskSize=" << data->args.hipExtStreamGetCUMask.cuMaskSize;
if (data->args.hipExtStreamGetCUMask.cuMask == NULL) oss << ", cuMask=NULL";
else oss << ", cuMask=" << data->args.hipExtStreamGetCUMask.cuMask__val;
oss << ")";
break;
case HIP_API_ID_hipExternalMemoryGetMappedBuffer:
oss << "hipExternalMemoryGetMappedBuffer(";
if (data->args.hipExternalMemoryGetMappedBuffer.devPtr == NULL) oss << "devPtr=NULL";
else oss << "devPtr=" << data->args.hipExternalMemoryGetMappedBuffer.devPtr__val;
oss << ", extMem=" << data->args.hipExternalMemoryGetMappedBuffer.extMem;
if (data->args.hipExternalMemoryGetMappedBuffer.bufferDesc == NULL) oss << ", bufferDesc=NULL";
else oss << ", bufferDesc=" << data->args.hipExternalMemoryGetMappedBuffer.bufferDesc__val;
oss << ")";
break;
case HIP_API_ID_hipFree:
oss << "hipFree(";
oss << "ptr=" << data->args.hipFree.ptr;
oss << ")";
break;
case HIP_API_ID_hipFreeArray:
oss << "hipFreeArray(";
if (data->args.hipFreeArray.array == NULL) oss << "array=NULL";
else oss << "array=" << data->args.hipFreeArray.array__val;
oss << ")";
break;
case HIP_API_ID_hipFreeHost:
oss << "hipFreeHost(";
oss << "ptr=" << data->args.hipFreeHost.ptr;
oss << ")";
break;
case HIP_API_ID_hipFreeMipmappedArray:
oss << "hipFreeMipmappedArray(";
oss << "mipmappedArray=" << data->args.hipFreeMipmappedArray.mipmappedArray;
oss << ")";
break;
case HIP_API_ID_hipFuncGetAttribute:
oss << "hipFuncGetAttribute(";
if (data->args.hipFuncGetAttribute.value == NULL) oss << "value=NULL";
else oss << "value=" << data->args.hipFuncGetAttribute.value__val;
oss << ", attrib=" << data->args.hipFuncGetAttribute.attrib;
oss << ", hfunc=" << data->args.hipFuncGetAttribute.hfunc;
oss << ")";
break;
case HIP_API_ID_hipFuncGetAttributes:
oss << "hipFuncGetAttributes(";
if (data->args.hipFuncGetAttributes.attr == NULL) oss << "attr=NULL";
else oss << "attr=" << data->args.hipFuncGetAttributes.attr__val;
oss << ", func=" << data->args.hipFuncGetAttributes.func;
oss << ")";
break;
case HIP_API_ID_hipFuncSetAttribute:
oss << "hipFuncSetAttribute(";
oss << "func=" << data->args.hipFuncSetAttribute.func;
oss << ", attr=" << data->args.hipFuncSetAttribute.attr;
oss << ", value=" << data->args.hipFuncSetAttribute.value;
oss << ")";
break;
case HIP_API_ID_hipFuncSetCacheConfig:
oss << "hipFuncSetCacheConfig(";
oss << "func=" << data->args.hipFuncSetCacheConfig.func;
oss << ", config=" << data->args.hipFuncSetCacheConfig.config;
oss << ")";
break;
case HIP_API_ID_hipFuncSetSharedMemConfig:
oss << "hipFuncSetSharedMemConfig(";
oss << "func=" << data->args.hipFuncSetSharedMemConfig.func;
oss << ", config=" << data->args.hipFuncSetSharedMemConfig.config;
oss << ")";
break;
case HIP_API_ID_hipGetDevice:
oss << "hipGetDevice(";
if (data->args.hipGetDevice.deviceId == NULL) oss << "deviceId=NULL";
else oss << "deviceId=" << data->args.hipGetDevice.deviceId__val;
oss << ")";
break;
case HIP_API_ID_hipGetDeviceCount:
oss << "hipGetDeviceCount(";
if (data->args.hipGetDeviceCount.count == NULL) oss << "count=NULL";
else oss << "count=" << data->args.hipGetDeviceCount.count__val;
oss << ")";
break;
case HIP_API_ID_hipGetDeviceFlags:
oss << "hipGetDeviceFlags(";
if (data->args.hipGetDeviceFlags.flags == NULL) oss << "flags=NULL";
else oss << "flags=" << data->args.hipGetDeviceFlags.flags__val;
oss << ")";
break;
case HIP_API_ID_hipGetDeviceProperties:
oss << "hipGetDeviceProperties(";
if (data->args.hipGetDeviceProperties.props == NULL) oss << "props=NULL";
else oss << "props=" << data->args.hipGetDeviceProperties.props__val;
oss << ", device=" << data->args.hipGetDeviceProperties.device;
oss << ")";
break;
case HIP_API_ID_hipGetErrorName:
oss << "hipGetErrorName(";
oss << ")";
break;
case HIP_API_ID_hipGetErrorString:
oss << "hipGetErrorString(";
oss << ")";
break;
case HIP_API_ID_hipGetLastError:
oss << "hipGetLastError(";
oss << ")";
break;
case HIP_API_ID_hipGetMipmappedArrayLevel:
oss << "hipGetMipmappedArrayLevel(";
if (data->args.hipGetMipmappedArrayLevel.levelArray == NULL) oss << "levelArray=NULL";
else oss << "levelArray=" << data->args.hipGetMipmappedArrayLevel.levelArray__val;
oss << ", mipmappedArray=" << data->args.hipGetMipmappedArrayLevel.mipmappedArray;
oss << ", level=" << data->args.hipGetMipmappedArrayLevel.level;
oss << ")";
break;
case HIP_API_ID_hipGetSymbolAddress:
oss << "hipGetSymbolAddress(";
if (data->args.hipGetSymbolAddress.devPtr == NULL) oss << "devPtr=NULL";
else oss << "devPtr=" << data->args.hipGetSymbolAddress.devPtr__val;
oss << ", symbol=" << data->args.hipGetSymbolAddress.symbol;
oss << ")";
break;
case HIP_API_ID_hipGetSymbolSize:
oss << "hipGetSymbolSize(";
if (data->args.hipGetSymbolSize.size == NULL) oss << "size=NULL";
else oss << "size=" << data->args.hipGetSymbolSize.size__val;
oss << ", symbol=" << data->args.hipGetSymbolSize.symbol;
oss << ")";
break;
case HIP_API_ID_hipHccModuleLaunchKernel:
oss << "hipHccModuleLaunchKernel(";
oss << "f=" << data->args.hipHccModuleLaunchKernel.f;
oss << ", globalWorkSizeX=" << data->args.hipHccModuleLaunchKernel.globalWorkSizeX;
oss << ", globalWorkSizeY=" << data->args.hipHccModuleLaunchKernel.globalWorkSizeY;
oss << ", globalWorkSizeZ=" << data->args.hipHccModuleLaunchKernel.globalWorkSizeZ;
oss << ", blockDimX=" << data->args.hipHccModuleLaunchKernel.blockDimX;
oss << ", blockDimY=" << data->args.hipHccModuleLaunchKernel.blockDimY;
oss << ", blockDimZ=" << data->args.hipHccModuleLaunchKernel.blockDimZ;
oss << ", sharedMemBytes=" << data->args.hipHccModuleLaunchKernel.sharedMemBytes;
oss << ", hStream=" << data->args.hipHccModuleLaunchKernel.hStream;
if (data->args.hipHccModuleLaunchKernel.kernelParams == NULL) oss << ", kernelParams=NULL";
else oss << ", kernelParams=" << data->args.hipHccModuleLaunchKernel.kernelParams__val;
if (data->args.hipHccModuleLaunchKernel.extra == NULL) oss << ", extra=NULL";
else oss << ", extra=" << data->args.hipHccModuleLaunchKernel.extra__val;
oss << ", startEvent=" << data->args.hipHccModuleLaunchKernel.startEvent;
oss << ", stopEvent=" << data->args.hipHccModuleLaunchKernel.stopEvent;
oss << ")";
break;
case HIP_API_ID_hipHostAlloc:
oss << "hipHostAlloc(";
if (data->args.hipHostAlloc.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipHostAlloc.ptr__val;
oss << ", size=" << data->args.hipHostAlloc.size;
oss << ", flags=" << data->args.hipHostAlloc.flags;
oss << ")";
break;
case HIP_API_ID_hipHostFree:
oss << "hipHostFree(";
oss << "ptr=" << data->args.hipHostFree.ptr;
oss << ")";
break;
case HIP_API_ID_hipHostGetDevicePointer:
oss << "hipHostGetDevicePointer(";
if (data->args.hipHostGetDevicePointer.devPtr == NULL) oss << "devPtr=NULL";
else oss << "devPtr=" << data->args.hipHostGetDevicePointer.devPtr__val;
oss << ", hstPtr=" << data->args.hipHostGetDevicePointer.hstPtr;
oss << ", flags=" << data->args.hipHostGetDevicePointer.flags;
oss << ")";
break;
case HIP_API_ID_hipHostGetFlags:
oss << "hipHostGetFlags(";
if (data->args.hipHostGetFlags.flagsPtr == NULL) oss << "flagsPtr=NULL";
else oss << "flagsPtr=" << data->args.hipHostGetFlags.flagsPtr__val;
oss << ", hostPtr=" << data->args.hipHostGetFlags.hostPtr;
oss << ")";
break;
case HIP_API_ID_hipHostMalloc:
oss << "hipHostMalloc(";
if (data->args.hipHostMalloc.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipHostMalloc.ptr__val;
oss << ", size=" << data->args.hipHostMalloc.size;
oss << ", flags=" << data->args.hipHostMalloc.flags;
oss << ")";
break;
case HIP_API_ID_hipHostRegister:
oss << "hipHostRegister(";
oss << "hostPtr=" << data->args.hipHostRegister.hostPtr;
oss << ", sizeBytes=" << data->args.hipHostRegister.sizeBytes;
oss << ", flags=" << data->args.hipHostRegister.flags;
oss << ")";
break;
case HIP_API_ID_hipHostUnregister:
oss << "hipHostUnregister(";
oss << "hostPtr=" << data->args.hipHostUnregister.hostPtr;
oss << ")";
break;
case HIP_API_ID_hipImportExternalMemory:
oss << "hipImportExternalMemory(";
if (data->args.hipImportExternalMemory.extMem_out == NULL) oss << "extMem_out=NULL";
else oss << "extMem_out=" << data->args.hipImportExternalMemory.extMem_out__val;
if (data->args.hipImportExternalMemory.memHandleDesc == NULL) oss << ", memHandleDesc=NULL";
else oss << ", memHandleDesc=" << data->args.hipImportExternalMemory.memHandleDesc__val;
oss << ")";
break;
case HIP_API_ID_hipImportExternalSemaphore:
oss << "hipImportExternalSemaphore(";
if (data->args.hipImportExternalSemaphore.extSem_out == NULL) oss << "extSem_out=NULL";
else oss << "extSem_out=" << data->args.hipImportExternalSemaphore.extSem_out__val;
if (data->args.hipImportExternalSemaphore.semHandleDesc == NULL) oss << ", semHandleDesc=NULL";
else oss << ", semHandleDesc=" << data->args.hipImportExternalSemaphore.semHandleDesc__val;
oss << ")";
break;
case HIP_API_ID_hipInit:
oss << "hipInit(";
oss << "flags=" << data->args.hipInit.flags;
oss << ")";
break;
case HIP_API_ID_hipIpcCloseMemHandle:
oss << "hipIpcCloseMemHandle(";
oss << "devPtr=" << data->args.hipIpcCloseMemHandle.devPtr;
oss << ")";
break;
case HIP_API_ID_hipIpcGetEventHandle:
oss << "hipIpcGetEventHandle(";
if (data->args.hipIpcGetEventHandle.handle == NULL) oss << "handle=NULL";
else oss << "handle=" << data->args.hipIpcGetEventHandle.handle__val;
oss << ", event=" << data->args.hipIpcGetEventHandle.event;
oss << ")";
break;
case HIP_API_ID_hipIpcGetMemHandle:
oss << "hipIpcGetMemHandle(";
if (data->args.hipIpcGetMemHandle.handle == NULL) oss << "handle=NULL";
else oss << "handle=" << data->args.hipIpcGetMemHandle.handle__val;
oss << ", devPtr=" << data->args.hipIpcGetMemHandle.devPtr;
oss << ")";
break;
case HIP_API_ID_hipIpcOpenEventHandle:
oss << "hipIpcOpenEventHandle(";
if (data->args.hipIpcOpenEventHandle.event == NULL) oss << "event=NULL";
else oss << "event=" << data->args.hipIpcOpenEventHandle.event__val;
oss << ", handle=" << data->args.hipIpcOpenEventHandle.handle;
oss << ")";
break;
case HIP_API_ID_hipIpcOpenMemHandle:
oss << "hipIpcOpenMemHandle(";
if (data->args.hipIpcOpenMemHandle.devPtr == NULL) oss << "devPtr=NULL";
else oss << "devPtr=" << data->args.hipIpcOpenMemHandle.devPtr__val;
oss << ", handle=" << data->args.hipIpcOpenMemHandle.handle;
oss << ", flags=" << data->args.hipIpcOpenMemHandle.flags;
oss << ")";
break;
case HIP_API_ID_hipLaunchByPtr:
oss << "hipLaunchByPtr(";
oss << "hostFunction=" << data->args.hipLaunchByPtr.hostFunction;
oss << ")";
break;
case HIP_API_ID_hipLaunchCooperativeKernel:
oss << "hipLaunchCooperativeKernel(";
oss << "f=" << data->args.hipLaunchCooperativeKernel.f;
oss << ", gridDim=" << data->args.hipLaunchCooperativeKernel.gridDim;
oss << ", blockDimX=" << data->args.hipLaunchCooperativeKernel.blockDimX;
if (data->args.hipLaunchCooperativeKernel.kernelParams == NULL) oss << ", kernelParams=NULL";
else oss << ", kernelParams=" << data->args.hipLaunchCooperativeKernel.kernelParams__val;
oss << ", sharedMemBytes=" << data->args.hipLaunchCooperativeKernel.sharedMemBytes;
oss << ", stream=" << data->args.hipLaunchCooperativeKernel.stream;
oss << ")";
break;
case HIP_API_ID_hipLaunchCooperativeKernelMultiDevice:
oss << "hipLaunchCooperativeKernelMultiDevice(";
if (data->args.hipLaunchCooperativeKernelMultiDevice.launchParamsList == NULL) oss << "launchParamsList=NULL";
else oss << "launchParamsList=" << data->args.hipLaunchCooperativeKernelMultiDevice.launchParamsList__val;
oss << ", numDevices=" << data->args.hipLaunchCooperativeKernelMultiDevice.numDevices;
oss << ", flags=" << data->args.hipLaunchCooperativeKernelMultiDevice.flags;
oss << ")";
break;
case HIP_API_ID_hipLaunchKernel:
oss << "hipLaunchKernel(";
oss << "function_address=" << data->args.hipLaunchKernel.function_address;
oss << ", numBlocks=" << data->args.hipLaunchKernel.numBlocks;
oss << ", dimBlocks=" << data->args.hipLaunchKernel.dimBlocks;
if (data->args.hipLaunchKernel.args == NULL) oss << ", args=NULL";
else oss << ", args=" << data->args.hipLaunchKernel.args__val;
oss << ", sharedMemBytes=" << data->args.hipLaunchKernel.sharedMemBytes;
oss << ", stream=" << data->args.hipLaunchKernel.stream;
oss << ")";
break;
case HIP_API_ID_hipMalloc:
oss << "hipMalloc(";
if (data->args.hipMalloc.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipMalloc.ptr__val;
oss << ", size=" << data->args.hipMalloc.size;
oss << ")";
break;
case HIP_API_ID_hipMalloc3D:
oss << "hipMalloc3D(";
if (data->args.hipMalloc3D.pitchedDevPtr == NULL) oss << "pitchedDevPtr=NULL";
else oss << "pitchedDevPtr=" << data->args.hipMalloc3D.pitchedDevPtr__val;
oss << ", extent=" << data->args.hipMalloc3D.extent;
oss << ")";
break;
case HIP_API_ID_hipMalloc3DArray:
oss << "hipMalloc3DArray(";
if (data->args.hipMalloc3DArray.array == NULL) oss << "array=NULL";
else oss << "array=" << data->args.hipMalloc3DArray.array__val;
if (data->args.hipMalloc3DArray.desc == NULL) oss << ", desc=NULL";
else oss << ", desc=" << data->args.hipMalloc3DArray.desc__val;
oss << ", extent=" << data->args.hipMalloc3DArray.extent;
oss << ", flags=" << data->args.hipMalloc3DArray.flags;
oss << ")";
break;
case HIP_API_ID_hipMallocArray:
oss << "hipMallocArray(";
if (data->args.hipMallocArray.array == NULL) oss << "array=NULL";
else oss << "array=" << (void*)data->args.hipMallocArray.array__val;
if (data->args.hipMallocArray.desc == NULL) oss << ", desc=NULL";
else oss << ", desc=" << data->args.hipMallocArray.desc__val;
oss << ", width=" << data->args.hipMallocArray.width;
oss << ", height=" << data->args.hipMallocArray.height;
oss << ", flags=" << data->args.hipMallocArray.flags;
oss << ")";
break;
case HIP_API_ID_hipMallocHost:
oss << "hipMallocHost(";
if (data->args.hipMallocHost.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipMallocHost.ptr__val;
oss << ", size=" << data->args.hipMallocHost.size;
oss << ")";
break;
case HIP_API_ID_hipMallocManaged:
oss << "hipMallocManaged(";
if (data->args.hipMallocManaged.dev_ptr == NULL) oss << "dev_ptr=NULL";
else oss << "dev_ptr=" << data->args.hipMallocManaged.dev_ptr__val;
oss << ", size=" << data->args.hipMallocManaged.size;
oss << ", flags=" << data->args.hipMallocManaged.flags;
oss << ")";
break;
case HIP_API_ID_hipMallocMipmappedArray:
oss << "hipMallocMipmappedArray(";
if (data->args.hipMallocMipmappedArray.mipmappedArray == NULL) oss << "mipmappedArray=NULL";
else oss << "mipmappedArray=" << data->args.hipMallocMipmappedArray.mipmappedArray__val;
if (data->args.hipMallocMipmappedArray.desc == NULL) oss << ", desc=NULL";
else oss << ", desc=" << data->args.hipMallocMipmappedArray.desc__val;
oss << ", extent=" << data->args.hipMallocMipmappedArray.extent;
oss << ", numLevels=" << data->args.hipMallocMipmappedArray.numLevels;
oss << ", flags=" << data->args.hipMallocMipmappedArray.flags;
oss << ")";
break;
case HIP_API_ID_hipMallocPitch:
oss << "hipMallocPitch(";
if (data->args.hipMallocPitch.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipMallocPitch.ptr__val;
if (data->args.hipMallocPitch.pitch == NULL) oss << ", pitch=NULL";
else oss << ", pitch=" << data->args.hipMallocPitch.pitch__val;
oss << ", width=" << data->args.hipMallocPitch.width;
oss << ", height=" << data->args.hipMallocPitch.height;
oss << ")";
break;
case HIP_API_ID_hipMemAdvise:
oss << "hipMemAdvise(";
oss << "dev_ptr=" << data->args.hipMemAdvise.dev_ptr;
oss << ", count=" << data->args.hipMemAdvise.count;
oss << ", advice=" << data->args.hipMemAdvise.advice;
oss << ", device=" << data->args.hipMemAdvise.device;
oss << ")";
break;
case HIP_API_ID_hipMemAllocHost:
oss << "hipMemAllocHost(";
if (data->args.hipMemAllocHost.ptr == NULL) oss << "ptr=NULL";
else oss << "ptr=" << data->args.hipMemAllocHost.ptr__val;
oss << ", size=" << data->args.hipMemAllocHost.size;
oss << ")";
break;
case HIP_API_ID_hipMemAllocPitch:
oss << "hipMemAllocPitch(";
if (data->args.hipMemAllocPitch.dptr == NULL) oss << "dptr=NULL";
else oss << "dptr=" << data->args.hipMemAllocPitch.dptr__val;
if (data->args.hipMemAllocPitch.pitch == NULL) oss << ", pitch=NULL";
else oss << ", pitch=" << data->args.hipMemAllocPitch.pitch__val;
oss << ", widthInBytes=" << data->args.hipMemAllocPitch.widthInBytes;
oss << ", height=" << data->args.hipMemAllocPitch.height;
oss << ", elementSizeBytes=" << data->args.hipMemAllocPitch.elementSizeBytes;
oss << ")";
break;
case HIP_API_ID_hipMemGetAddressRange:
oss << "hipMemGetAddressRange(";
if (data->args.hipMemGetAddressRange.pbase == NULL) oss << "pbase=NULL";
else oss << "pbase=" << data->args.hipMemGetAddressRange.pbase__val;
if (data->args.hipMemGetAddressRange.psize == NULL) oss << ", psize=NULL";
else oss << ", psize=" << data->args.hipMemGetAddressRange.psize__val;
oss << ", dptr=" << data->args.hipMemGetAddressRange.dptr;
oss << ")";
break;
case HIP_API_ID_hipMemGetInfo:
oss << "hipMemGetInfo(";
if (data->args.hipMemGetInfo.free == NULL) oss << "free=NULL";
else oss << "free=" << data->args.hipMemGetInfo.free__val;
if (data->args.hipMemGetInfo.total == NULL) oss << ", total=NULL";
else oss << ", total=" << data->args.hipMemGetInfo.total__val;
oss << ")";
break;
case HIP_API_ID_hipMemPrefetchAsync:
oss << "hipMemPrefetchAsync(";
oss << "dev_ptr=" << data->args.hipMemPrefetchAsync.dev_ptr;
oss << ", count=" << data->args.hipMemPrefetchAsync.count;
oss << ", device=" << data->args.hipMemPrefetchAsync.device;
oss << ", stream=" << data->args.hipMemPrefetchAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemPtrGetInfo:
oss << "hipMemPtrGetInfo(";
oss << "ptr=" << data->args.hipMemPtrGetInfo.ptr;
if (data->args.hipMemPtrGetInfo.size == NULL) oss << ", size=NULL";
else oss << ", size=" << data->args.hipMemPtrGetInfo.size__val;
oss << ")";
break;
case HIP_API_ID_hipMemRangeGetAttribute:
oss << "hipMemRangeGetAttribute(";
oss << "data=" << data->args.hipMemRangeGetAttribute.data;
oss << ", data_size=" << data->args.hipMemRangeGetAttribute.data_size;
oss << ", attribute=" << data->args.hipMemRangeGetAttribute.attribute;
oss << ", dev_ptr=" << data->args.hipMemRangeGetAttribute.dev_ptr;
oss << ", count=" << data->args.hipMemRangeGetAttribute.count;
oss << ")";
break;
case HIP_API_ID_hipMemRangeGetAttributes:
oss << "hipMemRangeGetAttributes(";
if (data->args.hipMemRangeGetAttributes.data == NULL) oss << "data=NULL";
else oss << "data=" << data->args.hipMemRangeGetAttributes.data__val;
if (data->args.hipMemRangeGetAttributes.data_sizes == NULL) oss << ", data_sizes=NULL";
else oss << ", data_sizes=" << data->args.hipMemRangeGetAttributes.data_sizes__val;
if (data->args.hipMemRangeGetAttributes.attributes == NULL) oss << ", attributes=NULL";
else oss << ", attributes=" << data->args.hipMemRangeGetAttributes.attributes__val;
oss << ", num_attributes=" << data->args.hipMemRangeGetAttributes.num_attributes;
oss << ", dev_ptr=" << data->args.hipMemRangeGetAttributes.dev_ptr;
oss << ", count=" << data->args.hipMemRangeGetAttributes.count;
oss << ")";
break;
case HIP_API_ID_hipMemcpy:
oss << "hipMemcpy(";
oss << "dst=" << data->args.hipMemcpy.dst;
oss << ", src=" << data->args.hipMemcpy.src;
oss << ", sizeBytes=" << data->args.hipMemcpy.sizeBytes;
oss << ", kind=" << data->args.hipMemcpy.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpy2D:
oss << "hipMemcpy2D(";
oss << "dst=" << data->args.hipMemcpy2D.dst;
oss << ", dpitch=" << data->args.hipMemcpy2D.dpitch;
oss << ", src=" << data->args.hipMemcpy2D.src;
oss << ", spitch=" << data->args.hipMemcpy2D.spitch;
oss << ", width=" << data->args.hipMemcpy2D.width;
oss << ", height=" << data->args.hipMemcpy2D.height;
oss << ", kind=" << data->args.hipMemcpy2D.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpy2DAsync:
oss << "hipMemcpy2DAsync(";
oss << "dst=" << data->args.hipMemcpy2DAsync.dst;
oss << ", dpitch=" << data->args.hipMemcpy2DAsync.dpitch;
oss << ", src=" << data->args.hipMemcpy2DAsync.src;
oss << ", spitch=" << data->args.hipMemcpy2DAsync.spitch;
oss << ", width=" << data->args.hipMemcpy2DAsync.width;
oss << ", height=" << data->args.hipMemcpy2DAsync.height;
oss << ", kind=" << data->args.hipMemcpy2DAsync.kind;
oss << ", stream=" << data->args.hipMemcpy2DAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpy2DFromArray:
oss << "hipMemcpy2DFromArray(";
oss << "dst=" << data->args.hipMemcpy2DFromArray.dst;
oss << ", dpitch=" << data->args.hipMemcpy2DFromArray.dpitch;
oss << ", src=" << data->args.hipMemcpy2DFromArray.src;
oss << ", wOffset=" << data->args.hipMemcpy2DFromArray.wOffset;
oss << ", hOffset=" << data->args.hipMemcpy2DFromArray.hOffset;
oss << ", width=" << data->args.hipMemcpy2DFromArray.width;
oss << ", height=" << data->args.hipMemcpy2DFromArray.height;
oss << ", kind=" << data->args.hipMemcpy2DFromArray.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpy2DFromArrayAsync:
oss << "hipMemcpy2DFromArrayAsync(";
oss << "dst=" << data->args.hipMemcpy2DFromArrayAsync.dst;
oss << ", dpitch=" << data->args.hipMemcpy2DFromArrayAsync.dpitch;
oss << ", src=" << data->args.hipMemcpy2DFromArrayAsync.src;
oss << ", wOffset=" << data->args.hipMemcpy2DFromArrayAsync.wOffset;
oss << ", hOffset=" << data->args.hipMemcpy2DFromArrayAsync.hOffset;
oss << ", width=" << data->args.hipMemcpy2DFromArrayAsync.width;
oss << ", height=" << data->args.hipMemcpy2DFromArrayAsync.height;
oss << ", kind=" << data->args.hipMemcpy2DFromArrayAsync.kind;
oss << ", stream=" << data->args.hipMemcpy2DFromArrayAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpy2DToArray:
oss << "hipMemcpy2DToArray(";
if (data->args.hipMemcpy2DToArray.dst == NULL) oss << "dst=NULL";
else oss << "dst=" << data->args.hipMemcpy2DToArray.dst__val;
oss << ", wOffset=" << data->args.hipMemcpy2DToArray.wOffset;
oss << ", hOffset=" << data->args.hipMemcpy2DToArray.hOffset;
oss << ", src=" << data->args.hipMemcpy2DToArray.src;
oss << ", spitch=" << data->args.hipMemcpy2DToArray.spitch;
oss << ", width=" << data->args.hipMemcpy2DToArray.width;
oss << ", height=" << data->args.hipMemcpy2DToArray.height;
oss << ", kind=" << data->args.hipMemcpy2DToArray.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpy2DToArrayAsync:
oss << "hipMemcpy2DToArrayAsync(";
if (data->args.hipMemcpy2DToArrayAsync.dst == NULL) oss << "dst=NULL";
else oss << "dst=" << data->args.hipMemcpy2DToArrayAsync.dst__val;
oss << ", wOffset=" << data->args.hipMemcpy2DToArrayAsync.wOffset;
oss << ", hOffset=" << data->args.hipMemcpy2DToArrayAsync.hOffset;
oss << ", src=" << data->args.hipMemcpy2DToArrayAsync.src;
oss << ", spitch=" << data->args.hipMemcpy2DToArrayAsync.spitch;
oss << ", width=" << data->args.hipMemcpy2DToArrayAsync.width;
oss << ", height=" << data->args.hipMemcpy2DToArrayAsync.height;
oss << ", kind=" << data->args.hipMemcpy2DToArrayAsync.kind;
oss << ", stream=" << data->args.hipMemcpy2DToArrayAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpy3D:
oss << "hipMemcpy3D(";
if (data->args.hipMemcpy3D.p == NULL) oss << "p=NULL";
else oss << "p=" << data->args.hipMemcpy3D.p__val;
oss << ")";
break;
case HIP_API_ID_hipMemcpy3DAsync:
oss << "hipMemcpy3DAsync(";
if (data->args.hipMemcpy3DAsync.p == NULL) oss << "p=NULL";
else oss << "p=" << data->args.hipMemcpy3DAsync.p__val;
oss << ", stream=" << data->args.hipMemcpy3DAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyAsync:
oss << "hipMemcpyAsync(";
oss << "dst=" << data->args.hipMemcpyAsync.dst;
oss << ", src=" << data->args.hipMemcpyAsync.src;
oss << ", sizeBytes=" << data->args.hipMemcpyAsync.sizeBytes;
oss << ", kind=" << data->args.hipMemcpyAsync.kind;
oss << ", stream=" << data->args.hipMemcpyAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyAtoH:
oss << "hipMemcpyAtoH(";
oss << "dst=" << data->args.hipMemcpyAtoH.dst;
if (data->args.hipMemcpyAtoH.srcArray == NULL) oss << ", srcArray=NULL";
else oss << ", srcArray=" << data->args.hipMemcpyAtoH.srcArray__val;
oss << ", srcOffset=" << data->args.hipMemcpyAtoH.srcOffset;
oss << ", count=" << data->args.hipMemcpyAtoH.count;
oss << ")";
break;
case HIP_API_ID_hipMemcpyDtoD:
oss << "hipMemcpyDtoD(";
oss << "dst=" << data->args.hipMemcpyDtoD.dst;
oss << ", src=" << data->args.hipMemcpyDtoD.src;
oss << ", sizeBytes=" << data->args.hipMemcpyDtoD.sizeBytes;
oss << ")";
break;
case HIP_API_ID_hipMemcpyDtoDAsync:
oss << "hipMemcpyDtoDAsync(";
oss << "dst=" << data->args.hipMemcpyDtoDAsync.dst;
oss << ", src=" << data->args.hipMemcpyDtoDAsync.src;
oss << ", sizeBytes=" << data->args.hipMemcpyDtoDAsync.sizeBytes;
oss << ", stream=" << data->args.hipMemcpyDtoDAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyDtoH:
oss << "hipMemcpyDtoH(";
oss << "dst=" << data->args.hipMemcpyDtoH.dst;
oss << ", src=" << data->args.hipMemcpyDtoH.src;
oss << ", sizeBytes=" << data->args.hipMemcpyDtoH.sizeBytes;
oss << ")";
break;
case HIP_API_ID_hipMemcpyDtoHAsync:
oss << "hipMemcpyDtoHAsync(";
oss << "dst=" << data->args.hipMemcpyDtoHAsync.dst;
oss << ", src=" << data->args.hipMemcpyDtoHAsync.src;
oss << ", sizeBytes=" << data->args.hipMemcpyDtoHAsync.sizeBytes;
oss << ", stream=" << data->args.hipMemcpyDtoHAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyFromArray:
oss << "hipMemcpyFromArray(";
oss << "dst=" << data->args.hipMemcpyFromArray.dst;
oss << ", srcArray=" << data->args.hipMemcpyFromArray.srcArray;
oss << ", wOffset=" << data->args.hipMemcpyFromArray.wOffset;
oss << ", hOffset=" << data->args.hipMemcpyFromArray.hOffset;
oss << ", count=" << data->args.hipMemcpyFromArray.count;
oss << ", kind=" << data->args.hipMemcpyFromArray.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpyFromSymbol:
oss << "hipMemcpyFromSymbol(";
oss << "dst=" << data->args.hipMemcpyFromSymbol.dst;
oss << ", symbol=" << data->args.hipMemcpyFromSymbol.symbol;
oss << ", sizeBytes=" << data->args.hipMemcpyFromSymbol.sizeBytes;
oss << ", offset=" << data->args.hipMemcpyFromSymbol.offset;
oss << ", kind=" << data->args.hipMemcpyFromSymbol.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpyFromSymbolAsync:
oss << "hipMemcpyFromSymbolAsync(";
oss << "dst=" << data->args.hipMemcpyFromSymbolAsync.dst;
oss << ", symbol=" << data->args.hipMemcpyFromSymbolAsync.symbol;
oss << ", sizeBytes=" << data->args.hipMemcpyFromSymbolAsync.sizeBytes;
oss << ", offset=" << data->args.hipMemcpyFromSymbolAsync.offset;
oss << ", kind=" << data->args.hipMemcpyFromSymbolAsync.kind;
oss << ", stream=" << data->args.hipMemcpyFromSymbolAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyHtoA:
oss << "hipMemcpyHtoA(";
if (data->args.hipMemcpyHtoA.dstArray == NULL) oss << "dstArray=NULL";
else oss << "dstArray=" << data->args.hipMemcpyHtoA.dstArray__val;
oss << ", dstOffset=" << data->args.hipMemcpyHtoA.dstOffset;
oss << ", srcHost=" << data->args.hipMemcpyHtoA.srcHost;
oss << ", count=" << data->args.hipMemcpyHtoA.count;
oss << ")";
break;
case HIP_API_ID_hipMemcpyHtoD:
oss << "hipMemcpyHtoD(";
oss << "dst=" << data->args.hipMemcpyHtoD.dst;
oss << ", src=" << data->args.hipMemcpyHtoD.src;
oss << ", sizeBytes=" << data->args.hipMemcpyHtoD.sizeBytes;
oss << ")";
break;
case HIP_API_ID_hipMemcpyHtoDAsync:
oss << "hipMemcpyHtoDAsync(";
oss << "dst=" << data->args.hipMemcpyHtoDAsync.dst;
oss << ", src=" << data->args.hipMemcpyHtoDAsync.src;
oss << ", sizeBytes=" << data->args.hipMemcpyHtoDAsync.sizeBytes;
oss << ", stream=" << data->args.hipMemcpyHtoDAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyParam2D:
oss << "hipMemcpyParam2D(";
if (data->args.hipMemcpyParam2D.pCopy == NULL) oss << "pCopy=NULL";
else oss << "pCopy=" << data->args.hipMemcpyParam2D.pCopy__val;
oss << ")";
break;
case HIP_API_ID_hipMemcpyParam2DAsync:
oss << "hipMemcpyParam2DAsync(";
if (data->args.hipMemcpyParam2DAsync.pCopy == NULL) oss << "pCopy=NULL";
else oss << "pCopy=" << data->args.hipMemcpyParam2DAsync.pCopy__val;
oss << ", stream=" << data->args.hipMemcpyParam2DAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyPeer:
oss << "hipMemcpyPeer(";
oss << "dst=" << data->args.hipMemcpyPeer.dst;
oss << ", dstDeviceId=" << data->args.hipMemcpyPeer.dstDeviceId;
oss << ", src=" << data->args.hipMemcpyPeer.src;
oss << ", srcDeviceId=" << data->args.hipMemcpyPeer.srcDeviceId;
oss << ", sizeBytes=" << data->args.hipMemcpyPeer.sizeBytes;
oss << ")";
break;
case HIP_API_ID_hipMemcpyPeerAsync:
oss << "hipMemcpyPeerAsync(";
oss << "dst=" << data->args.hipMemcpyPeerAsync.dst;
oss << ", dstDeviceId=" << data->args.hipMemcpyPeerAsync.dstDeviceId;
oss << ", src=" << data->args.hipMemcpyPeerAsync.src;
oss << ", srcDevice=" << data->args.hipMemcpyPeerAsync.srcDevice;
oss << ", sizeBytes=" << data->args.hipMemcpyPeerAsync.sizeBytes;
oss << ", stream=" << data->args.hipMemcpyPeerAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyToArray:
oss << "hipMemcpyToArray(";
if (data->args.hipMemcpyToArray.dst == NULL) oss << "dst=NULL";
else oss << "dst=" << data->args.hipMemcpyToArray.dst__val;
oss << ", wOffset=" << data->args.hipMemcpyToArray.wOffset;
oss << ", hOffset=" << data->args.hipMemcpyToArray.hOffset;
oss << ", src=" << data->args.hipMemcpyToArray.src;
oss << ", count=" << data->args.hipMemcpyToArray.count;
oss << ", kind=" << data->args.hipMemcpyToArray.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpyToSymbol:
oss << "hipMemcpyToSymbol(";
oss << "symbol=" << data->args.hipMemcpyToSymbol.symbol;
oss << ", src=" << data->args.hipMemcpyToSymbol.src;
oss << ", sizeBytes=" << data->args.hipMemcpyToSymbol.sizeBytes;
oss << ", offset=" << data->args.hipMemcpyToSymbol.offset;
oss << ", kind=" << data->args.hipMemcpyToSymbol.kind;
oss << ")";
break;
case HIP_API_ID_hipMemcpyToSymbolAsync:
oss << "hipMemcpyToSymbolAsync(";
oss << "symbol=" << data->args.hipMemcpyToSymbolAsync.symbol;
oss << ", src=" << data->args.hipMemcpyToSymbolAsync.src;
oss << ", sizeBytes=" << data->args.hipMemcpyToSymbolAsync.sizeBytes;
oss << ", offset=" << data->args.hipMemcpyToSymbolAsync.offset;
oss << ", kind=" << data->args.hipMemcpyToSymbolAsync.kind;
oss << ", stream=" << data->args.hipMemcpyToSymbolAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemcpyWithStream:
oss << "hipMemcpyWithStream(";
oss << "dst=" << data->args.hipMemcpyWithStream.dst;
oss << ", src=" << data->args.hipMemcpyWithStream.src;
oss << ", sizeBytes=" << data->args.hipMemcpyWithStream.sizeBytes;
oss << ", kind=" << data->args.hipMemcpyWithStream.kind;
oss << ", stream=" << data->args.hipMemcpyWithStream.stream;
oss << ")";
break;
case HIP_API_ID_hipMemset:
oss << "hipMemset(";
oss << "dst=" << data->args.hipMemset.dst;
oss << ", value=" << data->args.hipMemset.value;
oss << ", sizeBytes=" << data->args.hipMemset.sizeBytes;
oss << ")";
break;
case HIP_API_ID_hipMemset2D:
oss << "hipMemset2D(";
oss << "dst=" << data->args.hipMemset2D.dst;
oss << ", pitch=" << data->args.hipMemset2D.pitch;
oss << ", value=" << data->args.hipMemset2D.value;
oss << ", width=" << data->args.hipMemset2D.width;
oss << ", height=" << data->args.hipMemset2D.height;
oss << ")";
break;
case HIP_API_ID_hipMemset2DAsync:
oss << "hipMemset2DAsync(";
oss << "dst=" << data->args.hipMemset2DAsync.dst;
oss << ", pitch=" << data->args.hipMemset2DAsync.pitch;
oss << ", value=" << data->args.hipMemset2DAsync.value;
oss << ", width=" << data->args.hipMemset2DAsync.width;
oss << ", height=" << data->args.hipMemset2DAsync.height;
oss << ", stream=" << data->args.hipMemset2DAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemset3D:
oss << "hipMemset3D(";
oss << "pitchedDevPtr=" << data->args.hipMemset3D.pitchedDevPtr;
oss << ", value=" << data->args.hipMemset3D.value;
oss << ", extent=" << data->args.hipMemset3D.extent;
oss << ")";
break;
case HIP_API_ID_hipMemset3DAsync:
oss << "hipMemset3DAsync(";
oss << "pitchedDevPtr=" << data->args.hipMemset3DAsync.pitchedDevPtr;
oss << ", value=" << data->args.hipMemset3DAsync.value;
oss << ", extent=" << data->args.hipMemset3DAsync.extent;
oss << ", stream=" << data->args.hipMemset3DAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemsetAsync:
oss << "hipMemsetAsync(";
oss << "dst=" << data->args.hipMemsetAsync.dst;
oss << ", value=" << data->args.hipMemsetAsync.value;
oss << ", sizeBytes=" << data->args.hipMemsetAsync.sizeBytes;
oss << ", stream=" << data->args.hipMemsetAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipMemsetD16:
oss << "hipMemsetD16(";
oss << "dest=" << data->args.hipMemsetD16.dest;
oss << ", value=" << data->args.hipMemsetD16.value;
oss << ", count=" << data->args.hipMemsetD16.count;
oss << ")";
break;
case HIP_API_ID_hipMemsetD16Async:
oss << "hipMemsetD16Async(";
oss << "dest=" << data->args.hipMemsetD16Async.dest;
oss << ", value=" << data->args.hipMemsetD16Async.value;
oss << ", count=" << data->args.hipMemsetD16Async.count;
oss << ", stream=" << data->args.hipMemsetD16Async.stream;
oss << ")";
break;
case HIP_API_ID_hipMemsetD32:
oss << "hipMemsetD32(";
oss << "dest=" << data->args.hipMemsetD32.dest;
oss << ", value=" << data->args.hipMemsetD32.value;
oss << ", count=" << data->args.hipMemsetD32.count;
oss << ")";
break;
case HIP_API_ID_hipMemsetD32Async:
oss << "hipMemsetD32Async(";
oss << "dst=" << data->args.hipMemsetD32Async.dst;
oss << ", value=" << data->args.hipMemsetD32Async.value;
oss << ", count=" << data->args.hipMemsetD32Async.count;
oss << ", stream=" << data->args.hipMemsetD32Async.stream;
oss << ")";
break;
case HIP_API_ID_hipMemsetD8:
oss << "hipMemsetD8(";
oss << "dest=" << data->args.hipMemsetD8.dest;
oss << ", value=" << data->args.hipMemsetD8.value;
oss << ", count=" << data->args.hipMemsetD8.count;
oss << ")";
break;
case HIP_API_ID_hipMemsetD8Async:
oss << "hipMemsetD8Async(";
oss << "dest=" << data->args.hipMemsetD8Async.dest;
oss << ", value=" << data->args.hipMemsetD8Async.value;
oss << ", count=" << data->args.hipMemsetD8Async.count;
oss << ", stream=" << data->args.hipMemsetD8Async.stream;
oss << ")";
break;
case HIP_API_ID_hipModuleGetFunction:
oss << "hipModuleGetFunction(";
if (data->args.hipModuleGetFunction.function == NULL) oss << "function=NULL";
else oss << "function=" << data->args.hipModuleGetFunction.function__val;
oss << ", module=" << data->args.hipModuleGetFunction.module;
if (data->args.hipModuleGetFunction.kname == NULL) oss << ", kname=NULL";
else oss << ", kname=" << data->args.hipModuleGetFunction.kname__val;
oss << ")";
break;
case HIP_API_ID_hipModuleGetGlobal:
oss << "hipModuleGetGlobal(";
if (data->args.hipModuleGetGlobal.dptr == NULL) oss << "dptr=NULL";
else oss << "dptr=" << data->args.hipModuleGetGlobal.dptr__val;
if (data->args.hipModuleGetGlobal.bytes == NULL) oss << ", bytes=NULL";
else oss << ", bytes=" << data->args.hipModuleGetGlobal.bytes__val;
oss << ", hmod=" << data->args.hipModuleGetGlobal.hmod;
if (data->args.hipModuleGetGlobal.name == NULL) oss << ", name=NULL";
else oss << ", name=" << data->args.hipModuleGetGlobal.name__val;
oss << ")";
break;
case HIP_API_ID_hipModuleGetTexRef:
oss << "hipModuleGetTexRef(";
if (data->args.hipModuleGetTexRef.texRef == NULL) oss << "texRef=NULL";
else oss << "texRef=" << (void*)data->args.hipModuleGetTexRef.texRef__val;
oss << ", hmod=" << data->args.hipModuleGetTexRef.hmod;
if (data->args.hipModuleGetTexRef.name == NULL) oss << ", name=NULL";
else oss << ", name=" << data->args.hipModuleGetTexRef.name__val;
oss << ")";
break;
case HIP_API_ID_hipModuleLaunchKernel:
oss << "hipModuleLaunchKernel(";
oss << "f=" << data->args.hipModuleLaunchKernel.f;
oss << ", gridDimX=" << data->args.hipModuleLaunchKernel.gridDimX;
oss << ", gridDimY=" << data->args.hipModuleLaunchKernel.gridDimY;
oss << ", gridDimZ=" << data->args.hipModuleLaunchKernel.gridDimZ;
oss << ", blockDimX=" << data->args.hipModuleLaunchKernel.blockDimX;
oss << ", blockDimY=" << data->args.hipModuleLaunchKernel.blockDimY;
oss << ", blockDimZ=" << data->args.hipModuleLaunchKernel.blockDimZ;
oss << ", sharedMemBytes=" << data->args.hipModuleLaunchKernel.sharedMemBytes;
oss << ", stream=" << data->args.hipModuleLaunchKernel.stream;
if (data->args.hipModuleLaunchKernel.kernelParams == NULL) oss << ", kernelParams=NULL";
else oss << ", kernelParams=" << data->args.hipModuleLaunchKernel.kernelParams__val;
if (data->args.hipModuleLaunchKernel.extra == NULL) oss << ", extra=NULL";
else oss << ", extra=" << data->args.hipModuleLaunchKernel.extra__val;
oss << ")";
break;
case HIP_API_ID_hipModuleLoad:
oss << "hipModuleLoad(";
if (data->args.hipModuleLoad.module == NULL) oss << "module=NULL";
else oss << "module=" << data->args.hipModuleLoad.module__val;
if (data->args.hipModuleLoad.fname == NULL) oss << ", fname=NULL";
else oss << ", fname=" << data->args.hipModuleLoad.fname__val;
oss << ")";
break;
case HIP_API_ID_hipModuleLoadData:
oss << "hipModuleLoadData(";
if (data->args.hipModuleLoadData.module == NULL) oss << "module=NULL";
else oss << "module=" << data->args.hipModuleLoadData.module__val;
oss << ", image=" << data->args.hipModuleLoadData.image;
oss << ")";
break;
case HIP_API_ID_hipModuleLoadDataEx:
oss << "hipModuleLoadDataEx(";
if (data->args.hipModuleLoadDataEx.module == NULL) oss << "module=NULL";
else oss << "module=" << data->args.hipModuleLoadDataEx.module__val;
oss << ", image=" << data->args.hipModuleLoadDataEx.image;
oss << ", numOptions=" << data->args.hipModuleLoadDataEx.numOptions;
if (data->args.hipModuleLoadDataEx.options == NULL) oss << ", options=NULL";
else oss << ", options=" << data->args.hipModuleLoadDataEx.options__val;
if (data->args.hipModuleLoadDataEx.optionsValues == NULL) oss << ", optionsValues=NULL";
else oss << ", optionsValues=" << data->args.hipModuleLoadDataEx.optionsValues__val;
oss << ")";
break;
case HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor:
oss << "hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(";
if (data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks == NULL) oss << "numBlocks=NULL";
else oss << "numBlocks=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks__val;
oss << ", f=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.f;
oss << ", blockSize=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.blockSize;
oss << ", dynSharedMemPerBlk=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessor.dynSharedMemPerBlk;
oss << ")";
break;
case HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
oss << "hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(";
if (data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks == NULL) oss << "numBlocks=NULL";
else oss << "numBlocks=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks__val;
oss << ", f=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f;
oss << ", blockSize=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize;
oss << ", dynSharedMemPerBlk=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynSharedMemPerBlk;
oss << ", flags=" << data->args.hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSize:
oss << "hipModuleOccupancyMaxPotentialBlockSize(";
if (data->args.hipModuleOccupancyMaxPotentialBlockSize.gridSize == NULL) oss << "gridSize=NULL";
else oss << "gridSize=" << data->args.hipModuleOccupancyMaxPotentialBlockSize.gridSize__val;
if (data->args.hipModuleOccupancyMaxPotentialBlockSize.blockSize == NULL) oss << ", blockSize=NULL";
else oss << ", blockSize=" << data->args.hipModuleOccupancyMaxPotentialBlockSize.blockSize__val;
oss << ", f=" << data->args.hipModuleOccupancyMaxPotentialBlockSize.f;
oss << ", dynSharedMemPerBlk=" << data->args.hipModuleOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk;
oss << ", blockSizeLimit=" << data->args.hipModuleOccupancyMaxPotentialBlockSize.blockSizeLimit;
oss << ")";
break;
case HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags:
oss << "hipModuleOccupancyMaxPotentialBlockSizeWithFlags(";
if (data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.gridSize == NULL) oss << "gridSize=NULL";
else oss << "gridSize=" << data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.gridSize__val;
if (data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSize == NULL) oss << ", blockSize=NULL";
else oss << ", blockSize=" << data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSize__val;
oss << ", f=" << data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.f;
oss << ", dynSharedMemPerBlk=" << data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.dynSharedMemPerBlk;
oss << ", blockSizeLimit=" << data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.blockSizeLimit;
oss << ", flags=" << data->args.hipModuleOccupancyMaxPotentialBlockSizeWithFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipModuleUnload:
oss << "hipModuleUnload(";
oss << "module=" << data->args.hipModuleUnload.module;
oss << ")";
break;
case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor:
oss << "hipOccupancyMaxActiveBlocksPerMultiprocessor(";
if (data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks == NULL) oss << "numBlocks=NULL";
else oss << "numBlocks=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.numBlocks__val;
oss << ", f=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.f;
oss << ", blockSize=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.blockSize;
oss << ", dynamicSMemSize=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessor.dynamicSMemSize;
oss << ")";
break;
case HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
oss << "hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(";
if (data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks == NULL) oss << "numBlocks=NULL";
else oss << "numBlocks=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.numBlocks__val;
oss << ", f=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.f;
oss << ", blockSize=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.blockSize;
oss << ", dynamicSMemSize=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.dynamicSMemSize;
oss << ", flags=" << data->args.hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipOccupancyMaxPotentialBlockSize:
oss << "hipOccupancyMaxPotentialBlockSize(";
if (data->args.hipOccupancyMaxPotentialBlockSize.gridSize == NULL) oss << "gridSize=NULL";
else oss << "gridSize=" << data->args.hipOccupancyMaxPotentialBlockSize.gridSize__val;
if (data->args.hipOccupancyMaxPotentialBlockSize.blockSize == NULL) oss << ", blockSize=NULL";
else oss << ", blockSize=" << data->args.hipOccupancyMaxPotentialBlockSize.blockSize__val;
oss << ", f=" << data->args.hipOccupancyMaxPotentialBlockSize.f;
oss << ", dynSharedMemPerBlk=" << data->args.hipOccupancyMaxPotentialBlockSize.dynSharedMemPerBlk;
oss << ", blockSizeLimit=" << data->args.hipOccupancyMaxPotentialBlockSize.blockSizeLimit;
oss << ")";
break;
case HIP_API_ID_hipPeekAtLastError:
oss << "hipPeekAtLastError(";
oss << ")";
break;
case HIP_API_ID_hipPointerGetAttributes:
oss << "hipPointerGetAttributes(";
if (data->args.hipPointerGetAttributes.attributes == NULL) oss << "attributes=NULL";
else oss << "attributes=" << data->args.hipPointerGetAttributes.attributes__val;
oss << ", ptr=" << data->args.hipPointerGetAttributes.ptr;
oss << ")";
break;
case HIP_API_ID_hipProfilerStart:
oss << "hipProfilerStart(";
oss << ")";
break;
case HIP_API_ID_hipProfilerStop:
oss << "hipProfilerStop(";
oss << ")";
break;
case HIP_API_ID_hipRuntimeGetVersion:
oss << "hipRuntimeGetVersion(";
if (data->args.hipRuntimeGetVersion.runtimeVersion == NULL) oss << "runtimeVersion=NULL";
else oss << "runtimeVersion=" << data->args.hipRuntimeGetVersion.runtimeVersion__val;
oss << ")";
break;
case HIP_API_ID_hipSetDevice:
oss << "hipSetDevice(";
oss << "deviceId=" << data->args.hipSetDevice.deviceId;
oss << ")";
break;
case HIP_API_ID_hipSetDeviceFlags:
oss << "hipSetDeviceFlags(";
oss << "flags=" << data->args.hipSetDeviceFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipSetupArgument:
oss << "hipSetupArgument(";
oss << "arg=" << data->args.hipSetupArgument.arg;
oss << ", size=" << data->args.hipSetupArgument.size;
oss << ", offset=" << data->args.hipSetupArgument.offset;
oss << ")";
break;
case HIP_API_ID_hipSignalExternalSemaphoresAsync:
oss << "hipSignalExternalSemaphoresAsync(";
if (data->args.hipSignalExternalSemaphoresAsync.extSemArray == NULL) oss << "extSemArray=NULL";
else oss << "extSemArray=" << data->args.hipSignalExternalSemaphoresAsync.extSemArray__val;
if (data->args.hipSignalExternalSemaphoresAsync.paramsArray == NULL) oss << ", paramsArray=NULL";
else oss << ", paramsArray=" << data->args.hipSignalExternalSemaphoresAsync.paramsArray__val;
oss << ", numExtSems=" << data->args.hipSignalExternalSemaphoresAsync.numExtSems;
oss << ", stream=" << data->args.hipSignalExternalSemaphoresAsync.stream;
oss << ")";
break;
case HIP_API_ID_hipStreamAddCallback:
oss << "hipStreamAddCallback(";
oss << "stream=" << data->args.hipStreamAddCallback.stream;
oss << ", callback=" << data->args.hipStreamAddCallback.callback;
oss << ", userData=" << data->args.hipStreamAddCallback.userData;
oss << ", flags=" << data->args.hipStreamAddCallback.flags;
oss << ")";
break;
case HIP_API_ID_hipStreamAttachMemAsync:
oss << "hipStreamAttachMemAsync(";
oss << "stream=" << data->args.hipStreamAttachMemAsync.stream;
oss << ", dev_ptr=" << data->args.hipStreamAttachMemAsync.dev_ptr;
oss << ", length=" << data->args.hipStreamAttachMemAsync.length;
oss << ", flags=" << data->args.hipStreamAttachMemAsync.flags;
oss << ")";
break;
case HIP_API_ID_hipStreamCreate:
oss << "hipStreamCreate(";
if (data->args.hipStreamCreate.stream == NULL) oss << "stream=NULL";
else oss << "stream=" << data->args.hipStreamCreate.stream__val;
oss << ")";
break;
case HIP_API_ID_hipStreamCreateWithFlags:
oss << "hipStreamCreateWithFlags(";
if (data->args.hipStreamCreateWithFlags.stream == NULL) oss << "stream=NULL";
else oss << "stream=" << data->args.hipStreamCreateWithFlags.stream__val;
oss << ", flags=" << data->args.hipStreamCreateWithFlags.flags;
oss << ")";
break;
case HIP_API_ID_hipStreamCreateWithPriority:
oss << "hipStreamCreateWithPriority(";
if (data->args.hipStreamCreateWithPriority.stream == NULL) oss << "stream=NULL";
else oss << "stream=" << data->args.hipStreamCreateWithPriority.stream__val;
oss << ", flags=" << data->args.hipStreamCreateWithPriority.flags;
oss << ", priority=" << data->args.hipStreamCreateWithPriority.priority;
oss << ")";
break;
case HIP_API_ID_hipStreamDestroy:
oss << "hipStreamDestroy(";
oss << "stream=" << data->args.hipStreamDestroy.stream;
oss << ")";
break;
case HIP_API_ID_hipStreamGetFlags:
oss << "hipStreamGetFlags(";
oss << "stream=" << data->args.hipStreamGetFlags.stream;
if (data->args.hipStreamGetFlags.flags == NULL) oss << ", flags=NULL";
else oss << ", flags=" << data->args.hipStreamGetFlags.flags__val;
oss << ")";
break;
case HIP_API_ID_hipStreamGetPriority:
oss << "hipStreamGetPriority(";
oss << "stream=" << data->args.hipStreamGetPriority.stream;
if (data->args.hipStreamGetPriority.priority == NULL) oss << ", priority=NULL";
else oss << ", priority=" << data->args.hipStreamGetPriority.priority__val;
oss << ")";
break;
case HIP_API_ID_hipStreamQuery:
oss << "hipStreamQuery(";
oss << "stream=" << data->args.hipStreamQuery.stream;
oss << ")";
break;
case HIP_API_ID_hipStreamSynchronize:
oss << "hipStreamSynchronize(";
oss << "stream=" << data->args.hipStreamSynchronize.stream;
oss << ")";
break;
case HIP_API_ID_hipStreamWaitEvent:
oss << "hipStreamWaitEvent(";
oss << "stream=" << data->args.hipStreamWaitEvent.stream;
oss << ", event=" << data->args.hipStreamWaitEvent.event;
oss << ", flags=" << data->args.hipStreamWaitEvent.flags;
oss << ")";
break;
case HIP_API_ID_hipStreamWaitValue32:
oss << "hipStreamWaitValue32(";
oss << "stream=" << data->args.hipStreamWaitValue32.stream;
oss << ", ptr=" << data->args.hipStreamWaitValue32.ptr;
oss << ", value=" << data->args.hipStreamWaitValue32.value;
oss << ", flags=" << data->args.hipStreamWaitValue32.flags;
oss << ", mask=" << data->args.hipStreamWaitValue32.mask;
oss << ")";
break;
case HIP_API_ID_hipStreamWaitValue64:
oss << "hipStreamWaitValue64(";
oss << "stream=" << data->args.hipStreamWaitValue64.stream;
oss << ", ptr=" << data->args.hipStreamWaitValue64.ptr;
oss << ", value=" << data->args.hipStreamWaitValue64.value;
oss << ", flags=" << data->args.hipStreamWaitValue64.flags;
oss << ", mask=" << data->args.hipStreamWaitValue64.mask;
oss << ")";
break;
case HIP_API_ID_hipStreamWriteValue32:
oss << "hipStreamWriteValue32(";
oss << "stream=" << data->args.hipStreamWriteValue32.stream;
oss << ", ptr=" << data->args.hipStreamWriteValue32.ptr;
oss << ", value=" << data->args.hipStreamWriteValue32.value;
oss << ", flags=" << data->args.hipStreamWriteValue32.flags;
oss << ")";
break;
case HIP_API_ID_hipStreamWriteValue64:
oss << "hipStreamWriteValue64(";
oss << "stream=" << data->args.hipStreamWriteValue64.stream;
oss << ", ptr=" << data->args.hipStreamWriteValue64.ptr;
oss << ", value=" << data->args.hipStreamWriteValue64.value;
oss << ", flags=" << data->args.hipStreamWriteValue64.flags;
oss << ")";
break;
case HIP_API_ID_hipWaitExternalSemaphoresAsync:
oss << "hipWaitExternalSemaphoresAsync(";
if (data->args.hipWaitExternalSemaphoresAsync.extSemArray == NULL) oss << "extSemArray=NULL";
else oss << "extSemArray=" << data->args.hipWaitExternalSemaphoresAsync.extSemArray__val;
if (data->args.hipWaitExternalSemaphoresAsync.paramsArray == NULL) oss << ", paramsArray=NULL";
else oss << ", paramsArray=" << data->args.hipWaitExternalSemaphoresAsync.paramsArray__val;
oss << ", numExtSems=" << data->args.hipWaitExternalSemaphoresAsync.numExtSems;
oss << ", stream=" << data->args.hipWaitExternalSemaphoresAsync.stream;
oss << ")";
break;
default: oss << "unknown";
};
return strdup(oss.str().c_str());
}
#endif // HIP_PROF_HIP_API_STRING
#endif // _HIP_PROF_STR_H