Library/ManagedCuda/CudaGraph.cs
/// <summary>
/// Clones a graph<para/>
/// This function creates a copy of the original Graph.
/// All parameters are copied into the cloned graph. The original graph may be modified
/// after this call without affecting the clone.<para/>
/// Child graph nodes in the original graph are recursively copied into the clone.
/// </summary>
Clones a graph
This function creates a copy of the original Graph.
All parameters are copied into the cloned graph. The original graph may be modified
after this call without affecting the clone.
Child graph nodes in the original graph are recursively copied into the clone.
Clones a graph This function creates a copy of the original Graph . All parameters are copied into the cloned graph . The original graph may be modified after this call without affecting the clone . Child graph nodes in the original graph are recursively copied into the clone .
public CudaGraph Clone()
        {
            CUgraph clone = new CUgraph();
            res = DriverAPINativeMethods.GraphManagment.cuGraphClone(ref clone, _graph);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphClone", res));
            if (res != CUResult.Success) throw new CudaException(res);
            return new CudaGraph(clone);
        }
public CudaGraph Clone ( ) { CUgraph clone = new CUgraph ( ) ; res = DriverAPINativeMethods . GraphManagment . cuGraphClone ( ref clone , _graph ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return new CudaGraph ( clone ) ; }
Clones a graph
This function creates a copy of the original Graph.
Clones a graph This function creates a copy of the original Graph .