[ANN_BENCH] Remove Stream Pool Creation from Individual Wrappers - #2526
Conversation
|
Could you please give a bit more detail on where the blocking happens? We've been trying to avoid using default streams across raft and cuvs for a long time. If they still appear somewhere within the library, it probably makes sense to fix there? |
achirkin
left a comment
There was a problem hiding this comment.
Thanks, I think the change makes perfect sense and can only improve the performance. We don't need any extra stream syncs, because the replaced managed memory was used as a large workspace resource (which is async by contract).
Just please update the description with the explanation of the problem you wanted to solve and do a small cleanup (see below).
…vs-bench-prefetch-async-rmm
…vs-bench-prefetch-async-rmm
…vs-bench-prefetch-async-rmm
It was giving problems (test failures) with CUDA 12. |
Omg, how would it cause test failures if it's in the benchmark component? |
This reverts commit db37fa3.
We already have computed the centroid assignment from the previous set of candidates in the previous iteration. We do not need the full PW reduction in the current iteration, but only across the newly added candidates. Profile on A6000 with changes from NVIDIA#2249: Case 1: 1M * 1536 dataset, with 1024 centroids. Here we profile only the scalable kmeans++ initialization 1. NVIDIA#2249 alone: Time | Total Time | Instances | Avg | Med | Min | Max | StdDev | Name -- | -- | -- | -- | -- | -- | -- | -- | -- 86.2% | 18.815 s | 16 | 1.176 s | 265.906 ms | 442.142 μs | 4.202 s | 1.493 s | fused_1nn_f_i32_relaxed 11.2% | 2.441 s | 1023 | 2.386 ms | 2.499 ms | 2.163 ms | 2.615 ms | 158.442 μs | cutlass gemm 2. NVIDIA#2249 + this PR: Time | Total Time | Instances | Avg | Med | Min | Max | StdDev | Name -- | -- | -- | -- | -- | -- | -- | -- | -- 72.0% | 7.994 s | 15 | 532.946 ms | 511.092 ms | 434.372 μs | 4.213 s | 1.052 s | fused_1nn_f_i32_relaxed 22.9% | 2.538 s | 1023 | 2.481 ms | 2.497 ms | 2.118 ms | 3.124 ms | 179.081 μs | cutlass gemm Authors: - Tarang Jain (https://github.com/tarang-jain) - Divye Gala (https://github.com/divyegala) Approvers: - Victor Lafargue (https://github.com/viclafargue) URL: NVIDIA#2438
Basically the async managed memory resource is only available in CUDA 13+. |
|
/merge |
c4e23e4
into
NVIDIA:release/26.10
Uh oh!
There was an error while loading. Please reload this page.