Table of Contents

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

IReadOnlyList<string>

Comparisons

Gets the comparison results between different backends.

public IReadOnlyList<ResultComparison> Comparisons { get; init; }

Property Value

IReadOnlyList<ResultComparison>

Errors

Gets validation errors that prevent kernel compilation. Empty list indicates no errors found.

public IReadOnlyList<ValidationIssue> Errors { get; init; }

Property Value

IReadOnlyList<ValidationIssue>

ExecutionTime

Gets the time spent on the actual kernel execution.

public TimeSpan ExecutionTime { get; init; }

Property Value

TimeSpan

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

bool

Issues

Gets debug validation issues found during cross-backend validation.

public Collection<DebugValidationIssue> Issues { get; init; }

Property Value

Collection<DebugValidationIssue>

KernelName

Gets the name of the kernel that was validated.

public string KernelName { get; init; }

Property Value

string

MaxDifference

Gets the maximum difference found between backend results (for cross-validation).

public float MaxDifference { get; init; }

Property Value

float

Recommendations

Gets optimization recommendations for the kernel.

public Collection<string> Recommendations { get; init; }

Property Value

Collection<string>

RecommendedBackend

Gets the recommended backend based on validation results.

public string RecommendedBackend { get; init; }

Property Value

string

ResourceUsage

Gets resource usage estimates for the kernel. Provides information about memory, register usage, and performance characteristics.

public ResourceUsageEstimate? ResourceUsage { get; init; }

Property Value

ResourceUsageEstimate

Results

Gets the results from different backends. Contains the execution results from each backend tested.

public IReadOnlyList<KernelExecutionResult> Results { get; init; }

Property Value

IReadOnlyList<KernelExecutionResult>

TotalValidationTime

Gets the total time spent on validation across all backends.

public TimeSpan TotalValidationTime { get; init; }

Property Value

TimeSpan

ValidationTime

Gets the time spent validating this kernel (total execution time).

public TimeSpan ValidationTime { get; set; }

Property Value

TimeSpan

Warnings

Gets validation warnings that don't prevent compilation. Warnings indicate potential issues or optimization opportunities.

public IReadOnlyList<ValidationWarning> Warnings { get; init; }

Property Value

IReadOnlyList<ValidationWarning>