Skip to content

[FEA] Add LTO reduction benchmark comparisons - #25033

Closed
lamarrr wants to merge 1 commit into
NVIDIA:lamarrr/reduce-3-segmentedfrom
lamarrr:reduce-4-benchmarks
Closed

lamarrr wants to merge 1 commit into
NVIDIA:lamarrr/reduce-3-segmentedfrom
lamarrr:reduce-4-benchmarks

Conversation

@lamarrr

@lamarrr lamarrr commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #25039, layer 4 of registered GitHub native stack #25040. The replacement keeps this PR's latest content and ready/draft status. This PR retains its original review history.

Description

Add a standalone C++ benchmark driver comparing LTO reductions with existing public cuDF APIs. It uses four warmups and five synchronized wall-clock samples per case, with result validation outside timing and no NVBench automatic timing.

  • TPC-DS Q13's post-join predicate and four aggregates: fused LTO versus AST JIT/non-JIT filtering, retention-mask materialization and separate reductions. Joins are outside this workload.
  • Segmented SUM and fused SUM/MAX: short, long and skewed segments, nullable inputs, and known/unknown maximum-length hints.
  • CSV samples, logical input GB/s, offline SVG plotting and a concise description of the measured SQL and timing boundaries.

Allocation and finalization are timed. LTO returns independent single-row columns; public cuDF segmented reduction returns packed columns, so the comparisons include output-layout costs.

Validation

All 72 smoke and 60 full-matrix cases matched the public cuDF reference; eight SVGs were generated. The full stack passed all 122 CTest entries, and formatting checks passed. CUDA 13.3.73, Release, sm_86, RTX A6000 (48 GB).

The local timings are validation data: GPU 0 drives a display while an independent Nsight campaign is active on GPU 1. No controlled performance claims are made from these runs.

Stack

  1. Shared LTO UDF infrastructure
  2. Scalar reductions
  3. Segmented reductions
  4. Benchmark comparisons

This PR: 4/4. Depends on #25032. Current base: lamarrr/reduce-3-segmented.

Head branches live in lamarrr/cudf. Upstream lamarrr/reduce-* branches mirror predecessor commits to provide GitHub PR bases.

Merge into main in order: after each predecessor lands, restack its successor onto main and retarget that PR to main before merging. Keep base mirrors synchronized with their fork heads while reviewing updates.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant