Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
This comment has been minimized.
This comment has been minimized.
cd37a55 to
081bbda
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I went through all SASS diffs from the benchmark CI and rebuilt single-change variants locally (nvcc 13.4, sm_80 and sm_120) to attribute them. Only two of the five source changes affect codegen:
The substantive changes are small improvements:
The large The rest is register allocation and ordering only, or tiny changes that are hard to judge from the SASS: I don't expect a regression, but to be on the safe side, could we run these on one GPU up to sm_90 and one sm_120?
By the way, the PR description says "The PR should not have any SASS difference". If it's intentional that there should not be any SASS changes, then the PR still needs work. |
081bbda to
12c5ce4
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ption in block_run_length_decode.cuh
yes, thanks for double-checking. I didn't run a full SASS analysis locally, so I waited for the CI results. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
left a comment
There was a problem hiding this comment.
Some of the changes LGTM, but a few others need more thinking.
Now, all routine benchmarks with SASS diffs have been tested on SM80, SM86, SM90, SM100, SM107, and SM120, with no regressions.
Can you please post the nvbench_compare diffs?
| _CCCL_DEVICE_API _CCCL_FORCEINLINE unsigned int | ||
| SHFL_UP_SYNC(unsigned int word, int src_offset, int flags, unsigned int member_mask) |
There was a problem hiding this comment.
Critical: This is removing a public API, which we need to defer to a major release. Please deprecate the function instead.
Applies to more functions deleted in this PR.
There was a problem hiding this comment.
I don't think there are other functions to address, everything else is in the detail namespace or deprecated
| // A down-shuffle can receive a negative last-lane index for an empty warp | ||
| if (__shfl_mode != __dot_shfl_mode::__down || (__clamp_segmask & (1u << 31)) == 0) | ||
| { |
There was a problem hiding this comment.
Remark: Without understanding the details of the implementation, it strikes me as surprising that we should handle a negative last-lane index, here or in general.
There was a problem hiding this comment.
as an example of the issue CUB BlockReduce assigns last_lane = -1 when a warp is outside num_items. Same for WarpScan overload for ReduceByKeyOp. Then __clamp_segmask is clamped at HW-level and still valid because -1 has all bits set to one.
# Conflicts: # cub/cub/detail/unsafe_bitcast.cuh
🔬 Benchmark SASS comparisonHow to request a benchmark run
Targets with a SASS change
|
CI Workflow ResultsAI failure analysis1. libcu++ NVRTC lit suite timed out with four tests unreported · 1 jobExplanation: CTest reached its 5.5-hour limit nearly four hours after the last reported pass; the log does not show whether compilation or GPU execution stalled. The workflow-results gate failed because this job had no success artifact; its separate HTTP 502 affected only summary generation. Evidence: Copy this prompt into a coding agentJobs: 2. Benchmark SASS changes lack approval for the tested commit · 1 jobExplanation: The benchmark comparison detected changed GPU instructions, but the check found no approval artifact for this PR and commit. That establishes a missing approval, not a performance regression. Evidence: Copy this prompt into a coding agentJobs: |
Description
Deprecate the following public functionalities:
cub::ThreadExit()->cuda::ptx::exit()cub::MidPoint()->cuda::std::midpointRemove the following internal functionalities:
cub::detail::LogicShiftLeftandcub::detail::LogicShiftRight->cuda::std::shl,cuda::std::shrSHFL_UP_SYNCandSHFL_DOWN_SYNC->cuda::ptx::shfl_sync_upandcuda::ptx::shfl_sync_downcub::detail::unsafe_bitcast->cuda::std::bit_cast(now it supports extended floating-point types)Deprecations are also reported in:
The PR should not have any SASS difference.