|
|
|
@@ -7,7 +7,12 @@
|
|
|
|
|
#define _HIP_PROF_STR_H
|
|
|
|
|
#define HIP_PROF_VER 1
|
|
|
|
|
|
|
|
|
|
#include <hip/amd_detail/amd_hip_gl_interop.h>
|
|
|
|
|
#include <hip/hip_runtime_api.h>
|
|
|
|
|
#include <hip/hip_deprecated.h>
|
|
|
|
|
#include "amd_hip_gl_interop.h"
|
|
|
|
|
|
|
|
|
|
#define HIP_API_ID_CONCAT_HELPER(a,b) a##b
|
|
|
|
|
#define HIP_API_ID_CONCAT(a,b) HIP_API_ID_CONCAT_HELPER(a,b)
|
|
|
|
|
|
|
|
|
|
// HIP API callbacks ID enumeration
|
|
|
|
|
enum hip_api_id_t {
|
|
|
|
@@ -18,7 +23,7 @@ enum hip_api_id_t {
|
|
|
|
|
HIP_API_ID_hipArray3DCreate = 3,
|
|
|
|
|
HIP_API_ID_hipArrayCreate = 4,
|
|
|
|
|
HIP_API_ID_hipArrayDestroy = 5,
|
|
|
|
|
HIP_API_ID_hipChooseDevice = 6,
|
|
|
|
|
HIP_API_ID_hipChooseDeviceR0000 = 6,
|
|
|
|
|
HIP_API_ID_hipConfigureCall = 7,
|
|
|
|
|
HIP_API_ID_hipCtxCreate = 8,
|
|
|
|
|
HIP_API_ID_hipCtxDestroy = 9,
|
|
|
|
@@ -93,7 +98,7 @@ enum hip_api_id_t {
|
|
|
|
|
HIP_API_ID_hipGetDevice = 78,
|
|
|
|
|
HIP_API_ID_hipGetDeviceCount = 79,
|
|
|
|
|
HIP_API_ID_hipGetDeviceFlags = 80,
|
|
|
|
|
HIP_API_ID_hipGetDevicePropertiesR0600 = 81,
|
|
|
|
|
HIP_API_ID_hipGetDevicePropertiesR0000 = 81,
|
|
|
|
|
HIP_API_ID_RESERVED_82 = 82,
|
|
|
|
|
HIP_API_ID_hipGetErrorString = 83,
|
|
|
|
|
HIP_API_ID_hipGetLastError = 84,
|
|
|
|
@@ -377,8 +382,24 @@ enum hip_api_id_t {
|
|
|
|
|
HIP_API_ID_hipArrayGetInfo = 362,
|
|
|
|
|
HIP_API_ID_hipStreamGetDevice = 363,
|
|
|
|
|
HIP_API_ID_hipExternalMemoryGetMappedMipmappedArray = 364,
|
|
|
|
|
HIP_API_ID_hipDrvGraphAddMemcpyNode = 365,
|
|
|
|
|
HIP_API_ID_LAST = 365,
|
|
|
|
|
HIP_API_ID_hipChooseDeviceR0600 = 365,
|
|
|
|
|
HIP_API_ID_hipDrvGraphAddMemcpyNode = 366,
|
|
|
|
|
HIP_API_ID_hipDrvGraphAddMemsetNode = 367,
|
|
|
|
|
HIP_API_ID_hipDrvGraphMemcpyNodeGetParams = 368,
|
|
|
|
|
HIP_API_ID_hipDrvGraphMemcpyNodeSetParams = 369,
|
|
|
|
|
HIP_API_ID_hipGetDevicePropertiesR0600 = 370,
|
|
|
|
|
HIP_API_ID_hipGraphAddExternalSemaphoresSignalNode = 371,
|
|
|
|
|
HIP_API_ID_hipGraphAddExternalSemaphoresWaitNode = 372,
|
|
|
|
|
HIP_API_ID_hipGraphExecExternalSemaphoresSignalNodeSetParams = 373,
|
|
|
|
|
HIP_API_ID_hipGraphExecExternalSemaphoresWaitNodeSetParams = 374,
|
|
|
|
|
HIP_API_ID_hipGraphExternalSemaphoresSignalNodeGetParams = 375,
|
|
|
|
|
HIP_API_ID_hipGraphExternalSemaphoresSignalNodeSetParams = 376,
|
|
|
|
|
HIP_API_ID_hipGraphExternalSemaphoresWaitNodeGetParams = 377,
|
|
|
|
|
HIP_API_ID_hipGraphExternalSemaphoresWaitNodeSetParams = 378,
|
|
|
|
|
HIP_API_ID_LAST = 378,
|
|
|
|
|
|
|
|
|
|
HIP_API_ID_hipChooseDevice = HIP_API_ID_CONCAT(HIP_API_ID_,hipChooseDevice),
|
|
|
|
|
HIP_API_ID_hipGetDeviceProperties = HIP_API_ID_CONCAT(HIP_API_ID_,hipGetDeviceProperties),
|
|
|
|
|
|
|
|
|
|
HIP_API_ID_hipBindTexture = HIP_API_ID_NONE,
|
|
|
|
|
HIP_API_ID_hipBindTexture2D = HIP_API_ID_NONE,
|
|
|
|
@@ -393,14 +414,11 @@ enum hip_api_id_t {
|
|
|
|
|
HIP_API_ID_hipGetTextureObjectTextureDesc = HIP_API_ID_NONE,
|
|
|
|
|
HIP_API_ID_hipGetTextureReference = 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_hipSetValidDevices = HIP_API_ID_NONE,
|
|
|
|
|
HIP_API_ID_hipTexObjectCreate = HIP_API_ID_NONE,
|
|
|
|
|
HIP_API_ID_hipTexObjectDestroy = HIP_API_ID_NONE,
|
|
|
|
@@ -419,6 +437,9 @@ enum hip_api_id_t {
|
|
|
|
|
HIP_API_ID_hipUnbindTexture = HIP_API_ID_NONE,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#undef HIP_API_ID_CONCAT_HELPER
|
|
|
|
|
#undef HIP_API_ID_CONCAT
|
|
|
|
|
|
|
|
|
|
// Return the HIP API string for a given callback ID
|
|
|
|
|
static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
switch(id) {
|
|
|
|
@@ -430,7 +451,8 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
case HIP_API_ID_hipArrayDestroy: return "hipArrayDestroy";
|
|
|
|
|
case HIP_API_ID_hipArrayGetDescriptor: return "hipArrayGetDescriptor";
|
|
|
|
|
case HIP_API_ID_hipArrayGetInfo: return "hipArrayGetInfo";
|
|
|
|
|
case HIP_API_ID_hipChooseDevice: return "hipChooseDevice";
|
|
|
|
|
case HIP_API_ID_hipChooseDeviceR0000: return "hipChooseDeviceR0000";
|
|
|
|
|
case HIP_API_ID_hipChooseDeviceR0600: return "hipChooseDeviceR0600";
|
|
|
|
|
case HIP_API_ID_hipConfigureCall: return "hipConfigureCall";
|
|
|
|
|
case HIP_API_ID_hipCreateSurfaceObject: return "hipCreateSurfaceObject";
|
|
|
|
|
case HIP_API_ID_hipCtxCreate: return "hipCtxCreate";
|
|
|
|
@@ -485,6 +507,10 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
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_hipDrvGraphAddMemcpyNode: return "hipDrvGraphAddMemcpyNode";
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemsetNode: return "hipDrvGraphAddMemsetNode";
|
|
|
|
|
case HIP_API_ID_hipDrvGraphMemcpyNodeGetParams: return "hipDrvGraphMemcpyNodeGetParams";
|
|
|
|
|
case HIP_API_ID_hipDrvGraphMemcpyNodeSetParams: return "hipDrvGraphMemcpyNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipDrvMemcpy2DUnaligned: return "hipDrvMemcpy2DUnaligned";
|
|
|
|
|
case HIP_API_ID_hipDrvMemcpy3D: return "hipDrvMemcpy3D";
|
|
|
|
|
case HIP_API_ID_hipDrvMemcpy3DAsync: return "hipDrvMemcpy3DAsync";
|
|
|
|
@@ -504,6 +530,7 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
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_hipExternalMemoryGetMappedMipmappedArray: return "hipExternalMemoryGetMappedMipmappedArray";
|
|
|
|
|
case HIP_API_ID_hipFree: return "hipFree";
|
|
|
|
|
case HIP_API_ID_hipFreeArray: return "hipFreeArray";
|
|
|
|
|
case HIP_API_ID_hipFreeAsync: return "hipFreeAsync";
|
|
|
|
@@ -519,6 +546,7 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
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_hipGetDevicePropertiesR0000: return "hipGetDevicePropertiesR0000";
|
|
|
|
|
case HIP_API_ID_hipGetDevicePropertiesR0600: return "hipGetDevicePropertiesR0600";
|
|
|
|
|
case HIP_API_ID_hipGetErrorString: return "hipGetErrorString";
|
|
|
|
|
case HIP_API_ID_hipGetLastError: return "hipGetLastError";
|
|
|
|
@@ -530,12 +558,13 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
case HIP_API_ID_hipGraphAddEmptyNode: return "hipGraphAddEmptyNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddEventRecordNode: return "hipGraphAddEventRecordNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddEventWaitNode: return "hipGraphAddEventWaitNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddExternalSemaphoresSignalNode: return "hipGraphAddExternalSemaphoresSignalNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddExternalSemaphoresWaitNode: return "hipGraphAddExternalSemaphoresWaitNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddHostNode: return "hipGraphAddHostNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddKernelNode: return "hipGraphAddKernelNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddMemAllocNode: return "hipGraphAddMemAllocNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddMemFreeNode: return "hipGraphAddMemFreeNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddMemcpyNode: return "hipGraphAddMemcpyNode";
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemcpyNode: return "hipDrvGraphAddMemcpyNode";
|
|
|
|
|
case HIP_API_ID_hipGraphAddMemcpyNode1D: return "hipGraphAddMemcpyNode1D";
|
|
|
|
|
case HIP_API_ID_hipGraphAddMemcpyNodeFromSymbol: return "hipGraphAddMemcpyNodeFromSymbol";
|
|
|
|
|
case HIP_API_ID_hipGraphAddMemcpyNodeToSymbol: return "hipGraphAddMemcpyNodeToSymbol";
|
|
|
|
@@ -554,6 +583,8 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
case HIP_API_ID_hipGraphExecDestroy: return "hipGraphExecDestroy";
|
|
|
|
|
case HIP_API_ID_hipGraphExecEventRecordNodeSetEvent: return "hipGraphExecEventRecordNodeSetEvent";
|
|
|
|
|
case HIP_API_ID_hipGraphExecEventWaitNodeSetEvent: return "hipGraphExecEventWaitNodeSetEvent";
|
|
|
|
|
case HIP_API_ID_hipGraphExecExternalSemaphoresSignalNodeSetParams: return "hipGraphExecExternalSemaphoresSignalNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExecExternalSemaphoresWaitNodeSetParams: return "hipGraphExecExternalSemaphoresWaitNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExecHostNodeSetParams: return "hipGraphExecHostNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExecKernelNodeSetParams: return "hipGraphExecKernelNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExecMemcpyNodeSetParams: return "hipGraphExecMemcpyNodeSetParams";
|
|
|
|
@@ -562,6 +593,10 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
case HIP_API_ID_hipGraphExecMemcpyNodeSetParamsToSymbol: return "hipGraphExecMemcpyNodeSetParamsToSymbol";
|
|
|
|
|
case HIP_API_ID_hipGraphExecMemsetNodeSetParams: return "hipGraphExecMemsetNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExecUpdate: return "hipGraphExecUpdate";
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresSignalNodeGetParams: return "hipGraphExternalSemaphoresSignalNodeGetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresSignalNodeSetParams: return "hipGraphExternalSemaphoresSignalNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresWaitNodeGetParams: return "hipGraphExternalSemaphoresWaitNodeGetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresWaitNodeSetParams: return "hipGraphExternalSemaphoresWaitNodeSetParams";
|
|
|
|
|
case HIP_API_ID_hipGraphGetEdges: return "hipGraphGetEdges";
|
|
|
|
|
case HIP_API_ID_hipGraphGetNodes: return "hipGraphGetNodes";
|
|
|
|
|
case HIP_API_ID_hipGraphGetRootNodes: return "hipGraphGetRootNodes";
|
|
|
|
@@ -782,7 +817,6 @@ static inline const char* hip_api_name(const uint32_t id) {
|
|
|
|
|
case HIP_API_ID_hipUserObjectRelease: return "hipUserObjectRelease";
|
|
|
|
|
case HIP_API_ID_hipUserObjectRetain: return "hipUserObjectRetain";
|
|
|
|
|
case HIP_API_ID_hipWaitExternalSemaphoresAsync: return "hipWaitExternalSemaphoresAsync";
|
|
|
|
|
case HIP_API_ID_hipExternalMemoryGetMappedMipmappedArray: return "hipExternalMemoryGetMappedMipmappedArray";
|
|
|
|
|
};
|
|
|
|
|
return "unknown";
|
|
|
|
|
};
|
|
|
|
@@ -798,7 +832,8 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
if (strcmp("hipArrayDestroy", name) == 0) return HIP_API_ID_hipArrayDestroy;
|
|
|
|
|
if (strcmp("hipArrayGetDescriptor", name) == 0) return HIP_API_ID_hipArrayGetDescriptor;
|
|
|
|
|
if (strcmp("hipArrayGetInfo", name) == 0) return HIP_API_ID_hipArrayGetInfo;
|
|
|
|
|
if (strcmp("hipChooseDevice", name) == 0) return HIP_API_ID_hipChooseDevice;
|
|
|
|
|
if (strcmp("hipChooseDeviceR0000", name) == 0) return HIP_API_ID_hipChooseDeviceR0000;
|
|
|
|
|
if (strcmp("hipChooseDeviceR0600", name) == 0) return HIP_API_ID_hipChooseDeviceR0600;
|
|
|
|
|
if (strcmp("hipConfigureCall", name) == 0) return HIP_API_ID_hipConfigureCall;
|
|
|
|
|
if (strcmp("hipCreateSurfaceObject", name) == 0) return HIP_API_ID_hipCreateSurfaceObject;
|
|
|
|
|
if (strcmp("hipCtxCreate", name) == 0) return HIP_API_ID_hipCtxCreate;
|
|
|
|
@@ -853,6 +888,10 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
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("hipDrvGraphAddMemcpyNode", name) == 0) return HIP_API_ID_hipDrvGraphAddMemcpyNode;
|
|
|
|
|
if (strcmp("hipDrvGraphAddMemsetNode", name) == 0) return HIP_API_ID_hipDrvGraphAddMemsetNode;
|
|
|
|
|
if (strcmp("hipDrvGraphMemcpyNodeGetParams", name) == 0) return HIP_API_ID_hipDrvGraphMemcpyNodeGetParams;
|
|
|
|
|
if (strcmp("hipDrvGraphMemcpyNodeSetParams", name) == 0) return HIP_API_ID_hipDrvGraphMemcpyNodeSetParams;
|
|
|
|
|
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;
|
|
|
|
@@ -872,6 +911,7 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
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("hipExternalMemoryGetMappedMipmappedArray", name) == 0) return HIP_API_ID_hipExternalMemoryGetMappedMipmappedArray;
|
|
|
|
|
if (strcmp("hipFree", name) == 0) return HIP_API_ID_hipFree;
|
|
|
|
|
if (strcmp("hipFreeArray", name) == 0) return HIP_API_ID_hipFreeArray;
|
|
|
|
|
if (strcmp("hipFreeAsync", name) == 0) return HIP_API_ID_hipFreeAsync;
|
|
|
|
@@ -887,6 +927,7 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
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("hipGetDevicePropertiesR0000", name) == 0) return HIP_API_ID_hipGetDevicePropertiesR0000;
|
|
|
|
|
if (strcmp("hipGetDevicePropertiesR0600", name) == 0) return HIP_API_ID_hipGetDevicePropertiesR0600;
|
|
|
|
|
if (strcmp("hipGetErrorString", name) == 0) return HIP_API_ID_hipGetErrorString;
|
|
|
|
|
if (strcmp("hipGetLastError", name) == 0) return HIP_API_ID_hipGetLastError;
|
|
|
|
@@ -898,6 +939,8 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
if (strcmp("hipGraphAddEmptyNode", name) == 0) return HIP_API_ID_hipGraphAddEmptyNode;
|
|
|
|
|
if (strcmp("hipGraphAddEventRecordNode", name) == 0) return HIP_API_ID_hipGraphAddEventRecordNode;
|
|
|
|
|
if (strcmp("hipGraphAddEventWaitNode", name) == 0) return HIP_API_ID_hipGraphAddEventWaitNode;
|
|
|
|
|
if (strcmp("hipGraphAddExternalSemaphoresSignalNode", name) == 0) return HIP_API_ID_hipGraphAddExternalSemaphoresSignalNode;
|
|
|
|
|
if (strcmp("hipGraphAddExternalSemaphoresWaitNode", name) == 0) return HIP_API_ID_hipGraphAddExternalSemaphoresWaitNode;
|
|
|
|
|
if (strcmp("hipGraphAddHostNode", name) == 0) return HIP_API_ID_hipGraphAddHostNode;
|
|
|
|
|
if (strcmp("hipGraphAddKernelNode", name) == 0) return HIP_API_ID_hipGraphAddKernelNode;
|
|
|
|
|
if (strcmp("hipGraphAddMemAllocNode", name) == 0) return HIP_API_ID_hipGraphAddMemAllocNode;
|
|
|
|
@@ -921,6 +964,8 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
if (strcmp("hipGraphExecDestroy", name) == 0) return HIP_API_ID_hipGraphExecDestroy;
|
|
|
|
|
if (strcmp("hipGraphExecEventRecordNodeSetEvent", name) == 0) return HIP_API_ID_hipGraphExecEventRecordNodeSetEvent;
|
|
|
|
|
if (strcmp("hipGraphExecEventWaitNodeSetEvent", name) == 0) return HIP_API_ID_hipGraphExecEventWaitNodeSetEvent;
|
|
|
|
|
if (strcmp("hipGraphExecExternalSemaphoresSignalNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExecExternalSemaphoresSignalNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphExecExternalSemaphoresWaitNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExecExternalSemaphoresWaitNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphExecHostNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExecHostNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphExecKernelNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExecKernelNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphExecMemcpyNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExecMemcpyNodeSetParams;
|
|
|
|
@@ -929,6 +974,10 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
if (strcmp("hipGraphExecMemcpyNodeSetParamsToSymbol", name) == 0) return HIP_API_ID_hipGraphExecMemcpyNodeSetParamsToSymbol;
|
|
|
|
|
if (strcmp("hipGraphExecMemsetNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExecMemsetNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphExecUpdate", name) == 0) return HIP_API_ID_hipGraphExecUpdate;
|
|
|
|
|
if (strcmp("hipGraphExternalSemaphoresSignalNodeGetParams", name) == 0) return HIP_API_ID_hipGraphExternalSemaphoresSignalNodeGetParams;
|
|
|
|
|
if (strcmp("hipGraphExternalSemaphoresSignalNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExternalSemaphoresSignalNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphExternalSemaphoresWaitNodeGetParams", name) == 0) return HIP_API_ID_hipGraphExternalSemaphoresWaitNodeGetParams;
|
|
|
|
|
if (strcmp("hipGraphExternalSemaphoresWaitNodeSetParams", name) == 0) return HIP_API_ID_hipGraphExternalSemaphoresWaitNodeSetParams;
|
|
|
|
|
if (strcmp("hipGraphGetEdges", name) == 0) return HIP_API_ID_hipGraphGetEdges;
|
|
|
|
|
if (strcmp("hipGraphGetNodes", name) == 0) return HIP_API_ID_hipGraphGetNodes;
|
|
|
|
|
if (strcmp("hipGraphGetRootNodes", name) == 0) return HIP_API_ID_hipGraphGetRootNodes;
|
|
|
|
@@ -1149,8 +1198,6 @@ static inline uint32_t hipApiIdByName(const char* name) {
|
|
|
|
|
if (strcmp("hipUserObjectRelease", name) == 0) return HIP_API_ID_hipUserObjectRelease;
|
|
|
|
|
if (strcmp("hipUserObjectRetain", name) == 0) return HIP_API_ID_hipUserObjectRetain;
|
|
|
|
|
if (strcmp("hipWaitExternalSemaphoresAsync", name) == 0) return HIP_API_ID_hipWaitExternalSemaphoresAsync;
|
|
|
|
|
if (strcmp("hipExternalMemoryGetMappedMipmappedArray", name) == 0) return HIP_API_ID_hipExternalMemoryGetMappedMipmappedArray;
|
|
|
|
|
if (strcmp("hipDrvGraphAddMemcpyNode", name) == 0) return HIP_API_ID_hipDrvGraphAddMemcpyNode;
|
|
|
|
|
return HIP_API_ID_NONE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -1209,12 +1256,18 @@ typedef struct hip_api_data_s {
|
|
|
|
|
unsigned int flags__val;
|
|
|
|
|
hipArray_t array;
|
|
|
|
|
} hipArrayGetInfo;
|
|
|
|
|
struct {
|
|
|
|
|
int* device;
|
|
|
|
|
int device__val;
|
|
|
|
|
const hipDeviceProp_tR0000* prop;
|
|
|
|
|
hipDeviceProp_tR0000 prop__val;
|
|
|
|
|
} hipChooseDeviceR0000;
|
|
|
|
|
struct {
|
|
|
|
|
int* device;
|
|
|
|
|
int device__val;
|
|
|
|
|
const hipDeviceProp_tR0600* prop;
|
|
|
|
|
hipDeviceProp_tR0600 prop__val;
|
|
|
|
|
} hipChooseDevice;
|
|
|
|
|
} hipChooseDeviceR0600;
|
|
|
|
|
struct {
|
|
|
|
|
dim3 gridDim;
|
|
|
|
|
dim3 blockDim;
|
|
|
|
@@ -1441,6 +1494,38 @@ typedef struct hip_api_data_s {
|
|
|
|
|
int* driverVersion;
|
|
|
|
|
int driverVersion__val;
|
|
|
|
|
} hipDriverGetVersion;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t* phGraphNode;
|
|
|
|
|
hipGraphNode_t phGraphNode__val;
|
|
|
|
|
hipGraph_t hGraph;
|
|
|
|
|
const hipGraphNode_t* dependencies;
|
|
|
|
|
hipGraphNode_t dependencies__val;
|
|
|
|
|
size_t numDependencies;
|
|
|
|
|
const HIP_MEMCPY3D* copyParams;
|
|
|
|
|
HIP_MEMCPY3D copyParams__val;
|
|
|
|
|
hipCtx_t ctx;
|
|
|
|
|
} hipDrvGraphAddMemcpyNode;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t* phGraphNode;
|
|
|
|
|
hipGraphNode_t phGraphNode__val;
|
|
|
|
|
hipGraph_t hGraph;
|
|
|
|
|
const hipGraphNode_t* dependencies;
|
|
|
|
|
hipGraphNode_t dependencies__val;
|
|
|
|
|
size_t numDependencies;
|
|
|
|
|
const HIP_MEMSET_NODE_PARAMS* memsetParams;
|
|
|
|
|
HIP_MEMSET_NODE_PARAMS memsetParams__val;
|
|
|
|
|
hipCtx_t ctx;
|
|
|
|
|
} hipDrvGraphAddMemsetNode;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
HIP_MEMCPY3D* nodeParams;
|
|
|
|
|
HIP_MEMCPY3D nodeParams__val;
|
|
|
|
|
} hipDrvGraphMemcpyNodeGetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
const HIP_MEMCPY3D* nodeParams;
|
|
|
|
|
HIP_MEMCPY3D nodeParams__val;
|
|
|
|
|
} hipDrvGraphMemcpyNodeSetParams;
|
|
|
|
|
struct {
|
|
|
|
|
const hip_Memcpy2D* pCopy;
|
|
|
|
|
hip_Memcpy2D pCopy__val;
|
|
|
|
@@ -1560,6 +1645,13 @@ typedef struct hip_api_data_s {
|
|
|
|
|
const hipExternalMemoryBufferDesc* bufferDesc;
|
|
|
|
|
hipExternalMemoryBufferDesc bufferDesc__val;
|
|
|
|
|
} hipExternalMemoryGetMappedBuffer;
|
|
|
|
|
struct {
|
|
|
|
|
hipMipmappedArray_t* mipmap;
|
|
|
|
|
hipMipmappedArray_t mipmap__val;
|
|
|
|
|
hipExternalMemory_t extMem;
|
|
|
|
|
const hipExternalMemoryMipmappedArrayDesc* mipmapDesc;
|
|
|
|
|
hipExternalMemoryMipmappedArrayDesc mipmapDesc__val;
|
|
|
|
|
} hipExternalMemoryGetMappedMipmappedArray;
|
|
|
|
|
struct {
|
|
|
|
|
void* ptr;
|
|
|
|
|
} hipFree;
|
|
|
|
@@ -1626,9 +1718,14 @@ typedef struct hip_api_data_s {
|
|
|
|
|
unsigned int flags__val;
|
|
|
|
|
} hipGetDeviceFlags;
|
|
|
|
|
struct {
|
|
|
|
|
hipDeviceProp_tR0600* props;
|
|
|
|
|
hipDeviceProp_tR0600 props__val;
|
|
|
|
|
hipDevice_t device;
|
|
|
|
|
hipDeviceProp_tR0000* prop;
|
|
|
|
|
hipDeviceProp_tR0000 prop__val;
|
|
|
|
|
int device;
|
|
|
|
|
} hipGetDevicePropertiesR0000;
|
|
|
|
|
struct {
|
|
|
|
|
hipDeviceProp_tR0600* prop;
|
|
|
|
|
hipDeviceProp_tR0600 prop__val;
|
|
|
|
|
int deviceId;
|
|
|
|
|
} hipGetDevicePropertiesR0600;
|
|
|
|
|
struct {
|
|
|
|
|
hipArray_t* levelArray;
|
|
|
|
@@ -1689,6 +1786,26 @@ typedef struct hip_api_data_s {
|
|
|
|
|
size_t numDependencies;
|
|
|
|
|
hipEvent_t event;
|
|
|
|
|
} hipGraphAddEventWaitNode;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t* pGraphNode;
|
|
|
|
|
hipGraphNode_t pGraphNode__val;
|
|
|
|
|
hipGraph_t graph;
|
|
|
|
|
const hipGraphNode_t* pDependencies;
|
|
|
|
|
hipGraphNode_t pDependencies__val;
|
|
|
|
|
size_t numDependencies;
|
|
|
|
|
const hipExternalSemaphoreSignalNodeParams* nodeParams;
|
|
|
|
|
hipExternalSemaphoreSignalNodeParams nodeParams__val;
|
|
|
|
|
} hipGraphAddExternalSemaphoresSignalNode;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t* pGraphNode;
|
|
|
|
|
hipGraphNode_t pGraphNode__val;
|
|
|
|
|
hipGraph_t graph;
|
|
|
|
|
const hipGraphNode_t* pDependencies;
|
|
|
|
|
hipGraphNode_t pDependencies__val;
|
|
|
|
|
size_t numDependencies;
|
|
|
|
|
const hipExternalSemaphoreWaitNodeParams* nodeParams;
|
|
|
|
|
hipExternalSemaphoreWaitNodeParams nodeParams__val;
|
|
|
|
|
} hipGraphAddExternalSemaphoresWaitNode;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t* pGraphNode;
|
|
|
|
|
hipGraphNode_t pGraphNode__val;
|
|
|
|
@@ -1849,6 +1966,18 @@ typedef struct hip_api_data_s {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
hipEvent_t event;
|
|
|
|
|
} hipGraphExecEventWaitNodeSetEvent;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphExec_t hGraphExec;
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
const hipExternalSemaphoreSignalNodeParams* nodeParams;
|
|
|
|
|
hipExternalSemaphoreSignalNodeParams nodeParams__val;
|
|
|
|
|
} hipGraphExecExternalSemaphoresSignalNodeSetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphExec_t hGraphExec;
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
const hipExternalSemaphoreWaitNodeParams* nodeParams;
|
|
|
|
|
hipExternalSemaphoreWaitNodeParams nodeParams__val;
|
|
|
|
|
} hipGraphExecExternalSemaphoresWaitNodeSetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphExec_t hGraphExec;
|
|
|
|
|
hipGraphNode_t node;
|
|
|
|
@@ -1907,6 +2036,26 @@ typedef struct hip_api_data_s {
|
|
|
|
|
hipGraphExecUpdateResult* updateResult_out;
|
|
|
|
|
hipGraphExecUpdateResult updateResult_out__val;
|
|
|
|
|
} hipGraphExecUpdate;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
hipExternalSemaphoreSignalNodeParams* params_out;
|
|
|
|
|
hipExternalSemaphoreSignalNodeParams params_out__val;
|
|
|
|
|
} hipGraphExternalSemaphoresSignalNodeGetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
const hipExternalSemaphoreSignalNodeParams* nodeParams;
|
|
|
|
|
hipExternalSemaphoreSignalNodeParams nodeParams__val;
|
|
|
|
|
} hipGraphExternalSemaphoresSignalNodeSetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
hipExternalSemaphoreWaitNodeParams* params_out;
|
|
|
|
|
hipExternalSemaphoreWaitNodeParams params_out__val;
|
|
|
|
|
} hipGraphExternalSemaphoresWaitNodeGetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t hNode;
|
|
|
|
|
const hipExternalSemaphoreWaitNodeParams* nodeParams;
|
|
|
|
|
hipExternalSemaphoreWaitNodeParams nodeParams__val;
|
|
|
|
|
} hipGraphExternalSemaphoresWaitNodeSetParams;
|
|
|
|
|
struct {
|
|
|
|
|
hipGraph_t graph;
|
|
|
|
|
hipGraphNode_t* from;
|
|
|
|
@@ -3262,24 +3411,6 @@ typedef struct hip_api_data_s {
|
|
|
|
|
unsigned int numExtSems;
|
|
|
|
|
hipStream_t stream;
|
|
|
|
|
} hipWaitExternalSemaphoresAsync;
|
|
|
|
|
struct {
|
|
|
|
|
hipMipmappedArray_t* mipmap;
|
|
|
|
|
hipExternalMemory_t extMem;
|
|
|
|
|
const hipExternalMemoryMipmappedArrayDesc* mipmapDesc;
|
|
|
|
|
hipExternalMemoryMipmappedArrayDesc mipmapDesc__val;
|
|
|
|
|
} hipExternalMemoryGetMappedMipmappedArray;
|
|
|
|
|
|
|
|
|
|
struct {
|
|
|
|
|
hipGraphNode_t* phGraphNode;
|
|
|
|
|
hipGraphNode_t phGraphNode__val;
|
|
|
|
|
hipGraph_t hGraph;
|
|
|
|
|
const hipGraphNode_t* dependencies;
|
|
|
|
|
hipGraphNode_t dependencies__val;
|
|
|
|
|
size_t numDependencies;
|
|
|
|
|
const HIP_MEMCPY3D* copyParams;
|
|
|
|
|
HIP_MEMCPY3D copyParams__val;
|
|
|
|
|
hipCtx_t ctx;
|
|
|
|
|
} hipDrvGraphAddMemcpyNode;
|
|
|
|
|
} args;
|
|
|
|
|
uint64_t *phase_data;
|
|
|
|
|
} hip_api_data_t;
|
|
|
|
@@ -3330,10 +3461,15 @@ typedef struct hip_api_data_s {
|
|
|
|
|
cb_data.args.hipArrayGetInfo.flags = (unsigned int*)flags; \
|
|
|
|
|
cb_data.args.hipArrayGetInfo.array = (hipArray_t)array; \
|
|
|
|
|
};
|
|
|
|
|
// hipChooseDevice[('int*', 'device'), ('const hipDeviceProp_tR0600*', 'prop')]
|
|
|
|
|
#define INIT_hipChooseDevice_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipChooseDevice.device = (int*)device; \
|
|
|
|
|
cb_data.args.hipChooseDevice.prop = (const hipDeviceProp_tR0600*)properties; \
|
|
|
|
|
// hipChooseDeviceR0000[('int*', 'device'), ('const hipDeviceProp_tR0000*', 'prop')]
|
|
|
|
|
#define INIT_hipChooseDeviceR0000_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipChooseDeviceR0000.device = (int*)device; \
|
|
|
|
|
cb_data.args.hipChooseDeviceR0000.prop = (const hipDeviceProp_tR0000*)properties; \
|
|
|
|
|
};
|
|
|
|
|
// hipChooseDeviceR0600[('int*', 'device'), ('const hipDeviceProp_tR0600*', 'prop')]
|
|
|
|
|
#define INIT_hipChooseDeviceR0600_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipChooseDeviceR0600.device = (int*)device; \
|
|
|
|
|
cb_data.args.hipChooseDeviceR0600.prop = (const hipDeviceProp_tR0600*)properties; \
|
|
|
|
|
};
|
|
|
|
|
// hipConfigureCall[('dim3', 'gridDim'), ('dim3', 'blockDim'), ('size_t', 'sharedMem'), ('hipStream_t', 'stream')]
|
|
|
|
|
#define INIT_hipConfigureCall_CB_ARGS_DATA(cb_data) { \
|
|
|
|
@@ -3588,6 +3724,18 @@ typedef struct hip_api_data_s {
|
|
|
|
|
#define INIT_hipDriverGetVersion_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipDriverGetVersion.driverVersion = (int*)driverVersion; \
|
|
|
|
|
};
|
|
|
|
|
// hipDrvGraphAddMemcpyNode[('hipGraphNode_t*', 'phGraphNode'), ('hipGraph_t', 'hGraph'), ('const hipGraphNode_t*', 'dependencies'), ('size_t', 'numDependencies'), ('const HIP_MEMCPY3D*', 'copyParams'), ('hipCtx_t', 'ctx')]
|
|
|
|
|
#define INIT_hipDrvGraphAddMemcpyNode_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipDrvGraphAddMemsetNode[('hipGraphNode_t*', 'phGraphNode'), ('hipGraph_t', 'hGraph'), ('const hipGraphNode_t*', 'dependencies'), ('size_t', 'numDependencies'), ('const HIP_MEMSET_NODE_PARAMS*', 'memsetParams'), ('hipCtx_t', 'ctx')]
|
|
|
|
|
#define INIT_hipDrvGraphAddMemsetNode_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipDrvGraphMemcpyNodeGetParams[('hipGraphNode_t', 'hNode'), ('HIP_MEMCPY3D*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipDrvGraphMemcpyNodeGetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipDrvGraphMemcpyNodeSetParams[('hipGraphNode_t', 'hNode'), ('const HIP_MEMCPY3D*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipDrvGraphMemcpyNodeSetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipDrvMemcpy2DUnaligned[('const hip_Memcpy2D*', 'pCopy')]
|
|
|
|
|
#define INIT_hipDrvMemcpy2DUnaligned_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipDrvMemcpy2DUnaligned.pCopy = (const hip_Memcpy2D*)pCopy; \
|
|
|
|
@@ -3708,10 +3856,10 @@ typedef struct hip_api_data_s {
|
|
|
|
|
};
|
|
|
|
|
// hipExternalMemoryGetMappedMipmappedArray[('hipMipmappedArray_t*', 'mipmap'), ('hipExternalMemory_t', 'extMem'), ('const hipExternalMemoryMipmappedArrayDesc*', 'mipmapDesc')]
|
|
|
|
|
#define INIT_hipExternalMemoryGetMappedMipmappedArray_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipExternalMemoryGetMappedMipmappedArray.mipmap = (hipMipmappedArray_t*)mipmap; \
|
|
|
|
|
cb_data.args.hipExternalMemoryGetMappedMipmappedArray.extMem = (hipExternalMemory_t)extMem; \
|
|
|
|
|
cb_data.args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc = (const hipExternalMemoryMipmappedArrayDesc*)mipmapDesc; \
|
|
|
|
|
};
|
|
|
|
|
cb_data.args.hipExternalMemoryGetMappedMipmappedArray.mipmap = (hipMipmappedArray_t*)mipmap; \
|
|
|
|
|
cb_data.args.hipExternalMemoryGetMappedMipmappedArray.extMem = (hipExternalMemory_t)extMem; \
|
|
|
|
|
cb_data.args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc = (const hipExternalMemoryMipmappedArrayDesc*)mipmapDesc; \
|
|
|
|
|
};
|
|
|
|
|
// hipFree[('void*', 'ptr')]
|
|
|
|
|
#define INIT_hipFree_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipFree.ptr = (void*)ptr; \
|
|
|
|
@@ -3784,10 +3932,15 @@ typedef struct hip_api_data_s {
|
|
|
|
|
#define INIT_hipGetDeviceFlags_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipGetDeviceFlags.flags = (unsigned int*)flags; \
|
|
|
|
|
};
|
|
|
|
|
// hipGetDeviceProperties[('hipDeviceProp_tR0600*', 'props'), ('hipDevice_t', 'device')]
|
|
|
|
|
// hipGetDevicePropertiesR0000[('hipDeviceProp_tR0000*', 'prop'), ('int', 'device')]
|
|
|
|
|
#define INIT_hipGetDevicePropertiesR0000_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipGetDevicePropertiesR0000.prop = (hipDeviceProp_tR0000*)prop; \
|
|
|
|
|
cb_data.args.hipGetDevicePropertiesR0000.device = (int)device; \
|
|
|
|
|
};
|
|
|
|
|
// hipGetDevicePropertiesR0600[('hipDeviceProp_tR0600*', 'prop'), ('int', 'deviceId')]
|
|
|
|
|
#define INIT_hipGetDevicePropertiesR0600_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipGetDevicePropertiesR0600.props = (hipDeviceProp_tR0600*)props; \
|
|
|
|
|
cb_data.args.hipGetDevicePropertiesR0600.device = (hipDevice_t)device; \
|
|
|
|
|
cb_data.args.hipGetDevicePropertiesR0600.prop = (hipDeviceProp_tR0600*)prop; \
|
|
|
|
|
cb_data.args.hipGetDevicePropertiesR0600.deviceId = (int)device; \
|
|
|
|
|
};
|
|
|
|
|
// hipGetErrorString[]
|
|
|
|
|
#define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \
|
|
|
|
@@ -3849,6 +4002,12 @@ typedef struct hip_api_data_s {
|
|
|
|
|
cb_data.args.hipGraphAddEventWaitNode.numDependencies = (size_t)numDependencies; \
|
|
|
|
|
cb_data.args.hipGraphAddEventWaitNode.event = (hipEvent_t)event; \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphAddExternalSemaphoresSignalNode[('hipGraphNode_t*', 'pGraphNode'), ('hipGraph_t', 'graph'), ('const hipGraphNode_t*', 'pDependencies'), ('size_t', 'numDependencies'), ('const hipExternalSemaphoreSignalNodeParams*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipGraphAddExternalSemaphoresSignalNode_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphAddExternalSemaphoresWaitNode[('hipGraphNode_t*', 'pGraphNode'), ('hipGraph_t', 'graph'), ('const hipGraphNode_t*', 'pDependencies'), ('size_t', 'numDependencies'), ('const hipExternalSemaphoreWaitNodeParams*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipGraphAddExternalSemaphoresWaitNode_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphAddHostNode[('hipGraphNode_t*', 'pGraphNode'), ('hipGraph_t', 'graph'), ('const hipGraphNode_t*', 'pDependencies'), ('size_t', 'numDependencies'), ('const hipHostNodeParams*', 'pNodeParams')]
|
|
|
|
|
#define INIT_hipGraphAddHostNode_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipGraphAddHostNode.pGraphNode = (hipGraphNode_t*)pGraphNode; \
|
|
|
|
@@ -4003,6 +4162,12 @@ typedef struct hip_api_data_s {
|
|
|
|
|
cb_data.args.hipGraphExecEventWaitNodeSetEvent.hNode = (hipGraphNode_t)hNode; \
|
|
|
|
|
cb_data.args.hipGraphExecEventWaitNodeSetEvent.event = (hipEvent_t)event; \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExecExternalSemaphoresSignalNodeSetParams[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreSignalNodeParams*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipGraphExecExternalSemaphoresSignalNodeSetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExecExternalSemaphoresWaitNodeSetParams[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreWaitNodeParams*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipGraphExecExternalSemaphoresWaitNodeSetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExecHostNodeSetParams[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'node'), ('const hipHostNodeParams*', 'pNodeParams')]
|
|
|
|
|
#define INIT_hipGraphExecHostNodeSetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipGraphExecHostNodeSetParams.hGraphExec = (hipGraphExec_t)hGraphExec; \
|
|
|
|
@@ -4063,6 +4228,18 @@ typedef struct hip_api_data_s {
|
|
|
|
|
cb_data.args.hipGraphExecUpdate.hErrorNode_out = (hipGraphNode_t*)hErrorNode_out; \
|
|
|
|
|
cb_data.args.hipGraphExecUpdate.updateResult_out = (hipGraphExecUpdateResult*)updateResult_out; \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExternalSemaphoresSignalNodeGetParams[('hipGraphNode_t', 'hNode'), ('hipExternalSemaphoreSignalNodeParams*', 'params_out')]
|
|
|
|
|
#define INIT_hipGraphExternalSemaphoresSignalNodeGetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExternalSemaphoresSignalNodeSetParams[('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreSignalNodeParams*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipGraphExternalSemaphoresSignalNodeSetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExternalSemaphoresWaitNodeGetParams[('hipGraphNode_t', 'hNode'), ('hipExternalSemaphoreWaitNodeParams*', 'params_out')]
|
|
|
|
|
#define INIT_hipGraphExternalSemaphoresWaitNodeGetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphExternalSemaphoresWaitNodeSetParams[('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreWaitNodeParams*', 'nodeParams')]
|
|
|
|
|
#define INIT_hipGraphExternalSemaphoresWaitNodeSetParams_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
};
|
|
|
|
|
// hipGraphGetEdges[('hipGraph_t', 'graph'), ('hipGraphNode_t*', 'from'), ('hipGraphNode_t*', 'to'), ('size_t*', 'numEdges')]
|
|
|
|
|
#define INIT_hipGraphGetEdges_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipGraphGetEdges.graph = (hipGraph_t)graph; \
|
|
|
|
@@ -5453,15 +5630,6 @@ typedef struct hip_api_data_s {
|
|
|
|
|
cb_data.args.hipWaitExternalSemaphoresAsync.numExtSems = (unsigned int)numExtSems; \
|
|
|
|
|
cb_data.args.hipWaitExternalSemaphoresAsync.stream = (hipStream_t)stream; \
|
|
|
|
|
};
|
|
|
|
|
// hipDrvGraphAddMemcpyNode[('hipGraphNode_t*', 'phGraphNode'), ('hipGraph_t', 'hGraph'), ('const hipGraphNode_t*', 'dependencies'), ('size_t', 'numDependencies'), ('const hipMemcpy3DParms*', 'copyParams'), ('hipCtx_t', 'ctx')]
|
|
|
|
|
#define INIT_hipDrvGraphAddMemcpyNode_CB_ARGS_DATA(cb_data) { \
|
|
|
|
|
cb_data.args.hipDrvGraphAddMemcpyNode.phGraphNode = (hipGraphNode_t*)phGraphNode; \
|
|
|
|
|
cb_data.args.hipDrvGraphAddMemcpyNode.hGraph = (hipGraph_t)hGraph; \
|
|
|
|
|
cb_data.args.hipDrvGraphAddMemcpyNode.dependencies = (const hipGraphNode_t*)dependencies; \
|
|
|
|
|
cb_data.args.hipDrvGraphAddMemcpyNode.numDependencies = (size_t)numDependencies; \
|
|
|
|
|
cb_data.args.hipDrvGraphAddMemcpyNode.copyParams = (const HIP_MEMCPY3D*)copyParams; \
|
|
|
|
|
cb_data.args.hipDrvGraphAddMemcpyNode.ctx = (hipCtx_t)ctx; \
|
|
|
|
|
};
|
|
|
|
|
#define INIT_CB_ARGS_DATA(cb_id, cb_data) INIT_##cb_id##_CB_ARGS_DATA(cb_data)
|
|
|
|
|
|
|
|
|
|
// Macros for non-public API primitives
|
|
|
|
@@ -5491,8 +5659,6 @@ typedef struct hip_api_data_s {
|
|
|
|
|
#define INIT_hipGetTextureReference_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()
|
|
|
|
@@ -5501,12 +5667,8 @@ typedef struct hip_api_data_s {
|
|
|
|
|
#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) {};
|
|
|
|
|
// hipSetValidDevices()
|
|
|
|
|
#define INIT_hipSetValidDevices_CB_ARGS_DATA(cb_data) {};
|
|
|
|
|
// hipTexObjectCreate()
|
|
|
|
@@ -5583,10 +5745,15 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
if (data->args.hipArrayGetInfo.extent) data->args.hipArrayGetInfo.extent__val = *(data->args.hipArrayGetInfo.extent);
|
|
|
|
|
if (data->args.hipArrayGetInfo.flags) data->args.hipArrayGetInfo.flags__val = *(data->args.hipArrayGetInfo.flags);
|
|
|
|
|
break;
|
|
|
|
|
// hipChooseDevice[('int*', 'device'), ('const hipDeviceProp_tR0600*', '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);
|
|
|
|
|
// hipChooseDeviceR0000[('int*', 'device'), ('const hipDeviceProp_tR0000*', 'prop')]
|
|
|
|
|
case HIP_API_ID_hipChooseDeviceR0000:
|
|
|
|
|
if (data->args.hipChooseDeviceR0000.device) data->args.hipChooseDeviceR0000.device__val = *(data->args.hipChooseDeviceR0000.device);
|
|
|
|
|
if (data->args.hipChooseDeviceR0000.prop) data->args.hipChooseDeviceR0000.prop__val = *(data->args.hipChooseDeviceR0000.prop);
|
|
|
|
|
break;
|
|
|
|
|
// hipChooseDeviceR0600[('int*', 'device'), ('const hipDeviceProp_tR0600*', 'prop')]
|
|
|
|
|
case HIP_API_ID_hipChooseDeviceR0600:
|
|
|
|
|
if (data->args.hipChooseDeviceR0600.device) data->args.hipChooseDeviceR0600.device__val = *(data->args.hipChooseDeviceR0600.device);
|
|
|
|
|
if (data->args.hipChooseDeviceR0600.prop) data->args.hipChooseDeviceR0600.prop__val = *(data->args.hipChooseDeviceR0600.prop);
|
|
|
|
|
break;
|
|
|
|
|
// hipConfigureCall[('dim3', 'gridDim'), ('dim3', 'blockDim'), ('size_t', 'sharedMem'), ('hipStream_t', 'stream')]
|
|
|
|
|
case HIP_API_ID_hipConfigureCall:
|
|
|
|
@@ -5783,6 +5950,26 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
case HIP_API_ID_hipDriverGetVersion:
|
|
|
|
|
if (data->args.hipDriverGetVersion.driverVersion) data->args.hipDriverGetVersion.driverVersion__val = *(data->args.hipDriverGetVersion.driverVersion);
|
|
|
|
|
break;
|
|
|
|
|
// hipDrvGraphAddMemcpyNode[('hipGraphNode_t*', 'phGraphNode'), ('hipGraph_t', 'hGraph'), ('const hipGraphNode_t*', 'dependencies'), ('size_t', 'numDependencies'), ('const HIP_MEMCPY3D*', 'copyParams'), ('hipCtx_t', 'ctx')]
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemcpyNode:
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.phGraphNode) data->args.hipDrvGraphAddMemcpyNode.phGraphNode__val = *(data->args.hipDrvGraphAddMemcpyNode.phGraphNode);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.dependencies) data->args.hipDrvGraphAddMemcpyNode.dependencies__val = *(data->args.hipDrvGraphAddMemcpyNode.dependencies);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.copyParams) data->args.hipDrvGraphAddMemcpyNode.copyParams__val = *(data->args.hipDrvGraphAddMemcpyNode.copyParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipDrvGraphAddMemsetNode[('hipGraphNode_t*', 'phGraphNode'), ('hipGraph_t', 'hGraph'), ('const hipGraphNode_t*', 'dependencies'), ('size_t', 'numDependencies'), ('const HIP_MEMSET_NODE_PARAMS*', 'memsetParams'), ('hipCtx_t', 'ctx')]
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemsetNode:
|
|
|
|
|
if (data->args.hipDrvGraphAddMemsetNode.phGraphNode) data->args.hipDrvGraphAddMemsetNode.phGraphNode__val = *(data->args.hipDrvGraphAddMemsetNode.phGraphNode);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemsetNode.dependencies) data->args.hipDrvGraphAddMemsetNode.dependencies__val = *(data->args.hipDrvGraphAddMemsetNode.dependencies);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemsetNode.memsetParams) data->args.hipDrvGraphAddMemsetNode.memsetParams__val = *(data->args.hipDrvGraphAddMemsetNode.memsetParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipDrvGraphMemcpyNodeGetParams[('hipGraphNode_t', 'hNode'), ('HIP_MEMCPY3D*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipDrvGraphMemcpyNodeGetParams:
|
|
|
|
|
if (data->args.hipDrvGraphMemcpyNodeGetParams.nodeParams) data->args.hipDrvGraphMemcpyNodeGetParams.nodeParams__val = *(data->args.hipDrvGraphMemcpyNodeGetParams.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipDrvGraphMemcpyNodeSetParams[('hipGraphNode_t', 'hNode'), ('const HIP_MEMCPY3D*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipDrvGraphMemcpyNodeSetParams:
|
|
|
|
|
if (data->args.hipDrvGraphMemcpyNodeSetParams.nodeParams) data->args.hipDrvGraphMemcpyNodeSetParams.nodeParams__val = *(data->args.hipDrvGraphMemcpyNodeSetParams.nodeParams);
|
|
|
|
|
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);
|
|
|
|
@@ -5862,6 +6049,7 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
break;
|
|
|
|
|
// hipExternalMemoryGetMappedMipmappedArray[('hipMipmappedArray_t*', 'mipmap'), ('hipExternalMemory_t', 'extMem'), ('const hipExternalMemoryMipmappedArrayDesc*', 'mipmapDesc')]
|
|
|
|
|
case HIP_API_ID_hipExternalMemoryGetMappedMipmappedArray:
|
|
|
|
|
if (data->args.hipExternalMemoryGetMappedMipmappedArray.mipmap) data->args.hipExternalMemoryGetMappedMipmappedArray.mipmap__val = *(data->args.hipExternalMemoryGetMappedMipmappedArray.mipmap);
|
|
|
|
|
if (data->args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc) data->args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc__val = *(data->args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc);
|
|
|
|
|
break;
|
|
|
|
|
// hipFree[('void*', 'ptr')]
|
|
|
|
@@ -5917,9 +6105,13 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
case HIP_API_ID_hipGetDeviceFlags:
|
|
|
|
|
if (data->args.hipGetDeviceFlags.flags) data->args.hipGetDeviceFlags.flags__val = *(data->args.hipGetDeviceFlags.flags);
|
|
|
|
|
break;
|
|
|
|
|
// hipGetDevicePropertiesR0600[('hipDeviceProp_tR0600*', 'props'), ('hipDevice_t', 'device')]
|
|
|
|
|
// hipGetDevicePropertiesR0000[('hipDeviceProp_tR0000*', 'prop'), ('int', 'device')]
|
|
|
|
|
case HIP_API_ID_hipGetDevicePropertiesR0000:
|
|
|
|
|
if (data->args.hipGetDevicePropertiesR0000.prop) data->args.hipGetDevicePropertiesR0000.prop__val = *(data->args.hipGetDevicePropertiesR0000.prop);
|
|
|
|
|
break;
|
|
|
|
|
// hipGetDevicePropertiesR0600[('hipDeviceProp_tR0600*', 'prop'), ('int', 'deviceId')]
|
|
|
|
|
case HIP_API_ID_hipGetDevicePropertiesR0600:
|
|
|
|
|
if (data->args.hipGetDevicePropertiesR0600.props) data->args.hipGetDevicePropertiesR0600.props__val = *(data->args.hipGetDevicePropertiesR0600.props);
|
|
|
|
|
if (data->args.hipGetDevicePropertiesR0600.prop) data->args.hipGetDevicePropertiesR0600.prop__val = *(data->args.hipGetDevicePropertiesR0600.prop);
|
|
|
|
|
break;
|
|
|
|
|
// hipGetErrorString[]
|
|
|
|
|
case HIP_API_ID_hipGetErrorString:
|
|
|
|
@@ -5964,6 +6156,18 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
if (data->args.hipGraphAddEventWaitNode.pGraphNode) data->args.hipGraphAddEventWaitNode.pGraphNode__val = *(data->args.hipGraphAddEventWaitNode.pGraphNode);
|
|
|
|
|
if (data->args.hipGraphAddEventWaitNode.pDependencies) data->args.hipGraphAddEventWaitNode.pDependencies__val = *(data->args.hipGraphAddEventWaitNode.pDependencies);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphAddExternalSemaphoresSignalNode[('hipGraphNode_t*', 'pGraphNode'), ('hipGraph_t', 'graph'), ('const hipGraphNode_t*', 'pDependencies'), ('size_t', 'numDependencies'), ('const hipExternalSemaphoreSignalNodeParams*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphAddExternalSemaphoresSignalNode:
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresSignalNode.pGraphNode) data->args.hipGraphAddExternalSemaphoresSignalNode.pGraphNode__val = *(data->args.hipGraphAddExternalSemaphoresSignalNode.pGraphNode);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresSignalNode.pDependencies) data->args.hipGraphAddExternalSemaphoresSignalNode.pDependencies__val = *(data->args.hipGraphAddExternalSemaphoresSignalNode.pDependencies);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresSignalNode.nodeParams) data->args.hipGraphAddExternalSemaphoresSignalNode.nodeParams__val = *(data->args.hipGraphAddExternalSemaphoresSignalNode.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphAddExternalSemaphoresWaitNode[('hipGraphNode_t*', 'pGraphNode'), ('hipGraph_t', 'graph'), ('const hipGraphNode_t*', 'pDependencies'), ('size_t', 'numDependencies'), ('const hipExternalSemaphoreWaitNodeParams*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphAddExternalSemaphoresWaitNode:
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresWaitNode.pGraphNode) data->args.hipGraphAddExternalSemaphoresWaitNode.pGraphNode__val = *(data->args.hipGraphAddExternalSemaphoresWaitNode.pGraphNode);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresWaitNode.pDependencies) data->args.hipGraphAddExternalSemaphoresWaitNode.pDependencies__val = *(data->args.hipGraphAddExternalSemaphoresWaitNode.pDependencies);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresWaitNode.nodeParams) data->args.hipGraphAddExternalSemaphoresWaitNode.nodeParams__val = *(data->args.hipGraphAddExternalSemaphoresWaitNode.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphAddHostNode[('hipGraphNode_t*', 'pGraphNode'), ('hipGraph_t', 'graph'), ('const hipGraphNode_t*', 'pDependencies'), ('size_t', 'numDependencies'), ('const hipHostNodeParams*', 'pNodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphAddHostNode:
|
|
|
|
|
if (data->args.hipGraphAddHostNode.pGraphNode) data->args.hipGraphAddHostNode.pGraphNode__val = *(data->args.hipGraphAddHostNode.pGraphNode);
|
|
|
|
@@ -6062,6 +6266,14 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
// hipGraphExecEventWaitNodeSetEvent[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'hNode'), ('hipEvent_t', 'event')]
|
|
|
|
|
case HIP_API_ID_hipGraphExecEventWaitNodeSetEvent:
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExecExternalSemaphoresSignalNodeSetParams[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreSignalNodeParams*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphExecExternalSemaphoresSignalNodeSetParams:
|
|
|
|
|
if (data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.nodeParams) data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.nodeParams__val = *(data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExecExternalSemaphoresWaitNodeSetParams[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreWaitNodeParams*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphExecExternalSemaphoresWaitNodeSetParams:
|
|
|
|
|
if (data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.nodeParams) data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.nodeParams__val = *(data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExecHostNodeSetParams[('hipGraphExec_t', 'hGraphExec'), ('hipGraphNode_t', 'node'), ('const hipHostNodeParams*', 'pNodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphExecHostNodeSetParams:
|
|
|
|
|
if (data->args.hipGraphExecHostNodeSetParams.pNodeParams) data->args.hipGraphExecHostNodeSetParams.pNodeParams__val = *(data->args.hipGraphExecHostNodeSetParams.pNodeParams);
|
|
|
|
@@ -6092,6 +6304,22 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
if (data->args.hipGraphExecUpdate.hErrorNode_out) data->args.hipGraphExecUpdate.hErrorNode_out__val = *(data->args.hipGraphExecUpdate.hErrorNode_out);
|
|
|
|
|
if (data->args.hipGraphExecUpdate.updateResult_out) data->args.hipGraphExecUpdate.updateResult_out__val = *(data->args.hipGraphExecUpdate.updateResult_out);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExternalSemaphoresSignalNodeGetParams[('hipGraphNode_t', 'hNode'), ('hipExternalSemaphoreSignalNodeParams*', 'params_out')]
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresSignalNodeGetParams:
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresSignalNodeGetParams.params_out) data->args.hipGraphExternalSemaphoresSignalNodeGetParams.params_out__val = *(data->args.hipGraphExternalSemaphoresSignalNodeGetParams.params_out);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExternalSemaphoresSignalNodeSetParams[('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreSignalNodeParams*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresSignalNodeSetParams:
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresSignalNodeSetParams.nodeParams) data->args.hipGraphExternalSemaphoresSignalNodeSetParams.nodeParams__val = *(data->args.hipGraphExternalSemaphoresSignalNodeSetParams.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExternalSemaphoresWaitNodeGetParams[('hipGraphNode_t', 'hNode'), ('hipExternalSemaphoreWaitNodeParams*', 'params_out')]
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresWaitNodeGetParams:
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresWaitNodeGetParams.params_out) data->args.hipGraphExternalSemaphoresWaitNodeGetParams.params_out__val = *(data->args.hipGraphExternalSemaphoresWaitNodeGetParams.params_out);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphExternalSemaphoresWaitNodeSetParams[('hipGraphNode_t', 'hNode'), ('const hipExternalSemaphoreWaitNodeParams*', 'nodeParams')]
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresWaitNodeSetParams:
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresWaitNodeSetParams.nodeParams) data->args.hipGraphExternalSemaphoresWaitNodeSetParams.nodeParams__val = *(data->args.hipGraphExternalSemaphoresWaitNodeSetParams.nodeParams);
|
|
|
|
|
break;
|
|
|
|
|
// hipGraphGetEdges[('hipGraph_t', 'graph'), ('hipGraphNode_t*', 'from'), ('hipGraphNode_t*', 'to'), ('size_t*', 'numEdges')]
|
|
|
|
|
case HIP_API_ID_hipGraphGetEdges:
|
|
|
|
|
if (data->args.hipGraphGetEdges.from) data->args.hipGraphGetEdges.from__val = *(data->args.hipGraphGetEdges.from);
|
|
|
|
@@ -6941,12 +7169,6 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
|
|
|
|
|
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;
|
|
|
|
|
// hipDrvGraphAddMemcpyNode[('hipGraphNode_t*', 'phGraphNode'), ('hipGraph_t', 'hGraph'), ('const hipGraphNode_t*', 'dependencies'), ('size_t', 'numDependencies'), ('const HIP_MEMCPY3D*', 'copyParams'), ('hipCtx_t', 'ctx')]
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemcpyNode:
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.phGraphNode) data->args.hipDrvGraphAddMemcpyNode.phGraphNode__val = *(data->args.hipDrvGraphAddMemcpyNode.phGraphNode);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.dependencies) data->args.hipDrvGraphAddMemcpyNode.dependencies__val = *(data->args.hipDrvGraphAddMemcpyNode.dependencies);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.copyParams) data->args.hipDrvGraphAddMemcpyNode.copyParams__val = *(data->args.hipDrvGraphAddMemcpyNode.copyParams);
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@@ -6980,7 +7202,7 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
case HIP_API_ID_hipArray3DCreate:
|
|
|
|
|
oss << "hipArray3DCreate(";
|
|
|
|
|
if (data->args.hipArray3DCreate.array == NULL) oss << "array=NULL";
|
|
|
|
|
else { oss << "array="; roctracer::hip_support::detail::operator<<(oss, (void*)data->args.hipArray3DCreate.array__val); }
|
|
|
|
|
else { oss << "array="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArray3DCreate.array__val); }
|
|
|
|
|
if (data->args.hipArray3DCreate.pAllocateArray == NULL) oss << ", pAllocateArray=NULL";
|
|
|
|
|
else { oss << ", pAllocateArray="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArray3DCreate.pAllocateArray__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
@@ -6989,13 +7211,13 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
oss << "hipArray3DGetDescriptor(";
|
|
|
|
|
if (data->args.hipArray3DGetDescriptor.pArrayDescriptor == NULL) oss << "pArrayDescriptor=NULL";
|
|
|
|
|
else { oss << "pArrayDescriptor="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArray3DGetDescriptor.pArrayDescriptor__val); }
|
|
|
|
|
oss << "array="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArray3DGetDescriptor.array);
|
|
|
|
|
oss << ", array="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArray3DGetDescriptor.array);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipArrayCreate:
|
|
|
|
|
oss << "hipArrayCreate(";
|
|
|
|
|
if (data->args.hipArrayCreate.pHandle == NULL) oss << "pHandle=NULL";
|
|
|
|
|
else { oss << "pHandle="; roctracer::hip_support::detail::operator<<(oss, (void*)data->args.hipArrayCreate.pHandle__val); }
|
|
|
|
|
else { oss << "pHandle="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArrayCreate.pHandle__val); }
|
|
|
|
|
if (data->args.hipArrayCreate.pAllocateArray == NULL) oss << ", pAllocateArray=NULL";
|
|
|
|
|
else { oss << ", pAllocateArray="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArrayCreate.pAllocateArray__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
@@ -7020,16 +7242,23 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
else { oss << ", extent="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArrayGetInfo.extent__val); }
|
|
|
|
|
if (data->args.hipArrayGetInfo.flags == NULL) oss << ", flags=NULL";
|
|
|
|
|
else { oss << ", flags="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArrayGetInfo.flags__val); }
|
|
|
|
|
if (data->args.hipArrayGetInfo.array == NULL) oss << ", array=NULL";
|
|
|
|
|
oss << ", array="; roctracer::hip_support::detail::operator<<(oss, data->args.hipArrayGetInfo.array);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipChooseDevice:
|
|
|
|
|
oss << "hipChooseDevice(";
|
|
|
|
|
if (data->args.hipChooseDevice.device == NULL) oss << "device=NULL";
|
|
|
|
|
else { oss << "device="; roctracer::hip_support::detail::operator<<(oss, data->args.hipChooseDevice.device__val); }
|
|
|
|
|
if (data->args.hipChooseDevice.prop == NULL) oss << ", prop=NULL";
|
|
|
|
|
else { oss << ", prop="; roctracer::hip_support::detail::operator<<(oss, data->args.hipChooseDevice.prop__val); }
|
|
|
|
|
case HIP_API_ID_hipChooseDeviceR0000:
|
|
|
|
|
oss << "hipChooseDeviceR0000(";
|
|
|
|
|
if (data->args.hipChooseDeviceR0000.device == NULL) oss << "device=NULL";
|
|
|
|
|
else { oss << "device="; roctracer::hip_support::detail::operator<<(oss, data->args.hipChooseDeviceR0000.device__val); }
|
|
|
|
|
if (data->args.hipChooseDeviceR0000.prop == NULL) oss << ", prop=NULL";
|
|
|
|
|
else { oss << ", prop="; roctracer::hip_support::detail::operator<<(oss, data->args.hipChooseDeviceR0000.prop__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipChooseDeviceR0600:
|
|
|
|
|
oss << "hipChooseDeviceR0600(";
|
|
|
|
|
if (data->args.hipChooseDeviceR0600.device == NULL) oss << "device=NULL";
|
|
|
|
|
else { oss << "device="; roctracer::hip_support::detail::operator<<(oss, data->args.hipChooseDeviceR0600.device__val); }
|
|
|
|
|
if (data->args.hipChooseDeviceR0600.prop == NULL) oss << ", prop=NULL";
|
|
|
|
|
else { oss << ", prop="; roctracer::hip_support::detail::operator<<(oss, data->args.hipChooseDeviceR0600.prop__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipConfigureCall:
|
|
|
|
@@ -7372,6 +7601,46 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
else { oss << "driverVersion="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDriverGetVersion.driverVersion__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemcpyNode:
|
|
|
|
|
oss << "hipDrvGraphAddMemcpyNode(";
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.phGraphNode == NULL) oss << "phGraphNode=NULL";
|
|
|
|
|
else { oss << "phGraphNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.phGraphNode__val); }
|
|
|
|
|
oss << ", hGraph="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.hGraph);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.dependencies == NULL) oss << ", dependencies=NULL";
|
|
|
|
|
else { oss << ", dependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.dependencies__val); }
|
|
|
|
|
oss << ", numDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.numDependencies);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.copyParams == NULL) oss << ", copyParams=NULL";
|
|
|
|
|
else { oss << ", copyParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.copyParams__val); }
|
|
|
|
|
oss << ", ctx="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.ctx);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemsetNode:
|
|
|
|
|
oss << "hipDrvGraphAddMemsetNode(";
|
|
|
|
|
if (data->args.hipDrvGraphAddMemsetNode.phGraphNode == NULL) oss << "phGraphNode=NULL";
|
|
|
|
|
else { oss << "phGraphNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemsetNode.phGraphNode__val); }
|
|
|
|
|
oss << ", hGraph="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemsetNode.hGraph);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemsetNode.dependencies == NULL) oss << ", dependencies=NULL";
|
|
|
|
|
else { oss << ", dependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemsetNode.dependencies__val); }
|
|
|
|
|
oss << ", numDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemsetNode.numDependencies);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemsetNode.memsetParams == NULL) oss << ", memsetParams=NULL";
|
|
|
|
|
else { oss << ", memsetParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemsetNode.memsetParams__val); }
|
|
|
|
|
oss << ", ctx="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemsetNode.ctx);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipDrvGraphMemcpyNodeGetParams:
|
|
|
|
|
oss << "hipDrvGraphMemcpyNodeGetParams(";
|
|
|
|
|
oss << "hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphMemcpyNodeGetParams.hNode);
|
|
|
|
|
if (data->args.hipDrvGraphMemcpyNodeGetParams.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphMemcpyNodeGetParams.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipDrvGraphMemcpyNodeSetParams:
|
|
|
|
|
oss << "hipDrvGraphMemcpyNodeSetParams(";
|
|
|
|
|
oss << "hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphMemcpyNodeSetParams.hNode);
|
|
|
|
|
if (data->args.hipDrvGraphMemcpyNodeSetParams.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphMemcpyNodeSetParams.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipDrvMemcpy2DUnaligned:
|
|
|
|
|
oss << "hipDrvMemcpy2DUnaligned(";
|
|
|
|
|
if (data->args.hipDrvMemcpy2DUnaligned.pCopy == NULL) oss << "pCopy=NULL";
|
|
|
|
@@ -7531,12 +7800,13 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipExternalMemoryGetMappedMipmappedArray:
|
|
|
|
|
oss << "hipExternalMemoryGetMappedMipmappedArray(";
|
|
|
|
|
oss << "mipmap="; roctracer::hip_support::detail::operator<<(oss, data->args.hipExternalMemoryGetMappedMipmappedArray.mipmap);
|
|
|
|
|
if (data->args.hipExternalMemoryGetMappedMipmappedArray.mipmap == NULL) oss << "mipmap=NULL";
|
|
|
|
|
else { oss << "mipmap="; roctracer::hip_support::detail::operator<<(oss, data->args.hipExternalMemoryGetMappedMipmappedArray.mipmap__val); }
|
|
|
|
|
oss << ", extMem="; roctracer::hip_support::detail::operator<<(oss, data->args.hipExternalMemoryGetMappedMipmappedArray.extMem);
|
|
|
|
|
if (data->args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc == NULL) oss << ", mipmapDesc=NULL";
|
|
|
|
|
else { oss << ", mipmapDesc="; roctracer::hip_support::detail::operator<<(oss, data->args.hipExternalMemoryGetMappedMipmappedArray.mipmapDesc__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipFree:
|
|
|
|
|
oss << "hipFree(";
|
|
|
|
|
oss << "ptr="; roctracer::hip_support::detail::operator<<(oss, data->args.hipFree.ptr);
|
|
|
|
@@ -7632,11 +7902,18 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
else { oss << "flags="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDeviceFlags.flags__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGetDevicePropertiesR0000:
|
|
|
|
|
oss << "hipGetDevicePropertiesR0000(";
|
|
|
|
|
if (data->args.hipGetDevicePropertiesR0000.prop == NULL) oss << "prop=NULL";
|
|
|
|
|
else { oss << "prop="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDevicePropertiesR0000.prop__val); }
|
|
|
|
|
oss << ", device="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDevicePropertiesR0000.device);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGetDevicePropertiesR0600:
|
|
|
|
|
oss << "hipGetDevicePropertiesR0600(";
|
|
|
|
|
if (data->args.hipGetDevicePropertiesR0600.props == NULL) oss << "props=NULL";
|
|
|
|
|
else { oss << "props="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDevicePropertiesR0600.props__val); }
|
|
|
|
|
oss << ", device="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDevicePropertiesR0600.device);
|
|
|
|
|
if (data->args.hipGetDevicePropertiesR0600.prop == NULL) oss << "prop=NULL";
|
|
|
|
|
else { oss << "prop="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDevicePropertiesR0600.prop__val); }
|
|
|
|
|
oss << ", deviceId="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetDevicePropertiesR0600.deviceId);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGetErrorString:
|
|
|
|
@@ -7722,6 +7999,30 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
oss << ", event="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddEventWaitNode.event);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphAddExternalSemaphoresSignalNode:
|
|
|
|
|
oss << "hipGraphAddExternalSemaphoresSignalNode(";
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresSignalNode.pGraphNode == NULL) oss << "pGraphNode=NULL";
|
|
|
|
|
else { oss << "pGraphNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresSignalNode.pGraphNode__val); }
|
|
|
|
|
oss << ", graph="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresSignalNode.graph);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresSignalNode.pDependencies == NULL) oss << ", pDependencies=NULL";
|
|
|
|
|
else { oss << ", pDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresSignalNode.pDependencies__val); }
|
|
|
|
|
oss << ", numDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresSignalNode.numDependencies);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresSignalNode.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresSignalNode.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphAddExternalSemaphoresWaitNode:
|
|
|
|
|
oss << "hipGraphAddExternalSemaphoresWaitNode(";
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresWaitNode.pGraphNode == NULL) oss << "pGraphNode=NULL";
|
|
|
|
|
else { oss << "pGraphNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresWaitNode.pGraphNode__val); }
|
|
|
|
|
oss << ", graph="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresWaitNode.graph);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresWaitNode.pDependencies == NULL) oss << ", pDependencies=NULL";
|
|
|
|
|
else { oss << ", pDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresWaitNode.pDependencies__val); }
|
|
|
|
|
oss << ", numDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresWaitNode.numDependencies);
|
|
|
|
|
if (data->args.hipGraphAddExternalSemaphoresWaitNode.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphAddExternalSemaphoresWaitNode.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphAddHostNode:
|
|
|
|
|
oss << "hipGraphAddHostNode(";
|
|
|
|
|
if (data->args.hipGraphAddHostNode.pGraphNode == NULL) oss << "pGraphNode=NULL";
|
|
|
|
@@ -7928,6 +8229,22 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
oss << ", event="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecEventWaitNodeSetEvent.event);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExecExternalSemaphoresSignalNodeSetParams:
|
|
|
|
|
oss << "hipGraphExecExternalSemaphoresSignalNodeSetParams(";
|
|
|
|
|
oss << "hGraphExec="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.hGraphExec);
|
|
|
|
|
oss << ", hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.hNode);
|
|
|
|
|
if (data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecExternalSemaphoresSignalNodeSetParams.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExecExternalSemaphoresWaitNodeSetParams:
|
|
|
|
|
oss << "hipGraphExecExternalSemaphoresWaitNodeSetParams(";
|
|
|
|
|
oss << "hGraphExec="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.hGraphExec);
|
|
|
|
|
oss << ", hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.hNode);
|
|
|
|
|
if (data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecExternalSemaphoresWaitNodeSetParams.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExecHostNodeSetParams:
|
|
|
|
|
oss << "hipGraphExecHostNodeSetParams(";
|
|
|
|
|
oss << "hGraphExec="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecHostNodeSetParams.hGraphExec);
|
|
|
|
@@ -8002,6 +8319,34 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
else { oss << ", updateResult_out="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExecUpdate.updateResult_out__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresSignalNodeGetParams:
|
|
|
|
|
oss << "hipGraphExternalSemaphoresSignalNodeGetParams(";
|
|
|
|
|
oss << "hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresSignalNodeGetParams.hNode);
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresSignalNodeGetParams.params_out == NULL) oss << ", params_out=NULL";
|
|
|
|
|
else { oss << ", params_out="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresSignalNodeGetParams.params_out__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresSignalNodeSetParams:
|
|
|
|
|
oss << "hipGraphExternalSemaphoresSignalNodeSetParams(";
|
|
|
|
|
oss << "hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresSignalNodeSetParams.hNode);
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresSignalNodeSetParams.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresSignalNodeSetParams.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresWaitNodeGetParams:
|
|
|
|
|
oss << "hipGraphExternalSemaphoresWaitNodeGetParams(";
|
|
|
|
|
oss << "hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresWaitNodeGetParams.hNode);
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresWaitNodeGetParams.params_out == NULL) oss << ", params_out=NULL";
|
|
|
|
|
else { oss << ", params_out="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresWaitNodeGetParams.params_out__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphExternalSemaphoresWaitNodeSetParams:
|
|
|
|
|
oss << "hipGraphExternalSemaphoresWaitNodeSetParams(";
|
|
|
|
|
oss << "hNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresWaitNodeSetParams.hNode);
|
|
|
|
|
if (data->args.hipGraphExternalSemaphoresWaitNodeSetParams.nodeParams == NULL) oss << ", nodeParams=NULL";
|
|
|
|
|
else { oss << ", nodeParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphExternalSemaphoresWaitNodeSetParams.nodeParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipGraphGetEdges:
|
|
|
|
|
oss << "hipGraphGetEdges(";
|
|
|
|
|
oss << "graph="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGraphGetEdges.graph);
|
|
|
|
@@ -8503,7 +8848,7 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
case HIP_API_ID_hipMallocArray:
|
|
|
|
|
oss << "hipMallocArray(";
|
|
|
|
|
if (data->args.hipMallocArray.array == NULL) oss << "array=NULL";
|
|
|
|
|
else { oss << "array="; roctracer::hip_support::detail::operator<<(oss, (void*)data->args.hipMallocArray.array__val); }
|
|
|
|
|
else { oss << "array="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMallocArray.array__val); }
|
|
|
|
|
if (data->args.hipMallocArray.desc == NULL) oss << ", desc=NULL";
|
|
|
|
|
else { oss << ", desc="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMallocArray.desc__val); }
|
|
|
|
|
oss << ", width="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMallocArray.width);
|
|
|
|
@@ -9803,18 +10148,6 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
|
|
|
|
|
oss << ", stream="; roctracer::hip_support::detail::operator<<(oss, data->args.hipWaitExternalSemaphoresAsync.stream);
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
case HIP_API_ID_hipDrvGraphAddMemcpyNode:
|
|
|
|
|
oss << "hipDrvGraphAddMemcpyNode(";
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.phGraphNode == NULL) oss << "phGraphNode=NULL";
|
|
|
|
|
else { oss << "phGraphNode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.phGraphNode__val); }
|
|
|
|
|
oss << ", hGraph="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.hGraph);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.dependencies == NULL) oss << ", dependencies=NULL";
|
|
|
|
|
else { oss << ", dependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.dependencies__val); }
|
|
|
|
|
oss << ", numDependencies="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.numDependencies);
|
|
|
|
|
if (data->args.hipDrvGraphAddMemcpyNode.copyParams == NULL) oss << ", copyParams=NULL";
|
|
|
|
|
else { oss << ", copyParams="; roctracer::hip_support::detail::operator<<(oss, data->args.hipDrvGraphAddMemcpyNode.copyParams__val); }
|
|
|
|
|
oss << ")";
|
|
|
|
|
break;
|
|
|
|
|
default: oss << "unknown";
|
|
|
|
|
};
|
|
|
|
|
return strdup(oss.str().c_str());
|
|
|
|
|