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

wrong if condition #2

Open
Ashutosh-Londhe opened this issue Jul 27, 2018 · 1 comment
Open

wrong if condition #2

Ashutosh-Londhe opened this issue Jul 27, 2018 · 1 comment

Comments

@Ashutosh-Londhe
Copy link

Ashutosh-Londhe commented Jul 27, 2018

for GPU kernel total threads spawned will be (nx X nz) only but in function cal_migration
id=threadIdx.x+blockIdx.x*blockDim.x

if(id < nnx*nnz) rather it should be
if(id < nx*nz)

file: Toa_gpu_2dtti_rtm_adcigs_1orderfunciton.cu

@Rtoax
Copy link
Owner

Rtoax commented Aug 20, 2018

thanks, you are right.😁

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