Library/ManagedCuda/CudaGraph.cs
/// <summary>
/// Creates an executable graph from a graph<para/>
/// Instantiates this Graph as an executable graph. The graph is validated for any
/// structural constraints or intra-node constraints which were not previously
/// validated. If instantiation is successful, a handle to the instantiated graph
/// is returned.
/// </summary>
Creates an executable graph from a graph
Instantiates this Graph as an executable graph. The graph is validated for any
structural constraints or intra-node constraints which were not previously
validated. If instantiation is successful, a handle to the instantiated graph
is returned.
Creates an executable graph from a graph Instantiates this Graph as an executable graph . The graph is validated for any structural constraints or intra - node constraints which were not previously validated . If instantiation is successful a handle to the instantiated graph is returned .
public CudaGraphExec Instantiate()
        {
            SizeT sizeBuffer = 10000;
            byte[] logBuffer = new byte[sizeBuffer];
            CUgraphExec graphExec = new CUgraphExec();
            CUgraphNode errNode = new CUgraphNode();
            res = DriverAPINativeMethods.GraphManagment.cuGraphInstantiate(ref graphExec, _graph, ref errNode, logBuffer, sizeBuffer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphInstantiate", res));
            if (res != CUResult.Success)
            {
                string message = Encoding.ASCII.GetString(logBuffer);
                throw new CudaException(res, message, null);
            }
            return new CudaGraphExec(graphExec);
        }
public CudaGraphExec Instantiate ( ) { SizeT sizeBuffer = 10000 ; byte [ ] logBuffer = new byte [ sizeBuffer ] ; CUgraphExec graphExec = new CUgraphExec ( ) ; CUgraphNode errNode = new CUgraphNode ( ) ; res = DriverAPINativeMethods . GraphManagment . cuGraphInstantiate ( ref graphExec , _graph , ref errNode , logBuffer , sizeBuffer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) { string message = Encoding . ASCII . GetString ( logBuffer ) ; throw new CudaException ( res , message , null ) ; } return new CudaGraphExec ( graphExec ) ; }
Creates an executable graph from a graph
Instantiates this Graph as an executable graph.
Creates an executable graph from a graph Instantiates this Graph as an executable graph .