cuda.bindings._v2.driver.graph_add_mem_free_node#
- cuda.bindings._v2.driver.graph_add_mem_free_node(
- intptr_t h_graph,
- dependencies,
- size_t num_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_graphwithnum_dependenciesdependencies specified viadependenciesand arguments specified innodeParams. It is possible fornum_dependenciesto 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:
h_graph (intptr_t) – Graph to which to add the node.
dependencies (object) –
Dependencies of the node. It can be:
num_dependencies (size_t) – Number of dependencies.
dptr (uint64_t) – Address of memory to free.
- Returns:
Returns newly created node.
- Return type:
intptr_t
See also
cuGraphAddMemFreeNode