kernel_reports#
python -m onnx_light.tools.kernel_reports collects native kernel measurements
and verifies persisted tuning profiles in separate processes. It requires a
build with kernels enabled. Run collection from the repository checkout so the
report can record the Git revision.
python -m onnx_light.tools.kernel_reports collect --output /tmp/kernel-run-1 --threads 2
python -m onnx_light.tools.kernel_reports verify --output /tmp/kernel-run-1
python -m onnx_light.tools.kernel_reports verify-incompatible --output /tmp/kernel-run-1
Command-line reference#
python -m onnx_light.tools.kernel_reports [-h]
--output OUTPUT [--threads THREADS] [--repeat REPEAT]
[--maximum-duration-ms MAXIMUM_DURATION_MS]
[--maximum-memory-bytes MAXIMUM_MEMORY_BYTES]
{collect,verify,verify-incompatible}
phasecollectcreates a new output directory, measures a baseline, and calibrates kernels.verifychecks saved profiles in a fresh process.verify-incompatiblechecks rejection of incompatible profiles.--output OUTPUTRequired report directory. It must not already exist for
collect; verification uses the directory created by collection.--threads THREADSPositive thread count (default:
2).--repeat REPEATPositive measurement repetition count (default:
10).--maximum-duration-ms MAXIMUM_DURATION_MSPositive calibration duration budget in milliseconds (default:
10000).--maximum-memory-bytes MAXIMUM_MEMORY_BYTESPositive calibration memory budget in bytes (default:
268435456).-h,--helpShows help and exits.