Table of Contents

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

DateTimeOffset

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

List<CudaExecutionLevel>

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

List<CudaExecutionNode>

Methods

AddNode(CudaExecutionNode)

Adds a node to the execution graph.

public void AddNode(CudaExecutionNode node)

Parameters

node CudaExecutionNode

BuildExecutionPlan()

Builds an optimized execution plan from this graph.

public CudaExecutionPlan BuildExecutionPlan()

Returns

CudaExecutionPlan

BuildLevels()

Builds execution levels using topological sort for parallel execution.

public void BuildLevels()