Class KernelHandle
- Namespace
- Orleans.GpuBridge.Abstractions.Kernels
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Handle for a submitted kernel execution
public sealed record KernelHandle : IEquatable<KernelHandle>
- Inheritance
-
KernelHandle
- Implements
- Inherited Members
Constructors
KernelHandle(string, DateTimeOffset, KernelStatus)
Handle for a submitted kernel execution
public KernelHandle(string Id, DateTimeOffset SubmittedAt, KernelStatus Status = KernelStatus.Queued)
Parameters
IdstringSubmittedAtDateTimeOffsetStatusKernelStatus
Properties
Id
public string Id { get; init; }
Property Value
Status
public KernelStatus Status { get; init; }
Property Value
SubmittedAt
public DateTimeOffset SubmittedAt { get; init; }
Property Value
Methods
Create()
Creates a new kernel handle with a unique ID and current timestamp.
public static KernelHandle Create()
Returns
- KernelHandle
A new KernelHandle with status set to Queued.