Class KernelExecutionResult
- Namespace
- DotCompute.Runtime.Services
- Assembly
- DotCompute.Runtime.dll
Represents the result of a kernel execution.
public sealed class KernelExecutionResult
- Inheritance
-
KernelExecutionResult
- Inherited Members
Properties
Error
Gets or sets the error.
public Exception? Error { get; }
Property Value
- Exception
The error.
ExecutionId
Gets or sets the execution identifier.
public Guid ExecutionId { get; }
Property Value
- Guid
The execution id.
ExecutionTime
Gets or sets the execution time.
public TimeSpan ExecutionTime { get; }
Property Value
- TimeSpan
The execution time.
IsSuccess
Gets or sets a value indicating whether success.
public bool IsSuccess { get; }
Property Value
- bool
The is success.
Methods
Failure(Guid, Exception, TimeSpan)
Gets failure.
public static KernelExecutionResult Failure(Guid executionId, Exception error, TimeSpan executionTime)
Parameters
executionIdGuidThe execution identifier.
errorExceptionThe error.
executionTimeTimeSpanThe execution time.
Returns
- KernelExecutionResult
The result of the operation.
Success(Guid, TimeSpan)
Gets success.
public static KernelExecutionResult Success(Guid executionId, TimeSpan executionTime)
Parameters
Returns
- KernelExecutionResult
The result of the operation.