Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cub::BlockReduce can't be instantiated with BLOCK_DIM_X==1 #905

Open
krzikalla opened this issue Oct 14, 2022 · 1 comment
Open

cub::BlockReduce can't be instantiated with BLOCK_DIM_X==1 #905

krzikalla opened this issue Oct 14, 2022 · 1 comment
Assignees
Labels
cub For all items related to CUB

Comments

@krzikalla
Copy link

cub::BlockReduce<int, 1> reducer;

doesn't compile.

@krzikalla krzikalla changed the title cub::BlockReduce can't be instantiatied with BLOCK_DIM_X==1 cub::BlockReduce can't be instantiated with BLOCK_DIM_X==1 Oct 14, 2022
@gevtushenko
Copy link
Collaborator

Hello, @krzikalla! Thank you for reporting this. We've recently fixed similar issue for cub::WarpReduce. As I can see, the issue happens only when there is only a single thread in the thread block. In other words, the following versions get compiled successfully:

cub::BlockReduce<int, 1, cub::BlockReduceAlgorithm::BLOCK_REDUCE_RAKING, 2> reducer1;
cub::BlockReduce<int, 1, cub::BlockReduceAlgorithm::BLOCK_REDUCE_RAKING_COMMUTATIVE_ONLY, 2> reducer2;
cub::BlockReduce<int, 1, cub::BlockReduceAlgorithm::BLOCK_REDUCE_WARP_REDUCTIONS, 2> reducer3;

Is there any change you can use cub::WarpReduce instead of cub::BlockReduce as a workaround for the mentioned case?

@jrhemstad jrhemstad added the cub For all items related to CUB label Feb 22, 2023
@jarmak-nv jarmak-nv transferred this issue from NVIDIA/cub Nov 8, 2023
@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cub For all items related to CUB
Projects
Status: Todo
Development

No branches or pull requests

4 participants