Skip to content

Make warpspeed scan work in CCCL.C #6821

Closed

Description

@bernhardmgruber

After #6811 is merged, we should expose the new scan implementation to CCCL.C as well. Since this requires us to write and extend all the policy wrappers, we should probably first port cub::DeviceScan to the new tuning API design.

Depends on:

Activity

  1. bernhardmgruber commented on Dec 17, 2025

    @bernhardmgruber
    ContributorAuthor

    I hit a roadblock here when investigating the crash:

    ./bin/cccl.c.parallel.test.scan
    ...
    ========= Out-of-range shared or local address
    =========     at void cuda::ptx::__4::mbarrier_init<void>(unsigned long long *, const unsigned int &)+0x770 in mbarrier_init.h:19
    =========     by thread (0,0,0) in block (0,0,0)
    =========         Device Frame: cub::_V_300300_SM_1200::detail::scan::SyncHandler::clusterInitSync(cub::_V_300300_SM_1200::detail::scan::SpecialRegisters, cub::_V_300300_SM_1200::detail::scan::SkipSync)+0x600 in SyncHandler.h:134
    

    The problem is that the JIT compilation determines that we can use the lookahead scan, while the precompiled dispatching logic does not, since cccl_indirect_iterator_t is not a contiguous_iterator. So the host sets up the old kernel, but then launches the new one, and we have insufficient SMEM (and lots of other bugs).

    Before touching all the PTX-JSON stuff to make that work, I think it would be better to port DeviceScan to the new tuning API.

  2. changed the title [-]Make CCCL.C work again[/-] [+]Make warpspeed scan work in CCCL.C[/+] on Jan 16, 2026
  3. moved this from Todo to In Progress in CCCLon Feb 13, 2026
  4. moved this from In Progress to In Review in CCCLon Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions