Graph Management#
Functions | |
hipError_t | hipStreamBeginCapture (hipStream_t stream, hipStreamCaptureMode mode) |
Begins graph capture on a stream. | |
hipError_t | hipStreamBeginCaptureToGraph (hipStream_t stream, hipGraph_t graph, const hipGraphNode_t *dependencies, const hipGraphEdgeData *dependencyData, size_t numDependencies, hipStreamCaptureMode mode) |
Begins graph capture on a stream to an existing graph. | |
hipError_t | hipStreamEndCapture (hipStream_t stream, hipGraph_t *pGraph) |
Ends capture on a stream, returning the captured graph. | |
hipError_t | hipStreamGetCaptureInfo (hipStream_t stream, hipStreamCaptureStatus *pCaptureStatus, unsigned long long *pId) |
Get capture status of a stream. | |
hipError_t | hipStreamGetCaptureInfo_v2 (hipStream_t stream, hipStreamCaptureStatus *captureStatus_out, unsigned long long *id_out, hipGraph_t *graph_out, const hipGraphNode_t **dependencies_out, size_t *numDependencies_out) |
Get stream's capture state. | |
hipError_t | hipStreamIsCapturing (hipStream_t stream, hipStreamCaptureStatus *pCaptureStatus) |
Get stream's capture state. | |
hipError_t | hipStreamUpdateCaptureDependencies (hipStream_t stream, hipGraphNode_t *dependencies, size_t numDependencies, unsigned int flags) |
Update the set of dependencies in a capturing stream. | |
hipError_t | hipThreadExchangeStreamCaptureMode (hipStreamCaptureMode *mode) |
Swaps the stream capture mode of a thread. | |
hipError_t | hipGraphCreate (hipGraph_t *pGraph, unsigned int flags) |
Creates a graph. | |
hipError_t | hipGraphDestroy (hipGraph_t graph) |
Destroys a graph. | |
hipError_t | hipGraphAddDependencies (hipGraph_t graph, const hipGraphNode_t *from, const hipGraphNode_t *to, size_t numDependencies) |
Adds dependency edges to a graph. | |
hipError_t | hipGraphRemoveDependencies (hipGraph_t graph, const hipGraphNode_t *from, const hipGraphNode_t *to, size_t numDependencies) |
Removes dependency edges from a graph. | |
hipError_t | hipGraphGetEdges (hipGraph_t graph, hipGraphNode_t *from, hipGraphNode_t *to, size_t *numEdges) |
Returns a graph's dependency edges. | |
hipError_t | hipGraphGetNodes (hipGraph_t graph, hipGraphNode_t *nodes, size_t *numNodes) |
Returns a graph's nodes. | |
hipError_t | hipGraphGetRootNodes (hipGraph_t graph, hipGraphNode_t *pRootNodes, size_t *pNumRootNodes) |
Returns a graph's root nodes. | |
hipError_t | hipGraphNodeGetDependencies (hipGraphNode_t node, hipGraphNode_t *pDependencies, size_t *pNumDependencies) |
Returns a node's dependencies. | |
hipError_t | hipGraphNodeGetDependentNodes (hipGraphNode_t node, hipGraphNode_t *pDependentNodes, size_t *pNumDependentNodes) |
Returns a node's dependent nodes. | |
hipError_t | hipGraphNodeGetType (hipGraphNode_t node, hipGraphNodeType *pType) |
Returns a node's type. | |
hipError_t | hipGraphDestroyNode (hipGraphNode_t node) |
Remove a node from the graph. | |
hipError_t | hipGraphClone (hipGraph_t *pGraphClone, hipGraph_t originalGraph) |
Clones a graph. | |
hipError_t | hipGraphNodeFindInClone (hipGraphNode_t *pNode, hipGraphNode_t originalNode, hipGraph_t clonedGraph) |
Finds a cloned version of a node. | |
hipError_t | hipGraphInstantiate (hipGraphExec_t *pGraphExec, hipGraph_t graph, hipGraphNode_t *pErrorNode, char *pLogBuffer, size_t bufferSize) |
Creates an executable graph from a graph. | |
hipError_t | hipGraphInstantiateWithFlags (hipGraphExec_t *pGraphExec, hipGraph_t graph, unsigned long long flags) |
Creates an executable graph from a graph. | |
hipError_t | hipGraphInstantiateWithParams (hipGraphExec_t *pGraphExec, hipGraph_t graph, hipGraphInstantiateParams *instantiateParams) |
Creates an executable graph from a graph. | |
hipError_t | hipGraphLaunch (hipGraphExec_t graphExec, hipStream_t stream) |
Launches an executable graph in the specified stream. | |
hipError_t | hipGraphUpload (hipGraphExec_t graphExec, hipStream_t stream) |
Uploads an executable graph to a stream. | |
hipError_t | hipGraphAddNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipGraphNodeParams *nodeParams) |
Creates a kernel execution node and adds it to a graph. | |
hipError_t | hipGraphExecGetFlags (hipGraphExec_t graphExec, unsigned long long *flags) |
Return the flags of an executable graph. | |
hipError_t | hipGraphNodeSetParams (hipGraphNode_t node, hipGraphNodeParams *nodeParams) |
Updates parameters of a graph's node. | |
hipError_t | hipGraphExecNodeSetParams (hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams *nodeParams) |
Updates parameters of an executable graph's node. | |
hipError_t | hipGraphExecDestroy (hipGraphExec_t graphExec) |
Destroys an executable graph. | |
hipError_t | hipGraphExecUpdate (hipGraphExec_t hGraphExec, hipGraph_t hGraph, hipGraphNode_t *hErrorNode_out, hipGraphExecUpdateResult *updateResult_out) |
Check whether an executable graph can be updated with a graph and perform the update if * possible. | |
hipError_t | hipGraphAddKernelNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipKernelNodeParams *pNodeParams) |
Creates a kernel execution node and adds it to a graph. | |
hipError_t | hipGraphKernelNodeGetParams (hipGraphNode_t node, hipKernelNodeParams *pNodeParams) |
Gets kernel node's parameters. | |
hipError_t | hipGraphKernelNodeSetParams (hipGraphNode_t node, const hipKernelNodeParams *pNodeParams) |
Sets a kernel node's parameters. | |
hipError_t | hipGraphExecKernelNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams *pNodeParams) |
Sets the parameters for a kernel node in the given graphExec. | |
hipError_t | hipDrvGraphAddMemcpyNode (hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, const HIP_MEMCPY3D *copyParams, hipCtx_t ctx) |
Creates a memcpy node and adds it to a graph. | |
hipError_t | hipGraphAddMemcpyNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipMemcpy3DParms *pCopyParams) |
Creates a memcpy node and adds it to a graph. | |
hipError_t | hipGraphMemcpyNodeGetParams (hipGraphNode_t node, hipMemcpy3DParms *pNodeParams) |
Gets a memcpy node's parameters. | |
hipError_t | hipGraphMemcpyNodeSetParams (hipGraphNode_t node, const hipMemcpy3DParms *pNodeParams) |
Sets a memcpy node's parameters. | |
hipError_t | hipGraphKernelNodeSetAttribute (hipGraphNode_t hNode, hipKernelNodeAttrID attr, const hipKernelNodeAttrValue *value) |
Sets a node's attribute. | |
hipError_t | hipGraphKernelNodeGetAttribute (hipGraphNode_t hNode, hipKernelNodeAttrID attr, hipKernelNodeAttrValue *value) |
Gets a node's attribute. | |
hipError_t | hipGraphExecMemcpyNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t node, hipMemcpy3DParms *pNodeParams) |
Sets the parameters of a memcpy node in the given graphExec. | |
hipError_t | hipGraphAddMemcpyNode1D (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, void *dst, const void *src, size_t count, hipMemcpyKind kind) |
Creates a 1D memcpy node and adds it to a graph. | |
hipError_t | hipGraphMemcpyNodeSetParams1D (hipGraphNode_t node, void *dst, const void *src, size_t count, hipMemcpyKind kind) |
Sets a memcpy node's parameters to perform a 1-dimensional copy. | |
hipError_t | hipGraphExecMemcpyNodeSetParams1D (hipGraphExec_t hGraphExec, hipGraphNode_t node, void *dst, const void *src, size_t count, hipMemcpyKind kind) |
Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy. | |
hipError_t | hipGraphAddMemcpyNodeFromSymbol (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, void *dst, const void *symbol, size_t count, size_t offset, hipMemcpyKind kind) |
Creates a memcpy node to copy from a symbol on the device and adds it to a graph. | |
hipError_t | hipGraphMemcpyNodeSetParamsFromSymbol (hipGraphNode_t node, void *dst, const void *symbol, size_t count, size_t offset, hipMemcpyKind kind) |
Sets a memcpy node's parameters to copy from a symbol on the device. | |
hipError_t | hipGraphExecMemcpyNodeSetParamsFromSymbol (hipGraphExec_t hGraphExec, hipGraphNode_t node, void *dst, const void *symbol, size_t count, size_t offset, hipMemcpyKind kind) |
Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the. | |
hipError_t | hipGraphAddMemcpyNodeToSymbol (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const void *symbol, const void *src, size_t count, size_t offset, hipMemcpyKind kind) |
Creates a memcpy node to copy to a symbol on the device and adds it to a graph. | |
hipError_t | hipGraphMemcpyNodeSetParamsToSymbol (hipGraphNode_t node, const void *symbol, const void *src, size_t count, size_t offset, hipMemcpyKind kind) |
Sets a memcpy node's parameters to copy to a symbol on the device. | |
hipError_t | hipGraphExecMemcpyNodeSetParamsToSymbol (hipGraphExec_t hGraphExec, hipGraphNode_t node, const void *symbol, const void *src, size_t count, size_t offset, hipMemcpyKind kind) |
Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device. | |
hipError_t | hipGraphAddMemsetNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipMemsetParams *pMemsetParams) |
Creates a memset node and adds it to a graph. | |
hipError_t | hipGraphMemsetNodeGetParams (hipGraphNode_t node, hipMemsetParams *pNodeParams) |
Gets a memset node's parameters. | |
hipError_t | hipGraphMemsetNodeSetParams (hipGraphNode_t node, const hipMemsetParams *pNodeParams) |
Sets a memset node's parameters. | |
hipError_t | hipGraphExecMemsetNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipMemsetParams *pNodeParams) |
Sets the parameters for a memset node in the given graphExec. | |
hipError_t | hipGraphAddHostNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipHostNodeParams *pNodeParams) |
Creates a host execution node and adds it to a graph. | |
hipError_t | hipGraphHostNodeGetParams (hipGraphNode_t node, hipHostNodeParams *pNodeParams) |
Returns a host node's parameters. | |
hipError_t | hipGraphHostNodeSetParams (hipGraphNode_t node, const hipHostNodeParams *pNodeParams) |
Sets a host node's parameters. | |
hipError_t | hipGraphExecHostNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipHostNodeParams *pNodeParams) |
Sets the parameters for a host node in the given graphExec. | |
hipError_t | hipGraphAddChildGraphNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipGraph_t childGraph) |
Creates a child graph node and adds it to a graph. | |
hipError_t | hipGraphChildGraphNodeGetGraph (hipGraphNode_t node, hipGraph_t *pGraph) |
Gets a handle to the embedded graph of a child graph node. | |
hipError_t | hipGraphExecChildGraphNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t node, hipGraph_t childGraph) |
Updates node parameters in the child graph node in the given graphExec. | |
hipError_t | hipGraphAddEmptyNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies) |
Creates an empty node and adds it to a graph. | |
hipError_t | hipGraphAddEventRecordNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipEvent_t event) |
Creates an event record node and adds it to a graph. | |
hipError_t | hipGraphEventRecordNodeGetEvent (hipGraphNode_t node, hipEvent_t *event_out) |
Returns the event associated with an event record node. | |
hipError_t | hipGraphEventRecordNodeSetEvent (hipGraphNode_t node, hipEvent_t event) |
Sets an event record node's event. | |
hipError_t | hipGraphExecEventRecordNodeSetEvent (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event) |
Sets the event for an event record node in the given graphExec. | |
hipError_t | hipGraphAddEventWaitNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipEvent_t event) |
Creates an event wait node and adds it to a graph. | |
hipError_t | hipGraphEventWaitNodeGetEvent (hipGraphNode_t node, hipEvent_t *event_out) |
Returns the event associated with an event wait node. | |
hipError_t | hipGraphEventWaitNodeSetEvent (hipGraphNode_t node, hipEvent_t event) |
Sets an event wait node's event. | |
hipError_t | hipGraphExecEventWaitNodeSetEvent (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event) |
Sets the event for an event record node in the given graphExec. | |
hipError_t | hipGraphAddMemAllocNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipMemAllocNodeParams *pNodeParams) |
Creates a memory allocation node and adds it to a graph. | |
hipError_t | hipGraphMemAllocNodeGetParams (hipGraphNode_t node, hipMemAllocNodeParams *pNodeParams) |
Returns parameters for memory allocation node. | |
hipError_t | hipGraphAddMemFreeNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, void *dev_ptr) |
Creates a memory free node and adds it to a graph. | |
hipError_t | hipGraphMemFreeNodeGetParams (hipGraphNode_t node, void *dev_ptr) |
Returns parameters for memory free node. | |
hipError_t | hipDeviceGetGraphMemAttribute (int device, hipGraphMemAttributeType attr, void *value) |
Get the mem attribute for graphs. | |
hipError_t | hipDeviceSetGraphMemAttribute (int device, hipGraphMemAttributeType attr, void *value) |
Set the mem attribute for graphs. | |
hipError_t | hipDeviceGraphMemTrim (int device) |
Free unused memory reserved for graphs on a specific device and return it back to the OS. | |
hipError_t | hipUserObjectCreate (hipUserObject_t *object_out, void *ptr, hipHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) |
Create an instance of userObject to manage lifetime of a resource. | |
hipError_t | hipUserObjectRelease (hipUserObject_t object, unsigned int count) |
Release number of references to resource. | |
hipError_t | hipUserObjectRetain (hipUserObject_t object, unsigned int count) |
Retain number of references to resource. | |
hipError_t | hipGraphRetainUserObject (hipGraph_t graph, hipUserObject_t object, unsigned int count, unsigned int flags) |
Retain user object for graphs. | |
hipError_t | hipGraphReleaseUserObject (hipGraph_t graph, hipUserObject_t object, unsigned int count) |
Release user object from graphs. | |
hipError_t | hipGraphDebugDotPrint (hipGraph_t graph, const char *path, unsigned int flags) |
Write a DOT file describing graph structure. | |
hipError_t | hipGraphKernelNodeCopyAttributes (hipGraphNode_t hSrc, hipGraphNode_t hDst) |
Copies attributes from source node to destination node. | |
hipError_t | hipGraphNodeSetEnabled (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int isEnabled) |
Enables or disables the specified node in the given graphExec. | |
hipError_t | hipGraphNodeGetEnabled (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int *isEnabled) |
Query whether a node in the given graphExec is enabled. | |
hipError_t | hipGraphAddExternalSemaphoresWaitNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipExternalSemaphoreWaitNodeParams *nodeParams) |
Creates a external semaphor wait node and adds it to a graph. | |
hipError_t | hipGraphAddExternalSemaphoresSignalNode (hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipExternalSemaphoreSignalNodeParams *nodeParams) |
Creates a external semaphor signal node and adds it to a graph. | |
hipError_t | hipGraphExternalSemaphoresSignalNodeSetParams (hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams *nodeParams) |
Updates node parameters in the external semaphore signal node. | |
hipError_t | hipGraphExternalSemaphoresWaitNodeSetParams (hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams *nodeParams) |
Updates node parameters in the external semaphore wait node. | |
hipError_t | hipGraphExternalSemaphoresSignalNodeGetParams (hipGraphNode_t hNode, hipExternalSemaphoreSignalNodeParams *params_out) |
Returns external semaphore signal node params. | |
hipError_t | hipGraphExternalSemaphoresWaitNodeGetParams (hipGraphNode_t hNode, hipExternalSemaphoreWaitNodeParams *params_out) |
Returns external semaphore wait node params. | |
hipError_t | hipGraphExecExternalSemaphoresSignalNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams *nodeParams) |
Updates node parameters in the external semaphore signal node in the given graphExec. | |
hipError_t | hipGraphExecExternalSemaphoresWaitNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams *nodeParams) |
Updates node parameters in the external semaphore wait node in the given graphExec. | |
hipError_t | hipDrvGraphMemcpyNodeGetParams (hipGraphNode_t hNode, HIP_MEMCPY3D *nodeParams) |
Gets a memcpy node's parameters. | |
hipError_t | hipDrvGraphMemcpyNodeSetParams (hipGraphNode_t hNode, const HIP_MEMCPY3D *nodeParams) |
Sets a memcpy node's parameters. | |
hipError_t | hipDrvGraphAddMemsetNode (hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, const HIP_MEMSET_NODE_PARAMS *memsetParams, hipCtx_t ctx) |
Creates a memset node and adds it to a graph. | |
hipError_t | hipDrvGraphAddMemFreeNode (hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, hipDeviceptr_t dptr) |
Creates a memory free node and adds it to a graph. | |
hipError_t | hipDrvGraphExecMemcpyNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const HIP_MEMCPY3D *copyParams, hipCtx_t ctx) |
Sets the parameters for a memcpy node in the given graphExec. | |
hipError_t | hipDrvGraphExecMemsetNodeSetParams (hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const HIP_MEMSET_NODE_PARAMS *memsetParams, hipCtx_t ctx) |
Sets the parameters for a memset node in the given graphExec. | |
Detailed Description
This section describes the graph management types & functions of HIP runtime API.
Function Documentation
◆ hipDeviceGetGraphMemAttribute()
hipError_t hipDeviceGetGraphMemAttribute | ( | int | device, |
hipGraphMemAttributeType | attr, | ||
void * | value | ||
) |
Get the mem attribute for graphs.
- Parameters
-
[in] device - Device to get attributes from [in] attr - Attribute type to be queried [out] value - Value of the queried attribute
- Returns
- hipSuccess, hipErrorInvalidDevice
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDeviceGraphMemTrim()
hipError_t hipDeviceGraphMemTrim | ( | int | device | ) |
Free unused memory reserved for graphs on a specific device and return it back to the OS.
- Parameters
-
[in] device - Device for which memory should be trimmed
- Returns
- hipSuccess, hipErrorInvalidDevice
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDeviceSetGraphMemAttribute()
hipError_t hipDeviceSetGraphMemAttribute | ( | int | device, |
hipGraphMemAttributeType | attr, | ||
void * | value | ||
) |
Set the mem attribute for graphs.
- Parameters
-
[in] device - Device to set attribute of. [in] attr - Attribute type to be set. [in] value - Value of the attribute.
- Returns
- hipSuccess, hipErrorInvalidDevice
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphAddMemcpyNode()
hipError_t hipDrvGraphAddMemcpyNode | ( | hipGraphNode_t * | phGraphNode, |
hipGraph_t | hGraph, | ||
const hipGraphNode_t * | dependencies, | ||
size_t | numDependencies, | ||
const HIP_MEMCPY3D * | copyParams, | ||
hipCtx_t | ctx | ||
) |
Creates a memcpy node and adds it to a graph.
- Parameters
-
[out] phGraphNode - Pointer to graph node that is created. [in] hGraph - Instance of graph to add the created node to. [in] dependencies - const pointer to the dependencies of the memcpy execution node. [in] numDependencies - The number of dependencies. [in] copyParams - const pointer to the parameters for the memory copy. [in] ctx - context related to current device.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphAddMemFreeNode()
hipError_t hipDrvGraphAddMemFreeNode | ( | hipGraphNode_t * | phGraphNode, |
hipGraph_t | hGraph, | ||
const hipGraphNode_t * | dependencies, | ||
size_t | numDependencies, | ||
hipDeviceptr_t | dptr | ||
) |
Creates a memory free node and adds it to a graph.
- Parameters
-
[out] phGraphNode - Pointer to the graph node to create and add to the graph [in] hGraph - Instance of the graph the node to be added [in] dependencies - Const pointer to the node dependencies [in] numDependencies - The number of dependencies [in] dptr - Pointer to the memory to be freed
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphAddMemsetNode()
hipError_t hipDrvGraphAddMemsetNode | ( | hipGraphNode_t * | phGraphNode, |
hipGraph_t | hGraph, | ||
const hipGraphNode_t * | dependencies, | ||
size_t | numDependencies, | ||
const HIP_MEMSET_NODE_PARAMS * | memsetParams, | ||
hipCtx_t | ctx | ||
) |
Creates a memset node and adds it to a graph.
- Parameters
-
[out] phGraphNode - pointer to graph node to create. [in] hGraph - instance of graph to add the created node to. [in] dependencies - const pointer to the dependencies on the memset execution node. [in] numDependencies - number of the dependencies. [in] memsetParams - const pointer to the parameters for the memory set. [in] ctx - cotext related to current device.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphExecMemcpyNodeSetParams()
hipError_t hipDrvGraphExecMemcpyNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
const HIP_MEMCPY3D * | copyParams, | ||
hipCtx_t | ctx | ||
) |
Sets the parameters for a memcpy node in the given graphExec.
- Parameters
-
[in] hGraphExec - instance of the executable graph with the node. [in] hNode - instance of the node to set parameters to. [in] copyParams - const pointer to the memcpy node params. [in] ctx - cotext related to current device.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphExecMemsetNodeSetParams()
hipError_t hipDrvGraphExecMemsetNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
const HIP_MEMSET_NODE_PARAMS * | memsetParams, | ||
hipCtx_t | ctx | ||
) |
Sets the parameters for a memset node in the given graphExec.
- Parameters
-
[in] hGraphExec - instance of the executable graph with the node. [in] hNode - instance of the node to set parameters to. [in] memsetParams - pointer to the parameters. [in] ctx - cotext related to current device.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphMemcpyNodeGetParams()
hipError_t hipDrvGraphMemcpyNodeGetParams | ( | hipGraphNode_t | hNode, |
HIP_MEMCPY3D * | nodeParams | ||
) |
Gets a memcpy node's parameters.
- Parameters
-
[in] hNode - instance of the node to get parameters from. [out] nodeParams - pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipDrvGraphMemcpyNodeSetParams()
hipError_t hipDrvGraphMemcpyNodeSetParams | ( | hipGraphNode_t | hNode, |
const HIP_MEMCPY3D * | nodeParams | ||
) |
Sets a memcpy node's parameters.
- Parameters
-
[in] hNode - instance of the node to Set parameters for. [out] nodeParams - pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddChildGraphNode()
hipError_t hipGraphAddChildGraphNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
hipGraph_t | childGraph | ||
) |
Creates a child graph node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of the graph to add the created node. [in] pDependencies - const pointer to the dependencies of the memset execution node. [in] numDependencies - Number of dependencies. [in] childGraph - Graph to clone into this node
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddDependencies()
hipError_t hipGraphAddDependencies | ( | hipGraph_t | graph, |
const hipGraphNode_t * | from, | ||
const hipGraphNode_t * | to, | ||
size_t | numDependencies | ||
) |
Adds dependency edges to a graph.
- Parameters
-
[in] graph - Instance of the graph to add dependencies to. [in] from - Pointer to the graph nodes with dependencies to add from. [in] to - Pointer to the graph nodes to add dependencies to. [in] numDependencies - Number of dependencies to add.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddEmptyNode()
hipError_t hipGraphAddEmptyNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies | ||
) |
Creates an empty node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of the graph the node is added to. [in] pDependencies - const pointer to the node dependencies. [in] numDependencies - Number of dependencies.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddEventRecordNode()
hipError_t hipGraphAddEventRecordNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
hipEvent_t | event | ||
) |
Creates an event record node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of the graph the node is added to. [in] pDependencies - const pointer to the node dependencies. [in] numDependencies - Number of dependencies. [in] event - Event of the node.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddEventWaitNode()
hipError_t hipGraphAddEventWaitNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
hipEvent_t | event | ||
) |
Creates an event wait node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of the graph the node to be added. [in] pDependencies - const pointer to the node dependencies. [in] numDependencies - Number of dependencies. [in] event - Event for the node.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddExternalSemaphoresSignalNode()
hipError_t hipGraphAddExternalSemaphoresSignalNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const hipExternalSemaphoreSignalNodeParams * | nodeParams | ||
) |
Creates a external semaphor signal node and adds it to a graph.
- Parameters
-
[out] pGraphNode - pointer to the graph node to create. [in] graph - instance of the graph to add the created node. [in] pDependencies - const pointer to the dependencies on the memset execution node. [in] numDependencies - the number of the dependencies. [in] nodeParams -pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddExternalSemaphoresWaitNode()
hipError_t hipGraphAddExternalSemaphoresWaitNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const hipExternalSemaphoreWaitNodeParams * | nodeParams | ||
) |
Creates a external semaphor wait node and adds it to a graph.
- Parameters
-
[out] pGraphNode - pointer to the graph node to create. [in] graph - instance of the graph to add the created node. [in] pDependencies - const pointer to the dependencies on the memset execution node. [in] numDependencies - the number of the dependencies. [in] nodeParams -pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddHostNode()
hipError_t hipGraphAddHostNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const hipHostNodeParams * | pNodeParams | ||
) |
Creates a host execution node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of the graph to add the created node to. [in] pDependencies - const pointer to the dependencies of the memset execution node. [in] numDependencies - Number of dependencies. [in] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddKernelNode()
hipError_t hipGraphAddKernelNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const hipKernelNodeParams * | pNodeParams | ||
) |
Creates a kernel execution node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created [in] graph - Instance of graph to add the created node to. [in] pDependencies - Pointer to the dependencies of the kernel execution node. [in] numDependencies - The number of the dependencies. [in] pNodeParams - Pointer to the parameters of the kernel execution node.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemAllocNode()
hipError_t hipGraphAddMemAllocNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
hipMemAllocNodeParams * | pNodeParams | ||
) |
Creates a memory allocation node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to the graph node to create and add to the graph [in] graph - Instance of the graph node to be added [in] pDependencies - Const pointer to the node dependencies [in] numDependencies - The number of dependencies [in,out] pNodeParams - Node parameters for memory allocation, returns a pointer to the allocated memory.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemcpyNode()
hipError_t hipGraphAddMemcpyNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const hipMemcpy3DParms * | pCopyParams | ||
) |
Creates a memcpy node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of graph to add the created node to. [in] pDependencies - const pointer to the dependencies of the memcpy execution node. [in] numDependencies - The number of dependencies. [in] pCopyParams - const pointer to the parameters for the memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemcpyNode1D()
hipError_t hipGraphAddMemcpyNode1D | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
void * | dst, | ||
const void * | src, | ||
size_t | count, | ||
hipMemcpyKind | kind | ||
) |
Creates a 1D memcpy node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of graph to add the created node to. [in] pDependencies - const pointer to the dependencies of the memcpy execution node. [in] numDependencies - The number of dependencies. [in] dst - Pointer to memory address of the destination. [in] src - Pointer to memory address of the source. [in] count - Size of the memory to copy. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemcpyNodeFromSymbol()
hipError_t hipGraphAddMemcpyNodeFromSymbol | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
void * | dst, | ||
const void * | symbol, | ||
size_t | count, | ||
size_t | offset, | ||
hipMemcpyKind | kind | ||
) |
Creates a memcpy node to copy from a symbol on the device and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of graph to add the created node to. [in] pDependencies - const pointer to the dependencies of the memcpy execution node. [in] numDependencies - Number of the dependencies. [in] dst - Pointer to memory address of the destination. [in] symbol - Device symbol address. [in] count - Size of the memory to copy. [in] offset - Offset from start of symbol in bytes. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemcpyNodeToSymbol()
hipError_t hipGraphAddMemcpyNodeToSymbol | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const void * | symbol, | ||
const void * | src, | ||
size_t | count, | ||
size_t | offset, | ||
hipMemcpyKind | kind | ||
) |
Creates a memcpy node to copy to a symbol on the device and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of graph to add the created node to. [in] pDependencies - const pointer to the dependencies on the memcpy execution node. [in] numDependencies - Number of dependencies. [in] symbol - Device symbol address. [in] src - Pointer to memory address of the src. [in] count - Size of the memory to copy. [in] offset - Offset from start of symbol in bytes. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemFreeNode()
hipError_t hipGraphAddMemFreeNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
void * | dev_ptr | ||
) |
Creates a memory free node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to the graph node to create and add to the graph [in] graph - Instance of the graph node to be added [in] pDependencies - Const pointer to the node dependencies [in] numDependencies - The number of dependencies [in] dev_ptr - Pointer to the memory to be freed
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddMemsetNode()
hipError_t hipGraphAddMemsetNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
const hipMemsetParams * | pMemsetParams | ||
) |
Creates a memset node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to graph node that is created. [in] graph - Instance of the graph to add the created node to. [in] pDependencies - const pointer to the dependencies on the memset execution node. [in] numDependencies - Number of dependencies. [in] pMemsetParams - const pointer to the parameters for the memory set.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphAddNode()
hipError_t hipGraphAddNode | ( | hipGraphNode_t * | pGraphNode, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | pDependencies, | ||
size_t | numDependencies, | ||
hipGraphNodeParams * | nodeParams | ||
) |
Creates a kernel execution node and adds it to a graph.
- Parameters
-
[out] pGraphNode - Pointer to kernel graph node that is created. [in] graph - Instance of graph to add the created node to. [in] pDependencies - Pointer to the dependencies on the kernel execution node. [in] numDependencies - Number of dependencies. [in] nodeParams - Pointer to the node parameters.
- Returns
- hipSuccess, hipErrorInvalidValue.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphChildGraphNodeGetGraph()
hipError_t hipGraphChildGraphNodeGetGraph | ( | hipGraphNode_t | node, |
hipGraph_t * | pGraph | ||
) |
Gets a handle to the embedded graph of a child graph node.
- Parameters
-
[in] node - Instance of the node to get child graph of. [out] pGraph - Pointer to get the graph.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphClone()
hipError_t hipGraphClone | ( | hipGraph_t * | pGraphClone, |
hipGraph_t | originalGraph | ||
) |
Clones a graph.
- Parameters
-
[out] pGraphClone - Returns newly created cloned graph. [in] originalGraph - original graph to clone from.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphCreate()
hipError_t hipGraphCreate | ( | hipGraph_t * | pGraph, |
unsigned int | flags | ||
) |
Creates a graph.
- Parameters
-
[out] pGraph - pointer to graph to create. [in] flags - flags for graph creation, must be 0.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphDebugDotPrint()
hipError_t hipGraphDebugDotPrint | ( | hipGraph_t | graph, |
const char * | path, | ||
unsigned int | flags | ||
) |
Write a DOT file describing graph structure.
- Parameters
-
[in] graph - graph object for which DOT file has to be generated. [in] path - path to write the DOT file. [in] flags - Flags from hipGraphDebugDotFlags to get additional node information.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphDestroy()
hipError_t hipGraphDestroy | ( | hipGraph_t | graph | ) |
Destroys a graph.
- Parameters
-
[in] graph - instance of graph to destroy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphDestroyNode()
hipError_t hipGraphDestroyNode | ( | hipGraphNode_t | node | ) |
Remove a node from the graph.
- Parameters
-
[in] node - graph node to remove
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphEventRecordNodeGetEvent()
hipError_t hipGraphEventRecordNodeGetEvent | ( | hipGraphNode_t | node, |
hipEvent_t * | event_out | ||
) |
Returns the event associated with an event record node.
- Parameters
-
[in] node - Instance of the node to get event of. [out] event_out - Pointer to return the event.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphEventRecordNodeSetEvent()
hipError_t hipGraphEventRecordNodeSetEvent | ( | hipGraphNode_t | node, |
hipEvent_t | event | ||
) |
Sets an event record node's event.
- Parameters
-
[in] node - Instance of the node to set event to. [in] event - Pointer to the event.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphEventWaitNodeGetEvent()
hipError_t hipGraphEventWaitNodeGetEvent | ( | hipGraphNode_t | node, |
hipEvent_t * | event_out | ||
) |
Returns the event associated with an event wait node.
- Parameters
-
[in] node - Instance of the node to get event of. [out] event_out - Pointer to return the event.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphEventWaitNodeSetEvent()
hipError_t hipGraphEventWaitNodeSetEvent | ( | hipGraphNode_t | node, |
hipEvent_t | event | ||
) |
Sets an event wait node's event.
- Parameters
-
[in] node - Instance of the node to set event of. [in] event - Pointer to the event.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecChildGraphNodeSetParams()
hipError_t hipGraphExecChildGraphNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
hipGraph_t | childGraph | ||
) |
Updates node parameters in the child graph node in the given graphExec.
- Parameters
-
[in] hGraphExec - instance of the executable graph with the node. [in] node - node from the graph which was used to instantiate graphExec. [in] childGraph - child graph with updated parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecDestroy()
hipError_t hipGraphExecDestroy | ( | hipGraphExec_t | graphExec | ) |
Destroys an executable graph.
- Parameters
-
[in] graphExec - Instance of executable graph to destroy.
- Returns
- hipSuccess.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecEventRecordNodeSetEvent()
hipError_t hipGraphExecEventRecordNodeSetEvent | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
hipEvent_t | event | ||
) |
Sets the event for an event record node in the given graphExec.
- Parameters
-
[in] hGraphExec - instance of the executable graph with the node. [in] hNode - node from the graph which was used to instantiate graphExec. [in] event - pointer to the event.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecEventWaitNodeSetEvent()
hipError_t hipGraphExecEventWaitNodeSetEvent | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
hipEvent_t | event | ||
) |
Sets the event for an event record node in the given graphExec.
- Parameters
-
[in] hGraphExec - instance of the executable graph with the node. [in] hNode - node from the graph which was used to instantiate graphExec. [in] event - pointer to the event.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecExternalSemaphoresSignalNodeSetParams()
hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
const hipExternalSemaphoreSignalNodeParams * | nodeParams | ||
) |
Updates node parameters in the external semaphore signal node in the given graphExec.
- Parameters
-
[in] hGraphExec - The executable graph in which to set the specified node. [in] hNode - Node from the graph from which graphExec was instantiated. [in] nodeParams - Pointer to the params to be set.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecExternalSemaphoresWaitNodeSetParams()
hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
const hipExternalSemaphoreWaitNodeParams * | nodeParams | ||
) |
Updates node parameters in the external semaphore wait node in the given graphExec.
- Parameters
-
[in] hGraphExec - The executable graph in which to set the specified node. [in] hNode - Node from the graph from which graphExec was instantiated. [in] nodeParams - Pointer to the params to be set.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecGetFlags()
hipError_t hipGraphExecGetFlags | ( | hipGraphExec_t | graphExec, |
unsigned long long * | flags | ||
) |
Return the flags of an executable graph.
- Parameters
-
[in] graphExec - Executable graph to get the flags from. [out] flags - Flags used to instantiate this executable graph.
- Returns
- hipSuccess, hipErrorInvalidValue.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecHostNodeSetParams()
hipError_t hipGraphExecHostNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
const hipHostNodeParams * | pNodeParams | ||
) |
Sets the parameters for a host node in the given graphExec.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecKernelNodeSetParams()
hipError_t hipGraphExecKernelNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
const hipKernelNodeParams * | pNodeParams | ||
) |
Sets the parameters for a kernel node in the given graphExec.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] pNodeParams - const pointer to the kernel node parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecMemcpyNodeSetParams()
hipError_t hipGraphExecMemcpyNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
hipMemcpy3DParms * | pNodeParams | ||
) |
Sets the parameters of a memcpy node in the given graphExec.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] pNodeParams - const pointer to the kernel node parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecMemcpyNodeSetParams1D()
hipError_t hipGraphExecMemcpyNodeSetParams1D | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
void * | dst, | ||
const void * | src, | ||
size_t | count, | ||
hipMemcpyKind | kind | ||
) |
Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] dst - Pointer to memory address of the destination. [in] src - Pointer to memory address of the source. [in] count - Size of the memory to copy. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecMemcpyNodeSetParamsFromSymbol()
hipError_t hipGraphExecMemcpyNodeSetParamsFromSymbol | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
void * | dst, | ||
const void * | symbol, | ||
size_t | count, | ||
size_t | offset, | ||
hipMemcpyKind | kind | ||
) |
Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the.
- device.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] dst - Pointer to memory address of the destination. [in] symbol - Device symbol address. [in] count - Size of the memory to copy. [in] offset - Offset from start of symbol in bytes. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecMemcpyNodeSetParamsToSymbol()
hipError_t hipGraphExecMemcpyNodeSetParamsToSymbol | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
const void * | symbol, | ||
const void * | src, | ||
size_t | count, | ||
size_t | offset, | ||
hipMemcpyKind | kind | ||
) |
Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] symbol - Device symbol address. [in] src - Pointer to memory address of the src. [in] count - Size of the memory to copy. [in] offset - Offset from start of symbol in bytes. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecMemsetNodeSetParams()
hipError_t hipGraphExecMemsetNodeSetParams | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | node, | ||
const hipMemsetParams * | pNodeParams | ||
) |
Sets the parameters for a memset node in the given graphExec.
- Parameters
-
[in] hGraphExec - Instance of the executable graph with the node. [in] node - Instance of the node to set parameters of. [in] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecNodeSetParams()
hipError_t hipGraphExecNodeSetParams | ( | hipGraphExec_t | graphExec, |
hipGraphNode_t | node, | ||
hipGraphNodeParams * | nodeParams | ||
) |
Updates parameters of an executable graph's node.
- Parameters
-
[in] graphExec - Instance of the executable graph. [in] node - Instance of the node to set parameters to. [in] nodeParams - Pointer to the parameters to be set.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExecUpdate()
hipError_t hipGraphExecUpdate | ( | hipGraphExec_t | hGraphExec, |
hipGraph_t | hGraph, | ||
hipGraphNode_t * | hErrorNode_out, | ||
hipGraphExecUpdateResult * | updateResult_out | ||
) |
Check whether an executable graph can be updated with a graph and perform the update if * possible.
- Parameters
-
[in] hGraphExec - instance of executable graph to update. [in] hGraph - graph that contains the updated parameters. [in] hErrorNode_out - node which caused the permissibility check to forbid the update. [in] updateResult_out - Return code whether the graph update was performed.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExternalSemaphoresSignalNodeGetParams()
hipError_t hipGraphExternalSemaphoresSignalNodeGetParams | ( | hipGraphNode_t | hNode, |
hipExternalSemaphoreSignalNodeParams * | params_out | ||
) |
Returns external semaphore signal node params.
- Parameters
-
[in] hNode - Node from the graph from which graphExec was instantiated. [out] params_out - Pointer to params.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExternalSemaphoresSignalNodeSetParams()
hipError_t hipGraphExternalSemaphoresSignalNodeSetParams | ( | hipGraphNode_t | hNode, |
const hipExternalSemaphoreSignalNodeParams * | nodeParams | ||
) |
Updates node parameters in the external semaphore signal node.
- Parameters
-
[in] hNode - Node from the graph from which graphExec was instantiated. [in] nodeParams - Pointer to the params to be set.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExternalSemaphoresWaitNodeGetParams()
hipError_t hipGraphExternalSemaphoresWaitNodeGetParams | ( | hipGraphNode_t | hNode, |
hipExternalSemaphoreWaitNodeParams * | params_out | ||
) |
Returns external semaphore wait node params.
- Parameters
-
[in] hNode - Node from the graph from which graphExec was instantiated. [out] params_out - Pointer to params.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphExternalSemaphoresWaitNodeSetParams()
hipError_t hipGraphExternalSemaphoresWaitNodeSetParams | ( | hipGraphNode_t | hNode, |
const hipExternalSemaphoreWaitNodeParams * | nodeParams | ||
) |
Updates node parameters in the external semaphore wait node.
- Parameters
-
[in] hNode - Node from the graph from which graphExec was instantiated. [in] nodeParams - Pointer to the params to be set.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphGetEdges()
hipError_t hipGraphGetEdges | ( | hipGraph_t | graph, |
hipGraphNode_t * | from, | ||
hipGraphNode_t * | to, | ||
size_t * | numEdges | ||
) |
Returns a graph's dependency edges.
- Parameters
-
[in] graph - Instance of the graph to get the edges from. [out] from - Pointer to the graph nodes to return edge endpoints. [out] to - Pointer to the graph nodes to return edge endpoints. [out] numEdges - Returns number of edges.
- Returns
- hipSuccess, hipErrorInvalidValue
from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphGetNodes()
hipError_t hipGraphGetNodes | ( | hipGraph_t | graph, |
hipGraphNode_t * | nodes, | ||
size_t * | numNodes | ||
) |
Returns a graph's nodes.
- Parameters
-
[in] graph - Instance of graph to get the nodes from. [out] nodes - Pointer to return the graph nodes. [out] numNodes - Returns the number of graph nodes.
- Returns
- hipSuccess, hipErrorInvalidValue
nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphGetRootNodes()
hipError_t hipGraphGetRootNodes | ( | hipGraph_t | graph, |
hipGraphNode_t * | pRootNodes, | ||
size_t * | pNumRootNodes | ||
) |
Returns a graph's root nodes.
- Parameters
-
[in] graph - Instance of the graph to get the nodes from. [out] pRootNodes - Pointer to return the graph's root nodes. [out] pNumRootNodes - Returns the number of graph's root nodes.
- Returns
- hipSuccess, hipErrorInvalidValue
pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphHostNodeGetParams()
hipError_t hipGraphHostNodeGetParams | ( | hipGraphNode_t | node, |
hipHostNodeParams * | pNodeParams | ||
) |
Returns a host node's parameters.
- Parameters
-
[in] node - Instance of the node to get parameters of. [out] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphHostNodeSetParams()
hipError_t hipGraphHostNodeSetParams | ( | hipGraphNode_t | node, |
const hipHostNodeParams * | pNodeParams | ||
) |
Sets a host node's parameters.
- Parameters
-
[in] node - Instance of the node to set parameters of. [in] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphInstantiate()
hipError_t hipGraphInstantiate | ( | hipGraphExec_t * | pGraphExec, |
hipGraph_t | graph, | ||
hipGraphNode_t * | pErrorNode, | ||
char * | pLogBuffer, | ||
size_t | bufferSize | ||
) |
Creates an executable graph from a graph.
- Parameters
-
[out] pGraphExec - Pointer to instantiated executable graph. [in] graph - Instance of graph to instantiate. [out] pErrorNode - Pointer to error node. In case an error occured during graph instantiation, it could modify the corresponding node. [out] pLogBuffer - Pointer to log buffer. [out] bufferSize - Size of the log buffer.
- Returns
- hipSuccess, hipErrorOutOfMemory
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphInstantiateWithFlags()
hipError_t hipGraphInstantiateWithFlags | ( | hipGraphExec_t * | pGraphExec, |
hipGraph_t | graph, | ||
unsigned long long | flags | ||
) |
Creates an executable graph from a graph.
- Parameters
-
[out] pGraphExec - Pointer to instantiated executable graph. [in] graph - Instance of graph to instantiate. [in] flags - Flags to control instantiation.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues. It does not support any of flag and is behaving as hipGraphInstantiate.
◆ hipGraphInstantiateWithParams()
hipError_t hipGraphInstantiateWithParams | ( | hipGraphExec_t * | pGraphExec, |
hipGraph_t | graph, | ||
hipGraphInstantiateParams * | instantiateParams | ||
) |
Creates an executable graph from a graph.
- Parameters
-
[out] pGraphExec - Pointer to instantiated executable graph. [in] graph - Instance of graph to instantiate. [in] instantiateParams - Graph instantiation Params
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphKernelNodeCopyAttributes()
hipError_t hipGraphKernelNodeCopyAttributes | ( | hipGraphNode_t | hSrc, |
hipGraphNode_t | hDst | ||
) |
Copies attributes from source node to destination node.
Copies attributes from source node to destination node. Both node must have the same context.
- Parameters
-
[out] hDst - Destination node. [in] hSrc - Source node. For list of attributes see hipKernelNodeAttrID.
- Returns
- hipSuccess, hipErrorInvalidContext
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphKernelNodeGetAttribute()
hipError_t hipGraphKernelNodeGetAttribute | ( | hipGraphNode_t | hNode, |
hipKernelNodeAttrID | attr, | ||
hipKernelNodeAttrValue * | value | ||
) |
Gets a node's attribute.
- Parameters
-
[in] hNode - Instance of the node to set parameters of. [in] attr - The attribute type to be set. [in] value - const pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphKernelNodeGetParams()
hipError_t hipGraphKernelNodeGetParams | ( | hipGraphNode_t | node, |
hipKernelNodeParams * | pNodeParams | ||
) |
Gets kernel node's parameters.
- Parameters
-
[in] node - instance of the node to get parameters from. [out] pNodeParams - pointer to the parameters
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphKernelNodeSetAttribute()
hipError_t hipGraphKernelNodeSetAttribute | ( | hipGraphNode_t | hNode, |
hipKernelNodeAttrID | attr, | ||
const hipKernelNodeAttrValue * | value | ||
) |
Sets a node's attribute.
- Parameters
-
[in] hNode - Instance of the node to set parameters of. [in] attr - The attribute type to be set. [in] value - const pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphKernelNodeSetParams()
hipError_t hipGraphKernelNodeSetParams | ( | hipGraphNode_t | node, |
const hipKernelNodeParams * | pNodeParams | ||
) |
Sets a kernel node's parameters.
- Parameters
-
[in] node - Instance of the node to set parameters of. [in] pNodeParams - const pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphLaunch()
hipError_t hipGraphLaunch | ( | hipGraphExec_t | graphExec, |
hipStream_t | stream | ||
) |
Launches an executable graph in the specified stream.
- Parameters
-
[in] graphExec - Instance of executable graph to launch. [in] stream - Instance of stream in which to launch executable graph.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemAllocNodeGetParams()
hipError_t hipGraphMemAllocNodeGetParams | ( | hipGraphNode_t | node, |
hipMemAllocNodeParams * | pNodeParams | ||
) |
Returns parameters for memory allocation node.
- Parameters
-
[in] node - Memory allocation node to query [out] pNodeParams - Parameters for the specified memory allocation node
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemcpyNodeGetParams()
hipError_t hipGraphMemcpyNodeGetParams | ( | hipGraphNode_t | node, |
hipMemcpy3DParms * | pNodeParams | ||
) |
Gets a memcpy node's parameters.
- Parameters
-
[in] node - instance of the node to get parameters from. [out] pNodeParams - pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemcpyNodeSetParams()
hipError_t hipGraphMemcpyNodeSetParams | ( | hipGraphNode_t | node, |
const hipMemcpy3DParms * | pNodeParams | ||
) |
Sets a memcpy node's parameters.
- Parameters
-
[in] node - instance of the node to set parameters to. [in] pNodeParams - const pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemcpyNodeSetParams1D()
hipError_t hipGraphMemcpyNodeSetParams1D | ( | hipGraphNode_t | node, |
void * | dst, | ||
const void * | src, | ||
size_t | count, | ||
hipMemcpyKind | kind | ||
) |
Sets a memcpy node's parameters to perform a 1-dimensional copy.
- Parameters
-
[in] node - Instance of the node to set parameters of. [in] dst - Pointer to memory address of the destination. [in] src - Pointer to memory address of the source. [in] count - Size of the memory to copy. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemcpyNodeSetParamsFromSymbol()
hipError_t hipGraphMemcpyNodeSetParamsFromSymbol | ( | hipGraphNode_t | node, |
void * | dst, | ||
const void * | symbol, | ||
size_t | count, | ||
size_t | offset, | ||
hipMemcpyKind | kind | ||
) |
Sets a memcpy node's parameters to copy from a symbol on the device.
- Parameters
-
[in] node - Instance of the node to set parameters of. [in] dst - Pointer to memory address of the destination. [in] symbol - Device symbol address. [in] count - Size of the memory to copy. [in] offset - Offset from start of symbol in bytes. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemcpyNodeSetParamsToSymbol()
hipError_t hipGraphMemcpyNodeSetParamsToSymbol | ( | hipGraphNode_t | node, |
const void * | symbol, | ||
const void * | src, | ||
size_t | count, | ||
size_t | offset, | ||
hipMemcpyKind | kind | ||
) |
Sets a memcpy node's parameters to copy to a symbol on the device.
- Parameters
-
[in] node - Instance of the node to set parameters of. [in] symbol - Device symbol address. [in] src - Pointer to memory address of the src. [in] count - Size of the memory to copy. [in] offset - Offset from start of symbol in bytes. [in] kind - Type of memory copy.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemFreeNodeGetParams()
hipError_t hipGraphMemFreeNodeGetParams | ( | hipGraphNode_t | node, |
void * | dev_ptr | ||
) |
Returns parameters for memory free node.
- Parameters
-
[in] node - Memory free node to query [out] dev_ptr - Device pointer of the specified memory free node
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemsetNodeGetParams()
hipError_t hipGraphMemsetNodeGetParams | ( | hipGraphNode_t | node, |
hipMemsetParams * | pNodeParams | ||
) |
Gets a memset node's parameters.
- Parameters
-
[in] node - Instance of the node to get parameters of. [out] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphMemsetNodeSetParams()
hipError_t hipGraphMemsetNodeSetParams | ( | hipGraphNode_t | node, |
const hipMemsetParams * | pNodeParams | ||
) |
Sets a memset node's parameters.
- Parameters
-
[in] node - Instance of the node to set parameters of. [in] pNodeParams - Pointer to the parameters.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeFindInClone()
hipError_t hipGraphNodeFindInClone | ( | hipGraphNode_t * | pNode, |
hipGraphNode_t | originalNode, | ||
hipGraph_t | clonedGraph | ||
) |
Finds a cloned version of a node.
- Parameters
-
[out] pNode - Returns the cloned node. [in] originalNode - original node handle. [in] clonedGraph - Cloned graph to query.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeGetDependencies()
hipError_t hipGraphNodeGetDependencies | ( | hipGraphNode_t | node, |
hipGraphNode_t * | pDependencies, | ||
size_t * | pNumDependencies | ||
) |
Returns a node's dependencies.
- Parameters
-
[in] node - Graph node to get the dependencies from. [out] pDependencies - Pointer to return the dependencies. [out] pNumDependencies - Returns the number of graph node dependencies.
- Returns
- hipSuccess, hipErrorInvalidValue
pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeGetDependentNodes()
hipError_t hipGraphNodeGetDependentNodes | ( | hipGraphNode_t | node, |
hipGraphNode_t * | pDependentNodes, | ||
size_t * | pNumDependentNodes | ||
) |
Returns a node's dependent nodes.
- Parameters
-
[in] node - Graph node to get the dependent nodes from. [out] pDependentNodes - Pointer to return the graph dependent nodes. [out] pNumDependentNodes - Returns the number of graph node dependent nodes.
- Returns
- hipSuccess, hipErrorInvalidValue
pDependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeGetEnabled()
hipError_t hipGraphNodeGetEnabled | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
unsigned int * | isEnabled | ||
) |
Query whether a node in the given graphExec is enabled.
Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.
The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note
- Currently only kernel, memset and memcpy nodes are supported.
- Parameters
-
[in] hGraphExec - The executable graph in which to set the specified node. [in] hNode - Node from the graph from which graphExec was instantiated. [out] isEnabled - Location to return the enabled status of the node.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeGetType()
hipError_t hipGraphNodeGetType | ( | hipGraphNode_t | node, |
hipGraphNodeType * | pType | ||
) |
Returns a node's type.
- Parameters
-
[in] node - Node to get type of. [out] pType - Returns the node's type.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeSetEnabled()
hipError_t hipGraphNodeSetEnabled | ( | hipGraphExec_t | hGraphExec, |
hipGraphNode_t | hNode, | ||
unsigned int | isEnabled | ||
) |
Enables or disables the specified node in the given graphExec.
Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.
The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note
- Currently only kernel, memset and memcpy nodes are supported.
- Parameters
-
[in] hGraphExec - The executable graph in which to set the specified node. [in] hNode - Node from the graph from which graphExec was instantiated. [in] isEnabled - Node is enabled if != 0, otherwise the node is disabled.
- Returns
- hipSuccess, hipErrorInvalidValue,
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphNodeSetParams()
hipError_t hipGraphNodeSetParams | ( | hipGraphNode_t | node, |
hipGraphNodeParams * | nodeParams | ||
) |
Updates parameters of a graph's node.
- Parameters
-
[in] node - Instance of the node to set parameters for. [in] nodeParams - Pointer to the parameters to be set.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphReleaseUserObject()
hipError_t hipGraphReleaseUserObject | ( | hipGraph_t | graph, |
hipUserObject_t | object, | ||
unsigned int | count | ||
) |
Release user object from graphs.
- Parameters
-
[in] graph - pointer to graph to retain the user object for. [in] object - pointer to instace of userobj. [in] count - reference to resource to be retained.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphRemoveDependencies()
hipError_t hipGraphRemoveDependencies | ( | hipGraph_t | graph, |
const hipGraphNode_t * | from, | ||
const hipGraphNode_t * | to, | ||
size_t | numDependencies | ||
) |
Removes dependency edges from a graph.
- Parameters
-
[in] graph - Instance of the graph to remove dependencies from. [in] from - Array of nodes that provide the dependencies. [in] to - Array of dependent nodes. [in] numDependencies - Number of dependencies to remove.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphRetainUserObject()
hipError_t hipGraphRetainUserObject | ( | hipGraph_t | graph, |
hipUserObject_t | object, | ||
unsigned int | count, | ||
unsigned int | flags | ||
) |
Retain user object for graphs.
- Parameters
-
[in] graph - pointer to graph to retain the user object for. [in] object - pointer to instace of userobj. [in] count - reference to resource to be retained. [in] flags - flags passed to API.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipGraphUpload()
hipError_t hipGraphUpload | ( | hipGraphExec_t | graphExec, |
hipStream_t | stream | ||
) |
Uploads an executable graph to a stream.
- Parameters
-
[in] graphExec - Instance of executable graph to be uploaded. [in] stream - Instance of stream to which the executable graph is uploaded to.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipStreamBeginCapture()
hipError_t hipStreamBeginCapture | ( | hipStream_t | stream, |
hipStreamCaptureMode | mode | ||
) |
Begins graph capture on a stream.
- Parameters
-
[in] stream - Stream to initiate capture. [in] mode - Controls the interaction of this capture sequence with other API calls that are not safe.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipStreamBeginCaptureToGraph()
hipError_t hipStreamBeginCaptureToGraph | ( | hipStream_t | stream, |
hipGraph_t | graph, | ||
const hipGraphNode_t * | dependencies, | ||
const hipGraphEdgeData * | dependencyData, | ||
size_t | numDependencies, | ||
hipStreamCaptureMode | mode | ||
) |
Begins graph capture on a stream to an existing graph.
- Parameters
-
[in] stream - Stream to initiate capture. [in] graph - Graph to capture into. [in] dependencies - Dependencies of the first node captured in the stream. Can be NULL if numDependencies is 0. [in] dependencyData - Optional array of data associated with each dependency. [in] numDependencies - Number of dependencies. [in] mode - Controls the interaction of this capture sequence with other API calls that are not safe.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- param "const hipGraphEdgeData* dependencyData" is currently not supported and has to be passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
◆ hipStreamEndCapture()
hipError_t hipStreamEndCapture | ( | hipStream_t | stream, |
hipGraph_t * | pGraph | ||
) |
Ends capture on a stream, returning the captured graph.
- Parameters
-
[in] stream - Stream to end capture. [out] pGraph - Captured graph.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipStreamGetCaptureInfo()
hipError_t hipStreamGetCaptureInfo | ( | hipStream_t | stream, |
hipStreamCaptureStatus * | pCaptureStatus, | ||
unsigned long long * | pId | ||
) |
Get capture status of a stream.
- Parameters
-
[in] stream - Stream of which to get capture status from. [out] pCaptureStatus - Returns current capture status. [out] pId - Unique capture ID.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipStreamGetCaptureInfo_v2()
hipError_t hipStreamGetCaptureInfo_v2 | ( | hipStream_t | stream, |
hipStreamCaptureStatus * | captureStatus_out, | ||
unsigned long long * | id_out, | ||
hipGraph_t * | graph_out, | ||
const hipGraphNode_t ** | dependencies_out, | ||
size_t * | numDependencies_out | ||
) |
Get stream's capture state.
- Parameters
-
[in] stream - Stream of which to get capture status from. [out] captureStatus_out - Returns current capture status. [out] id_out - Unique capture ID. [out] graph_out - Returns the graph being captured into. [out] dependencies_out - Pointer to an array of nodes representing the graphs dependencies. [out] numDependencies_out - Returns size of the array returned in dependencies_out.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipStreamIsCapturing()
hipError_t hipStreamIsCapturing | ( | hipStream_t | stream, |
hipStreamCaptureStatus * | pCaptureStatus | ||
) |
Get stream's capture state.
- Parameters
-
[in] stream - Stream of which to get capture status from. [out] pCaptureStatus - Returns current capture status.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipStreamUpdateCaptureDependencies()
hipError_t hipStreamUpdateCaptureDependencies | ( | hipStream_t | stream, |
hipGraphNode_t * | dependencies, | ||
size_t | numDependencies, | ||
unsigned int | flags | ||
) |
Update the set of dependencies in a capturing stream.
- Parameters
-
[in] stream Stream that is being captured. [in] dependencies Pointer to an array of nodes to add/replace. [in] numDependencies Size of the dependencies array. [in] flags Flag to update dependency set. Should be one of the values in enum hipStreamUpdateCaptureDependenciesFlags.
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipThreadExchangeStreamCaptureMode()
hipError_t hipThreadExchangeStreamCaptureMode | ( | hipStreamCaptureMode * | mode | ) |
Swaps the stream capture mode of a thread.
- Parameters
-
[in] mode - Pointer to mode value to swap with the current mode.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipUserObjectCreate()
hipError_t hipUserObjectCreate | ( | hipUserObject_t * | object_out, |
void * | ptr, | ||
hipHostFn_t | destroy, | ||
unsigned int | initialRefcount, | ||
unsigned int | flags | ||
) |
Create an instance of userObject to manage lifetime of a resource.
- Parameters
-
[out] object_out - pointer to instace of userobj. [in] ptr - pointer to pass to destroy function. [in] destroy - destroy callback to remove resource. [in] initialRefcount - reference to resource. [in] flags - flags passed to API.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipUserObjectRelease()
hipError_t hipUserObjectRelease | ( | hipUserObject_t | object, |
unsigned int | count | ||
) |
Release number of references to resource.
- Parameters
-
[in] object - pointer to instace of userobj. [in] count - reference to resource to be retained.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
◆ hipUserObjectRetain()
hipError_t hipUserObjectRetain | ( | hipUserObject_t | object, |
unsigned int | count | ||
) |
Retain number of references to resource.
- Parameters
-
[in] object - pointer to instace of userobj. [in] count - reference to resource to be retained.
- Returns
- hipSuccess, hipErrorInvalidValue
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.