Library/ManagedCuda/BasicTypes.cs
/// <summary>
/// Returns a node's dependent nodes
/// </summary>
Returns a node's dependent nodes
Returns a node ' s dependent nodes
public CUgraphNode[] GetDependentNodes()
        {
            SizeT numNodes = new SizeT();
            CUResult res = DriverAPINativeMethods.GraphManagment.cuGraphNodeGetDependentNodes(this, null, ref numNodes);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphNodeGetDependentNodes", res));
            if (res != CUResult.Success) throw new CudaException(res);
            if (numNodes > 0)
            {
                CUgraphNode[] nodes = new CUgraphNode[numNodes];
                res = DriverAPINativeMethods.GraphManagment.cuGraphNodeGetDependentNodes(this, nodes, ref numNodes);
                Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphNodeGetDependentNodes", res));
                if (res != CUResult.Success) throw new CudaException(res);
                return nodes;
            }
            return null;
        }
public CUgraphNode [ ] GetDependentNodes ( ) { SizeT numNodes = new SizeT ( ) ; CUResult res = DriverAPINativeMethods . GraphManagment . cuGraphNodeGetDependentNodes ( this , null , ref numNodes ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; if ( numNodes > 0 ) { CUgraphNode [ ] nodes = new CUgraphNode [ numNodes ] ; res = DriverAPINativeMethods . GraphManagment . cuGraphNodeGetDependentNodes ( this , nodes , ref numNodes ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return nodes ; } return null ; }
Returns a node's dependent nodes
Returns a node ' s dependent nodes