Repository navigation
Fix mdspan support in modernized CUB interfaces - #9020
Conversation
Also make mdspan tests run with all supported C++ standards as we have a backported operator[] for the 1D mdspan case.
mdspan support was broken due to missing parentheses.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
📝 WalkthroughSummary by CodeRabbit
WalkthroughType traits specializations for ChangesUnconditional mdspan support
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
🥳 CI Workflow Results🟩 Finished in 2h 49m: Pass: 100%/283 | Total: 11d 18h | Max: 2h 49m | Hits: 11%/1387079See results here. |
Description
A growing number of CUB thread primitives accept not only C-style arrays, but any "fixed-size random access range" like
cuda::std::array,cuda::std::spanand 1Dcuda::std::mdspan. See #1877 for context.The tests for mdspan where not build/executed in the past due to
#if _CCCL_STD_VER >= 2023. This is unnecessary as we haveoperator[]on 1D mdpsans even with C++17.This PR
mdspanin the mentioned primitives (they were not compiling).The later two issues did not surface before because the corresponding tests were not compiled.
Checklist