cuda.bindings._v2.driver.graph_add_mem_free_node#
- cuda.bindings._v2.driver.graph_add_mem_free_node(
- intptr_t h_graph,
- dependencies,
- uint64_t dptr,
Creates a memory free node and adds it to a graph.
Creates a new memory free node and adds it to
h_graphwithlen(dependencies)dependencies specified viadependenciesand arguments specified innodeParams. It is possible forlen(dependencies)to be 0, in which case the node will be placed at the root of the graph.dependenciesmay not have any duplicate entries. A handle to the new node will be returned inph_graph_node.cuGraphAddMemFreeNodewill returnCUDA_ERROR_INVALID_VALUEif the user attempts to free:.an allocation twice in the same graph.
an address that was not returned by an allocation node.
an invalid address.
The following restrictions apply to graphs which contain allocation and/or memory free nodes:.
Nodes and edges of the graph cannot be deleted.
The graph can only be used in a child node if the ownership is moved to the parent.
Only one instantiation of the graph may exist at any point in time.
The graph cannot be cloned.
- Parameters:
- Returns:
Returns newly created node.
- Return type:
intptr_t
Note
This function will be deprecated in a future CUDA release. Please migrate to
cuGraphAddNode.See also
cuGraphAddMemFreeNode