Table of Contents

Interface IKernelExecution

Namespace
Orleans.GpuBridge.Abstractions.Providers.Execution.Interfaces
Assembly
Orleans.GpuBridge.Abstractions.dll

Represents an ongoing kernel execution

public interface IKernelExecution

Properties

ExecutionId

Unique execution ID

string ExecutionId { get; }

Property Value

string

IsComplete

Checks if the execution is complete without waiting

bool IsComplete { get; }

Property Value

bool

Kernel

Associated kernel

CompiledKernel Kernel { get; }

Property Value

CompiledKernel

Progress

Gets the execution progress (0.0 to 1.0)

double Progress { get; }

Property Value

double

Status

Execution status

KernelExecutionStatus Status { get; }

Property Value

KernelExecutionStatus

Methods

CancelAsync()

Cancels the execution if possible

Task CancelAsync()

Returns

Task

GetTiming()

Gets timing information if available

KernelTiming? GetTiming()

Returns

KernelTiming

WaitForCompletionAsync(CancellationToken)

Waits for the execution to complete

Task<KernelExecutionResult> WaitForCompletionAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<KernelExecutionResult>