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

The length of the output will be halved #3

Closed
yizhibaiwuya opened this issue Jun 19, 2023 · 1 comment
Closed

The length of the output will be halved #3

yizhibaiwuya opened this issue Jun 19, 2023 · 1 comment

Comments

@yizhibaiwuya
Copy link

yizhibaiwuya commented Jun 19, 2023

int32_t block_num = (N + BLOCK_SIZE - 1) / BLOCK_SIZE / 2;

In reduce_v3_idle_threads_free.cu, each block is responsible for the reduction of 512 elements. However, this will result in the final output length being halved. But this is contrary to our desire to reduce every 256 elements.

@BBuf
Copy link
Owner

BBuf commented Jun 30, 2024

图片

@BBuf BBuf closed this as completed Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants