pub unsafe extern "C" fn cuGraphAddMemFreeNode(
phGraphNode: *mut CUgraphNode,
hGraph: CUgraph,
dependencies: *const CUgraphNode,
numDependencies: usize,
dptr: CUdeviceptr,
) -> CUresult
Expand description
\brief Creates a memory free node and adds it to a graph
Creates a new memory free node and adds it to \p hGraph with \p numDependencies dependencies specified via \p dependencies and arguments specified in \p nodeParams. It is possible for \p numDependencies to be 0, in which case the node will be placed at the root of the graph. \p dependencies may not have any duplicate entries. A handle to the new node will be returned in \p phGraphNode.
\param phGraphNode - Returns newly created node \param hGraph - Graph to which to add the node \param dependencies - Dependencies of the node \param numDependencies - Number of dependencies \param dptr - Address of memory to free
::cuGraphAddMemFreeNode will return ::CUDA_ERROR_INVALID_VALUE if 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 cannot be used in a child node.
- Only one instantiation of the graph may exist at any point in time.
- The graph cannot be cloned.
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_NOT_SUPPORTED, ::CUDA_ERROR_INVALID_VALUE \note_graph_thread_safety \notefnerr
\sa ::cuGraphAddNode, ::cuGraphAddMemAllocNode, ::cuGraphMemFreeNodeGetParams, ::cuDeviceGraphMemTrim, ::cuDeviceGetGraphMemAttribute, ::cuDeviceSetGraphMemAttribute, ::cuMemAllocAsync, ::cuMemFreeAsync, ::cuGraphCreate, ::cuGraphDestroyNode, ::cuGraphAddChildGraphNode, ::cuGraphAddEmptyNode, ::cuGraphAddEventRecordNode, ::cuGraphAddEventWaitNode, ::cuGraphAddExternalSemaphoresSignalNode, ::cuGraphAddExternalSemaphoresWaitNode, ::cuGraphAddKernelNode, ::cuGraphAddMemcpyNode, ::cuGraphAddMemsetNode