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

multithread add operation in kernel 'renderCUDA_count' #24

Open
humphryey131 opened this issue Mar 28, 2024 · 1 comment
Open

multithread add operation in kernel 'renderCUDA_count' #24

humphryey131 opened this issue Mar 28, 2024 · 1 comment

Comments

@humphryey131
Copy link

Hi guys, I am wondering if the following accumulation in renderCUDA_count kernel shall use atomic operation :
image
As far as I know, the collected_id[j] in different parallel threads may run into idential value. Thanks.

@linwk20
Copy link

linwk20 commented Apr 25, 2024

I also found this problem, did you try atomicAdd(&gaussian_count[collected_id[j]], 1);?
Will it be very slow?

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