Table of Contents

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

executionId string
graph MetalComputeGraph
commandQueue nint
cancellationToken CancellationToken

Properties

CancellationToken

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

CommandBuffersUsed

public int CommandBuffersUsed { get; }

Property Value

int

CommandQueue

public nint CommandQueue { get; }

Property Value

nint

ExecutionId

public string ExecutionId { get; }

Property Value

string

Graph

public MetalComputeGraph Graph { get; }

Property Value

MetalComputeGraph

NodesExecuted

public int NodesExecuted { get; }

Property Value

int

TotalGpuTimeMs

public double TotalGpuTimeMs { get; }

Property Value

double

TotalMemoryTransferred

public long TotalMemoryTransferred { get; }

Property Value

long

Methods

AddGpuTime(double)

public void AddGpuTime(double milliseconds)

Parameters

milliseconds double

AddMemoryTransferred(long)

public void AddMemoryTransferred(long bytes)

Parameters

bytes long

IncrementCommandBuffersUsed()

public void IncrementCommandBuffersUsed()

IncrementNodesExecuted()

public void IncrementNodesExecuted()