[libcu++][fp] nvbench benchmarks for the fpmp pair types and their math library #12784
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.47) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 488 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.370
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12784"
general
weight: 0.35
miscco
Adds benchmarks of the
cuda/fpcomponent to libcudacxx/benchmarks, with the tooling to runthem on demand and to compare a tree with
main.Benchmarks (libcudacxx/benchmarks/bench/fp/fpmp/, targets libcudacxx.bench.fp.fpmp.<family>.base)
rounding; 50 functions over the type axes Type{ct} = {fp32mp2, fp64mp2} and
Accuracy{ct} = {low, mid, high}, 306 cells.
throughput: 2048 x 256 threads, each a chain of 1024 dependent evaluations, reported asevaluations per SM clock per SM (ev/clk/SM).
latency: one thread, a chain of 4096dependent evaluations, SM clocks per evaluation (clk/ev). Both use the SM clock nvbench
measured during the samples, so boost and power capping do not bias the figures: the same
binary gives the same per-clock numbers on an RTX 6000 Ada and an L40S within 0.3 %.
ref_throughput/ref_latencytime the reference precision (the double expression) thesame way, for the Gain columns of the table.
double reference, as u2 (units of 2^-48), Bits, a PASS/WARN/FAIL Check with the thresholds
of the fpmp accuracy suite, and the worst arguments as C99 hex floats. fp64mp2 is checked
against double until a binary128 reference exists on the device.
loop-invariant operand the compiler hoists work out of the loop (a division by an invariant
divisor measured as a multiplication by its reciprocal).
__noinline__function with exactly one evaluation per cell gives the SASS instructioncount of the operation, read from the executable by the table script.
Tooling (libcudacxx/benchmarks/fp/)
selected executables, runs them on a chosen GPU, joins the table and compares it with a
baseline.
--compare-ref <git ref>builds and runs the same benchmark sources against thelibrary of that ref (a git worktree with the current benchmarks overlaid) and compares cell
by cell, which answers "did this change make any cell slower or less accurate than main?"
in one call. A registry keeps it open for further benchmarks of the component.
Check, ev/clk/SM, Gain tp, clk/ev, Gain lat, SASS, Regs, Worst at).
1.5x and 0.5 u2, performance FAIL beyond 25 % and WARN beyond 10 %, any SASS change a WARN,
with a per-cell detail table (compare.csv, compare.md).
CI
executed by no CI job, so a change to them does not spend the libcudacxx matrix. The
benchmark sources still mark libcudacxx dirty.
into CI: a
sass:entry in ci/matrix.yaml builds the fpmp executables on the CPU runners ofevery PR that touches libcu++ and reports SASS changes of the fpmp functions; lit tests
under libcudacxx/test/libcudacxx/cuda/fp/units/fpmp/ (math_sampling_<family>.pass.cpp) run
the accuracy sampling on GPU in the regular libcu++ test jobs, so an accuracy regression
fails CI; and ci/bench.yaml gets an example filter for the on-request timing comparison
between two refs, which stays on demand as for the other CCCL benchmarks.
Verified on RTX A6000, RTX 6000 Ada, L40S, B300 and RTX PRO 6000 Blackwell: every Check PASS;
a family runs in 15 to 90 s, all eight in about 2.5 minutes on an idle GPU.