Class GraphExecutionContext
- Namespace
- DotCompute.Backends.Metal.Execution.Graph
- Assembly
- DotCompute.Backends.Metal.dll
Represents the execution context for a Metal compute graph.
public class GraphExecutionContext
- Inheritance
-
GraphExecutionContext
- Inherited Members
Constructors
GraphExecutionContext(string, MetalComputeGraph, nint, CancellationToken)
Represents the execution context for a Metal compute graph.
public GraphExecutionContext(string executionId, MetalComputeGraph graph, nint commandQueue, CancellationToken cancellationToken)
Parameters
executionIdstringgraphMetalComputeGraphcommandQueuenintcancellationTokenCancellationToken
Properties
CancellationToken
public CancellationToken CancellationToken { get; }
Property Value
CommandBuffersUsed
public int CommandBuffersUsed { get; }
Property Value
CommandQueue
public nint CommandQueue { get; }
Property Value
ExecutionId
public string ExecutionId { get; }
Property Value
Graph
public MetalComputeGraph Graph { get; }
Property Value
NodesExecuted
public int NodesExecuted { get; }
Property Value
TotalGpuTimeMs
public double TotalGpuTimeMs { get; }
Property Value
TotalMemoryTransferred
public long TotalMemoryTransferred { get; }
Property Value
Methods
AddGpuTime(double)
public void AddGpuTime(double milliseconds)
Parameters
millisecondsdouble
AddMemoryTransferred(long)
public void AddMemoryTransferred(long bytes)
Parameters
byteslong
IncrementCommandBuffersUsed()
public void IncrementCommandBuffersUsed()
IncrementNodesExecuted()
public void IncrementNodesExecuted()