Class KernelValidationResult
- Namespace
- DotCompute.Abstractions.Validation
- Assembly
- DotCompute.Abstractions.dll
Represents the comprehensive result of kernel validation across multiple backends. Contains validation status, errors, warnings, performance metrics, and cross-backend comparison data.
public sealed class KernelValidationResult
- Inheritance
-
KernelValidationResult
- Inherited Members
Properties
BackendsTested
Gets the list of backends that were tested during validation.
public IReadOnlyList<string> BackendsTested { get; init; }
Property Value
Comparisons
Gets the comparison results between different backends.
public IReadOnlyList<ResultComparison> Comparisons { get; init; }
Property Value
Errors
Gets validation errors that prevent kernel compilation. Empty list indicates no errors found.
public IReadOnlyList<ValidationIssue> Errors { get; init; }
Property Value
ExecutionTime
Gets the time spent on the actual kernel execution.
public TimeSpan ExecutionTime { get; init; }
Property Value
IsValid
Gets whether the kernel is valid and can be compiled. True if no errors were found during validation.
public bool IsValid { get; init; }
Property Value
Issues
Gets debug validation issues found during cross-backend validation.
public Collection<DebugValidationIssue> Issues { get; init; }
Property Value
KernelName
Gets the name of the kernel that was validated.
public string KernelName { get; init; }
Property Value
MaxDifference
Gets the maximum difference found between backend results (for cross-validation).
public float MaxDifference { get; init; }
Property Value
Recommendations
Gets optimization recommendations for the kernel.
public Collection<string> Recommendations { get; init; }
Property Value
RecommendedBackend
Gets the recommended backend based on validation results.
public string RecommendedBackend { get; init; }
Property Value
ResourceUsage
Gets resource usage estimates for the kernel. Provides information about memory, register usage, and performance characteristics.
public ResourceUsageEstimate? ResourceUsage { get; init; }
Property Value
Results
Gets the results from different backends. Contains the execution results from each backend tested.
public IReadOnlyList<KernelExecutionResult> Results { get; init; }
Property Value
TotalValidationTime
Gets the total time spent on validation across all backends.
public TimeSpan TotalValidationTime { get; init; }
Property Value
ValidationTime
Gets the time spent validating this kernel (total execution time).
public TimeSpan ValidationTime { get; set; }
Property Value
Warnings
Gets validation warnings that don't prevent compilation. Warnings indicate potential issues or optimization opportunities.
public IReadOnlyList<ValidationWarning> Warnings { get; init; }