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

invalid configuration argument in top_k_gpu.cu at line 418 #2

Open
minghust opened this issue Dec 4, 2018 · 2 comments
Open

invalid configuration argument in top_k_gpu.cu at line 418 #2

minghust opened this issue Dec 4, 2018 · 2 comments

Comments

@minghust
Copy link

minghust commented Dec 4, 2018

Hi,
When I run `run.sh', it shows "invalid configuration argument in top_k_gpu.cu at line 418".

my cuda version: cuda 9.0

Do you have any similar error? Thanks :)

@yuxianzhi
Copy link
Owner

413    if(shared_mem_usage < GPU_SHARED_MEM_THRESHOLD)
414        top_k_gpu_kernel3_2<<<1, threads, shared_mem_usage>>>(input, blocks, stride, k, output);
415    else
416        top_k_gpu_kernel3_2_orig<<<1, threads>>>(input, blocks, stride, k, output);
417    cudaError_t err = cudaGetLastError();
418    HANDLE_CUDA_ERROR(err);

You can print shared_mem_usage and threads to make sure that they are valid. (shared_mem_usage < ?KB and threads < 1024)

@minghust
Copy link
Author

thx :)

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