Expand description
GPU utilities for kernel microbenchmarks.
Initializes AtlasRegistry, allocates device buffers, and provides
CUDA event-based timing for Criterion iter_custom benchmarks.
Functions§
- bench_
kernel_ ms - Measure kernel execution time in milliseconds using CUDA events.
Runs
warmupwarmup iterations, theniterstimed iterations, returning the minimum time across 3 rounds. - ensure_
registry - Ensure the registry is loaded (idempotent).
- get_
kernel - Resolve
module::funcfor a bench. - gpu_
alloc_ zeroed - Allocate
bytesof GPU memory, zero-initialized. - gpu_
free - Free GPU memory.
- gpu_
sync - Synchronize the stream.
- launch⚠
- Launch a kernel with raw parameters.