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

"atomicAdd" argument types error (c10::Half *, c10::Half) #163

Open
GuoRunTang opened this issue Mar 8, 2024 · 1 comment
Open

"atomicAdd" argument types error (c10::Half *, c10::Half) #163

GuoRunTang opened this issue Mar 8, 2024 · 1 comment

Comments

@GuoRunTang
Copy link

在尝试自己配置GLIP环境的时候报了这样的错误,请问我可以如何修改呢?
单卡3090 cuda_12.1 pytorch 2.1.0+cu121

atomicAdd(grad_im + cur_bottom_grad_pos, weight * cur_top_grad);
^
nt, int, int, int, int, int, int, int, scalar_t *) [with scalar_t=c10::Half]" at line 366

D:\GRT\GLIP-main\GLIP-main\maskrcnn_benchmark\csrc\cuda\deform_conv_kernel_cuda.cu(701): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (c10::Half *, c10::Half)
atomicAdd(grad_im + cur_bottom_grad_pos, weight * cur_top_grad);
^
detected during instantiation of "void modulated_deformable_col2im_gpu_kernel(int, const scalar_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, scalar_t *) [with scalar_t=c10::Half]" at line 826

2 errors detected in the compilation of "D:/GRT/GLIP-main/GLIP-main/maskrcnn_benchmark/csrc/cuda/deform_conv_kernel_cuda.cu".
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc.exe' failed with exit code 1

@jayaramreddy10
Copy link

@GuoRunTang , I am getting same issue, could you resolve this?

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