Class ExecutingKernel
- Namespace
- DotCompute.Runtime.Services
- Assembly
- DotCompute.Runtime.dll
Represents a kernel that is currently executing.
public sealed class ExecutingKernel
- Inheritance
-
ExecutingKernel
- Inherited Members
Constructors
ExecutingKernel(Guid, string, Stopwatch)
Represents a kernel that is currently executing.
public ExecutingKernel(Guid id, string kernelName, Stopwatch stopwatch)
Parameters
Properties
CompletionTime
Gets or sets the completion time.
public DateTime? CompletionTime { get; }
Property Value
- DateTime?
The completion time.
ElapsedTime
Gets or sets the elapsed time.
public TimeSpan ElapsedTime { get; }
Property Value
- TimeSpan
The elapsed time.
Id
Gets or sets the id.
public Guid Id { get; }
Property Value
- Guid
The id.
IsCompleted
Gets or sets a value indicating whether completed.
public bool IsCompleted { get; }
Property Value
- bool
The is completed.
KernelName
Gets or sets the kernel name.
public string KernelName { get; }
Property Value
- string
The kernel name.
LastError
Gets or sets the last error.
public Exception? LastError { get; }
Property Value
- Exception
The last error.
StartTime
Gets or sets the start time.
public DateTime StartTime { get; }
Property Value
- DateTime
The start time.
State
Gets or sets the state.
public KernelExecutionState State { get; }
Property Value
- KernelExecutionState
The state.
Methods
Cancel()
Determines whether cel.
public void Cancel()
Complete(TimeSpan)
Performs complete.
public void Complete(TimeSpan executionTime)
Parameters
executionTimeTimeSpanThe execution time.
Fail(Exception, TimeSpan)
Performs fail.
public void Fail(Exception error, TimeSpan executionTime)
Parameters
MarkCompleted()
Performs mark completed.
public void MarkCompleted()