hipBatchMemOpNodeParams Struct Reference#
hipBatchMemOpNodeParams Struct Reference
Structure representing node parameters for batch memory operations in HIP graphs. More...
#include <hip_runtime_api.h>
Collaboration diagram for hipBatchMemOpNodeParams:
Data Fields | |
hipCtx_t | ctx |
unsigned int | count |
hipStreamBatchMemOpParams * | paramArray |
unsigned int | flags |
Detailed Description
Structure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields:
- ctx: The HIP context to use for the operations.
- count: The number of operations in the paramArray.
- paramArray: A pointer to an array of hipStreamBatchMemOpParams.
- flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;
Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipError_t hipGraphExecBatchMemOpNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipBatchMemOpNodeParams *nodeParams)
Sets the parameters for a batch mem op node in the given graphExec.[BETA].
hipError_t hipGraphAddBatchMemOpNode(hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, const hipBatchMemOpNodeParams *nodeParams)
Creates a batch memory operation node and adds it to a graph.[BETA].
hipError_t hipGraphBatchMemOpNodeGetParams(hipGraphNode_t hNode, hipBatchMemOpNodeParams *nodeParams_out)
Returns a batch mem op node's parameters.[BETA].
hipError_t hipGraphBatchMemOpNodeSetParams(hipGraphNode_t hNode, hipBatchMemOpNodeParams *nodeParams)
Sets the batch mem op node's parameters.[BETA].
Structure representing node parameters for batch memory operations in HIP graphs.
Definition hip_runtime_api.h:948
hipStreamBatchMemOpParams * paramArray
Definition hip_runtime_api.h:951
Field Documentation
◆ count
unsigned int hipBatchMemOpNodeParams::count |
◆ ctx
hipCtx_t hipBatchMemOpNodeParams::ctx |
◆ flags
unsigned int hipBatchMemOpNodeParams::flags |
◆ paramArray
hipStreamBatchMemOpParams* hipBatchMemOpNodeParams::paramArray |
The documentation for this struct was generated from the following file:
- include/hip/hip_runtime_api.h