Diagnosing 4.6 ms CUDA RNS/NTT latency on RTX PRO 6000 Blackwell

We are optimizing exact negacyclic polynomial multiplication on an NVIDIA RTX PRO 6000 Blackwell Server Edition with a Xeon 6776P host. The reference container uses CUDA 12.8 and cuPQC 0.6.0.

The main point has N=65,536, W=1,747 and 55 little-endian uint32 limbs per coefficient. Each input/output vector occupies 13.75 MiB, so our implementation transfers 27.5 MiB H-to-D and 13.75 MiB D-to-H per multiplication. The fixed C++ interface receives and returns host std::vector values. Staging, transfers, conversion, arithmetic, synchronization and output construction must all remain inside the measured call. Parameter-only setup is untimed.

Public source for our measured pinned-staging version:

We use persistent cudaHostAlloc buffers, cudaMemcpyAsync, shared-memory tiled RNS NTT, and exact CRT reconstruction. This version passes 40/40 cases across two sizes, with a 4.62 ms median at the main point. An isolated four-CPU-participant/chunked-copy variant also passed 40/40, but measured 4.68 ms (secondary point 1.51 ms versus 1.11 ms for the simple pinned version):

Another entrant achieves approximately 0.83 ms on the same machine type, runtime image and C++/GPU harness. Their implementation is private, so we do not know their architecture. Our question is about measuring and optimizing our own implementation.

An earlier instrumented version suggested transfers and host-side output construction dominated, but its extra synchronization changes overlap; we do not treat sums of stage medians as an end-to-end score. We do not yet have an Nsight trace. Availability of nsys/ncu and profiler permissions inside the third-party execution container is unconfirmed.

What minimal Nsight Systems capture would you recommend to separate pageable-to-pinned staging, actual PCIe DMA, host allocation/initialization, CUDA API blocking and GPU execution? Can the relevant CUDA/API timeline be collected without GPU performance-counter permissions? Which timeline signals would distinguish poor PCIe throughput from CPU staging or synchronization as the main limiter?

Would you prioritize another host transfer strategy, pipelining CRT output with a separate copy stream, or arithmetic/kernel optimization after this baseline? We can provide a minimal reproducer and a profile if the execution environment permits it. We are keeping the platform harness and correctness requirements unchanged.

Update with new measurements on the same FHERMA runner (all exact outputs passed 40/40).

  1. Integer Tensor Core encoder + the pinned-staging path: main median 4.46 ms, secondary 1.09 ms. Source: GitHub - aritomas3123-boop/fherma-gpu-polymul at 35cd4a715bb94f1032be21cd4ee01c6163f2e49b · GitHub . The additional setup calibration uses only synthetic owned data; measured calls and all real transfers remain timed.

  2. Registering the caller’s fresh input vectors and the newly resized output vector inside each measured call removes the CPU staging copies, but gives 4.79 ms (secondary 1.25 ms). Unregistration is also inside the clock. Source: GitHub - aritomas3123-boop/fherma-gpu-polymul at e6ff91a7f490a003a241688a2d6ee5488a8c52b5 · GitHub . This experiment keeps the original non-Tensor encoder and GPU arithmetic to isolate the I/O change.

Its host-wall diagnostic over 22 calls (including two unscored warmups) reports medians in ms: output resize 0.501; registration 1.253; input API submission 0.015; compute API submission 0.045; output submission 0.004; waiting for the queued GPU work 2.415; unregister 0.561. Stage medians are not additive. The wait includes both DMA and kernels and is not a pure compute time.

ncu is present at /usr/local/cuda/bin/ncu, but profiling permission has not been verified; nsys was not found on PATH. Our next check is incremental registration overlapped with the first operand’s encoder/NTT, and querying the pageable-memory-access attributes before considering HMM. Is there a preferable measured path for these one-shot fresh host vectors?