Support new HIP APIs (#179)

* Adding New HIP APIs

* Format Fix

* Format Fix

* Removing changes from ostream and moving it to format

* Addressing Code Review Comments

* Versioning the new hip calls formatting

---------

Co-authored-by: Ammar ELWazir <aelwazir@amd.com>
This commit is contained in:
Elwazir, Ammar
2025-02-04 15:50:18 -06:00
committed by GitHub
parent b9ad800194
commit dd5c0ea257
5 changed files with 131 additions and 0 deletions
@@ -3016,6 +3016,41 @@ typedef union rocprofiler_hip_api_args_t
int device;
} hipDeviceGetTexture1DLinearMaxWidth;
#endif
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 7
struct
{
hipStream_t stream;
unsigned int count;
hipStreamBatchMemOpParams* paramArray;
unsigned int flags;
} hipStreamBatchMemOp;
#endif
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 8
struct
{
hipGraphNode_t* phGraphNode;
hipGraph_t hGraph;
const hipGraphNode_t* dependencies;
size_t numDependencies;
const hipBatchMemOpNodeParams* nodeParams;
} hipGraphAddBatchMemOpNode;
struct
{
hipGraphNode_t hNode;
hipBatchMemOpNodeParams* nodeParams_out;
} hipGraphBatchMemOpNodeGetParams;
struct
{
hipGraphNode_t hNode;
hipBatchMemOpNodeParams* nodeParams;
} hipGraphBatchMemOpNodeSetParams;
struct
{
hipGraphExec_t hGraphExec;
hipGraphNode_t hNode;
const hipBatchMemOpNodeParams* nodeParams;
} hipGraphExecBatchMemOpNodeSetParams;
#endif
} rocprofiler_hip_api_args_t;
ROCPROFILER_EXTERN_C_FINI
@@ -506,6 +506,15 @@ typedef enum // NOLINT(performance-enum-size)
#endif
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 6
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetTexture1DLinearMaxWidth,
#endif
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 7
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamBatchMemOp,
#endif
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 8
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddBatchMemOpNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphBatchMemOpNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphBatchMemOpNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecBatchMemOpNodeSetParams,
#endif
ROCPROFILER_HIP_RUNTIME_API_ID_LAST,
} rocprofiler_hip_runtime_api_id_t;