Library/ManagedCuda/CudaGraph.cs
/// <summary>
/// Creates a kernel execution node and adds it to a graph<para/>
/// Creates a new kernel execution node and adds it to the graph with
/// dependencies specified via dependencies and arguments specified in nodeParams.<para/>
/// 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.<para/>
/// A handle to the new node will be returned.
/// </summary>
/// <param name="dependencies">can be null</param>
/// <param name="nodeParams">Parameters for the GPU execution node</param>
/// <returns>A handle to the new node will be returned.</returns>
Creates a kernel execution node and adds it to a graph
Creates a new kernel execution node and adds it to the graph with
dependencies specified via dependencies and arguments specified in nodeParams.
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.
Creates a kernel execution node and adds it to a graph Creates a new kernel execution node and adds it to the graph with dependencies specified via dependencies and arguments specified in nodeParams . 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 .
public CUgraphNode AddKernelNode(CUgraphNode[] dependencies, CUDA_KERNEL_NODE_PARAMS nodeParams)
        {
            CUgraphNode node = new CUgraphNode();
            SizeT numDependencies = 0;
            if (dependencies != null)
                numDependencies = dependencies.Length;
            res = DriverAPINativeMethods.GraphManagment.cuGraphAddKernelNode(ref node, _graph, dependencies, numDependencies, ref nodeParams);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphAddKernelNode", res));
            if (res != CUResult.Success) throw new CudaException(res);
            return node;
        }
public CUgraphNode AddKernelNode ( CUgraphNode [ ] dependencies , CUDA_KERNEL_NODE_PARAMS nodeParams ) { CUgraphNode node = new CUgraphNode ( ) ; SizeT numDependencies = 0 ; if ( dependencies != null ) numDependencies = dependencies . Length ; res = DriverAPINativeMethods . GraphManagment . cuGraphAddKernelNode ( ref node , _graph , dependencies , numDependencies , ref nodeParams ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return node ; }
Creates a kernel execution node and adds it to a graph
Creates a new kernel execution node and adds it to the graph with
dependencies specified via dependencies and arguments specified in nodeParams.
Creates a kernel execution node and adds it to a graph Creates a new kernel execution node and adds it to the graph with dependencies specified via dependencies and arguments specified in nodeParams .
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
nodeParams
CUDA_KERNEL_NODE_PARAMS
Parameters for the GPU execution node
Parameters for the GPU execution node