mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-08-10 16:30:33 +02:00
feat(ClusterFinderCUDA): async submit_batch/collect API
- Eliminate the ~200–300 µs inter-batch idle gap by allowing two batches to be in-flight simultaneously: - submit_batch() enqueues H2D+kernel+D2H without blocking - collect() syncs via cudaEventSynchronize (not cudaStreamSynchronize) so a queued second batch runs uninterrupted. - Two ping-pong output slots (NUM_SLOTS=2) with per-slot pinned buffers and cudaEventDisableTiming sync events. - find_clusters_batched() keeps its direct implementation. * Measured: 0.026 -> 0.022 ms/frame (~18%).
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user