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
IsComplete
Checks if the execution is complete without waiting
bool IsComplete { get; }
Property Value
Kernel
Associated kernel
CompiledKernel Kernel { get; }
Property Value
Progress
Gets the execution progress (0.0 to 1.0)
double Progress { get; }
Property Value
Status
Execution status
KernelExecutionStatus Status { get; }
Property Value
Methods
CancelAsync()
Cancels the execution if possible
Task CancelAsync()
Returns
GetTiming()
Gets timing information if available
KernelTiming? GetTiming()
Returns
WaitForCompletionAsync(CancellationToken)
Waits for the execution to complete
Task<KernelExecutionResult> WaitForCompletionAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken