Skip to content

[ENHANCEMENT]: Make cuco code NVRTC-compatible #695

@PointKernel

Description

@PointKernel

Is your feature request related to a problem? Please describe.

Related to NVIDIA/cccl#4305

Make sure cuco is JIT or NVRTC compatible.

Describe the solution you'd like

To enable cuco code to be used in JIT kernels, we need to ensure that no thrust algorithms are used in cuco implementations. When available, we will replace the two existing uses of thrust algorithms with their cuda::std:: equivalents.

thrust::reduce(thrust::seq, num_matches, num_matches + bucket_size);

if (thrust::any_of(thrust::seq, exists, exists + bucket_size, cuda::std::identity{})) {

As a simpler initial task, we can start by replacing thrust utilities such as pair, tuple, and equal_to with their corresponding cuda::std:: equivalents, which are already available for use.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions