pub unsafe extern "C" fn cuGraphAddBatchMemOpNode(
phGraphNode: *mut CUgraphNode,
hGraph: CUgraph,
dependencies: *const CUgraphNode,
numDependencies: usize,
nodeParams: *const CUDA_BATCH_MEM_OP_NODE_PARAMS,
) -> CUresult
Expand description
\brief Creates a batch memory operation node and adds it to a graph
Creates a new batch memory operation 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.
When the node is added, the paramArray inside \p nodeParams is copied and therefore it can be freed after the call returns.
\note Warning: Improper use of this API may deadlock the application. Synchronization ordering established through this API is not visible to CUDA. CUDA tasks that are (even indirectly) ordered by this API should also have that order expressed with CUDA-visible dependencies such as events. This ensures that the scheduler does not serialize them in an improper order. For more information, see the Stream Memory Operations section in the programming guide(https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html).
\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 nodeParams - Parameters for the node
\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, ::cuStreamBatchMemOp, ::cuStreamWaitValue32, ::cuStreamWriteValue32, ::cuStreamWaitValue64, ::cuStreamWriteValue64, ::cuGraphBatchMemOpNodeGetParams, ::cuGraphBatchMemOpNodeSetParams, ::cuGraphCreate, ::cuGraphDestroyNode, ::cuGraphAddChildGraphNode, ::cuGraphAddEmptyNode, ::cuGraphAddKernelNode, ::cuGraphAddMemcpyNode, ::cuGraphAddMemsetNode