Library/ManagedCuda/CudaGraph.cs
/// <summary>
/// Creates a child graph node and adds it to a graph<para/>
/// Creates a new node which executes an embedded graph, and adds it to this Graph with
/// dependencies specified via dependencies.
/// It is possible for dependencies to be null, in which case the node will be placed
/// at the root of the graph. Dependencies may not have any duplicate entries.
/// A handle to the new node will be returned.<para/>
/// The node executes an embedded child graph. The child graph is cloned in this call.
/// </summary>
/// <param name="dependencies">can be null</param>
/// <param name="childGraph"></param>
/// <returns>A handle to the new node will be returned.</returns>
Creates a child graph node and adds it to a graph
Creates a new node which executes an embedded graph, and adds it to this Graph with
dependencies specified via dependencies.
It is possible for dependencies to be null, in which case the node will be placed
at the root of the graph. Dependencies may not have any duplicate entries.
A handle to the new node will be returned.
The node executes an embedded child graph. The child graph is cloned in this call.
Creates a child graph node and adds it to a graph Creates a new node which executes an embedded graph and adds it to this Graph with dependencies specified via dependencies . It is possible for dependencies to be null in which case the node will be placed at the root of the graph . Dependencies may not have any duplicate entries . A handle to the new node will be returned . The node executes an embedded child graph . The child graph is cloned in this call .
public CUgraphNode AddChildGraphNode(CUgraphNode[] dependencies, CudaGraph childGraph)
        {
            CUgraphNode node = new CUgraphNode();
            SizeT numDependencies = 0;
            if (dependencies != null)
                numDependencies = dependencies.Length;
            res = DriverAPINativeMethods.GraphManagment.cuGraphAddChildGraphNode(ref node, _graph, dependencies, numDependencies, childGraph.Graph);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphAddChildGraphNode", res));
            if (res != CUResult.Success) throw new CudaException(res);
            return node;
        }
public CUgraphNode AddChildGraphNode ( CUgraphNode [ ] dependencies , CudaGraph childGraph ) { CUgraphNode node = new CUgraphNode ( ) ; SizeT numDependencies = 0 ; if ( dependencies != null ) numDependencies = dependencies . Length ; res = DriverAPINativeMethods . GraphManagment . cuGraphAddChildGraphNode ( ref node , _graph , dependencies , numDependencies , childGraph . Graph ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return node ; }
Creates a child graph node and adds it to a graph
Creates a new node which executes an embedded graph, and adds it to this Graph with
dependencies specified via dependencies.
Creates a child graph node and adds it to a graph Creates a new node which executes an embedded graph and adds it to this Graph with dependencies specified via dependencies .
A handle to the new node will be returned.
A handle to the new node will be returned .
dependencies
CUgraphNode[]
can be null
can be null
childGraph
CudaGraph
None