Repository navigation
cuda(perf): skip unused CUDA events - #11819
Conversation
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
|
BenchPress GPU reads of TPC-H SF10 lineitem (float64) on a GH200, compared with develop at 1990852. Times below are milliseconds per read; lower is better.
Across both rounds the patch was faster in 3 of 4 hot pairs and 4 of 4 cold pairs. Mean latency fell 1.4% hot and 3.5% cold. The hot effect is small enough that one pair reversed. Both rounds used the same release binaries (mimalloc), with native I/O, cuda_async, late strings enabled, and disk-backed scratch. One timed read per visit; build order was reversed for the second pair in each round. BenchPress staged the same 59,986,052 rows outside the timer; encoded files had the same size but were not byte-identical. |
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
Merging this PR will improve performance by 10.71%1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
The default CUDA launch strategy recorded two events around every kernel and discarded them. Skip that pair unless the strategy asks for it: tracing and benchmarks can still time kernels, and the driver still tracks buffer dependencies across streams.
Breaking change: LaunchStrategy::event_flags now returns Option<CUevent_flags>. Return Some(previous_flags) to keep receiving completion callbacks, or None to skip both the events and the callback.
On GH200, mean BenchPress SF10 lineitem read latency was 1.4% lower hot and 3.5% lower cold across four pairs per cache mode.
Related: #9436 (closed as stale).
AI assistance: I used an OpenAI coding agent to implement the change and run BenchPress.