Class CudaExecutionGraph
- Namespace
- DotCompute.Backends.CUDA.Execution.Types
- Assembly
- DotCompute.Backends.CUDA.dll
Directed acyclic graph (DAG) for CUDA command execution with dependencies.
public sealed class CudaExecutionGraph
- Inheritance
-
CudaExecutionGraph
- Inherited Members
Remarks
Enables CUDA graph-like optimizations with automatic parallelization and dependency resolution for complex execution patterns.
Constructors
CudaExecutionGraph()
public CudaExecutionGraph()
Properties
CreatedAt
Gets when this graph was created.
public DateTimeOffset CreatedAt { get; }
Property Value
Levels
Gets topologically sorted execution levels.
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Mutable list needed for graph construction")]
public List<CudaExecutionLevel> Levels { get; }
Property Value
Nodes
Gets execution nodes in the graph.
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Mutable list needed for graph construction")]
public List<CudaExecutionNode> Nodes { get; }
Property Value
Methods
AddNode(CudaExecutionNode)
Adds a node to the execution graph.
public void AddNode(CudaExecutionNode node)
Parameters
nodeCudaExecutionNode
BuildExecutionPlan()
Builds an optimized execution plan from this graph.
public CudaExecutionPlan BuildExecutionPlan()
Returns
BuildLevels()
Builds execution levels using topological sort for parallel execution.
public void BuildLevels()