Table of Contents

Class CudaClockCalibrator

Namespace
DotCompute.Backends.CUDA.Timing
Assembly
DotCompute.Backends.CUDA.dll

Provides CPU-GPU clock calibration with multiple strategies. Implements linear regression to compute offset and drift between time domains.

public sealed class CudaClockCalibrator
Inheritance
CudaClockCalibrator
Inherited Members

Constructors

CudaClockCalibrator(ILogger?)

Initializes a new instance of the CudaClockCalibrator class.

public CudaClockCalibrator(ILogger? logger = null)

Parameters

logger ILogger

Optional logger for diagnostic output.

Methods

Calibrate(IReadOnlyList<long>, IReadOnlyList<long>, CalibrationStrategy)

Performs clock calibration using the specified strategy.

public ClockCalibration Calibrate(IReadOnlyList<long> cpuTimestamps, IReadOnlyList<long> gpuTimestamps, CalibrationStrategy strategy = CalibrationStrategy.Robust)

Parameters

cpuTimestamps IReadOnlyList<long>

CPU timestamps in nanoseconds.

gpuTimestamps IReadOnlyList<long>

Corresponding GPU timestamps in nanoseconds.

strategy CalibrationStrategy

Calibration strategy to use.

Returns

ClockCalibration

Clock calibration result with offset, drift, and error bounds.