Skip to main content

Module calibrate

Module calibrate 

Source

Structsยง

EtdConfig
Configuration for ETD calibration
PaddedAtomicBool ๐Ÿ”’
Cache-line padded atomic to avoid false sharing
SharedState ๐Ÿ”’
Shared state for two-buffer ping-pong (avoids SMT contention)

Constantsยง

PING ๐Ÿ”’
PONG ๐Ÿ”’

Functionsยง

calibrate_full_matrix
Perform full topology calibration. Returns matrix[i][j] = latency from CPU i to CPU j.
measure_pair ๐Ÿ”’
Measure round-trip latency between two CPUs using CAS ping-pong. Returns per-sample latencies (ns).