Library/ManagedCuda/CudaGraphExec.cs
/// <summary>
/// Launches an executable graph in a stream.<para/>
/// Only one instance of GraphExec may be executing
/// at a time. Each launch is ordered behind both any previous work in Stream
/// and any previous launches of GraphExec.To execute a graph concurrently, it must be
/// instantiated multiple times into multiple executable graphs.
/// </summary>
/// <param name="stream"></param>
Launches an executable graph in a stream.
Only one instance of GraphExec may be executing
at a time. Each launch is ordered behind both any previous work in Stream
and any previous launches of GraphExec.To execute a graph concurrently, it must be
instantiated multiple times into multiple executable graphs.
Launches an executable graph in a stream . Only one instance of GraphExec may be executing at a time . Each launch is ordered behind both any previous work in Stream and any previous launches of GraphExec . To execute a graph concurrently it must be instantiated multiple times into multiple executable graphs .
public void Launch(CudaStream stream)
        {
            res = DriverAPINativeMethods.GraphManagment.cuGraphLaunch(_graph, stream.Stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphLaunch", res));
            if (res != CUResult.Success) throw new CudaException(res);
        }
public void Launch ( CudaStream stream ) { res = DriverAPINativeMethods . GraphManagment . cuGraphLaunch ( _graph , stream . Stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Launches an executable graph in a stream.
Launches an executable graph in a stream .
stream
CudaStream
None