fundamentalvision / Deformable-DETR

Deformable DETR: Deformable Transformers for End-to-End Object Detection.
Apache License 2.0
3.14k stars 513 forks source link

cuda problem of MSDA #234

Open bluemoon223 opened 3 months ago

bluemoon223 commented 3 months ago

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(127): error: identifier "grad_output_n" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: type name is not allowed

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: expected an expression

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "per_sample_loc_size" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "per_attn_weight_size" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "grad_sampling_loc" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: type name is not allowed

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: expected an expression

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "grad_attn_weight" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: type name is not allowed

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: expected an expression

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: no instance of function template "ms_deformable_col2im_cuda" matches th e argument list argument types are: (c10::cuda::CUDAStream, , double , int64_t , int64_t , , , const int, const int, const int, const int, cons t int, const int, const int, double , , )

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: type name is not allowed

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: expected an expression

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "per_sample_loc_size" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "per_attn_weight_size" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "grad_sampling_loc" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: type name is not allowed

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: expected an expression

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: identifier "grad_attn_weight" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: type name is not allowed

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: expected an expression

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(128): error: no instance of function template "ms_deformable_col2im_cuda" matches th e argument list argument types are: (c10::cuda::CUDAStream, , float , int64_t , int64_t , , , const int, const int, const int, const int, const int, const int, const int, float , , )

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(145): error: identifier "grad_sampling_loc" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(145): error: identifier "grad_attn_weight" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src\cuda/ms_deform_im2col_cuda.cuh(258): warning: variable "q_col" was declared but never referenced E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(145): error: identifier "grad_attn_weight" is undefined

E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src\cuda/ms_deform_im2col_cuda.cuh(258): warning: variable "q_col" was declared but never referenced detected during: instantiation of "void ms_deformable_im2col_gpu_kernel(int, const scalar_t , const int64_t , const int64_t , const scalar_t , const scalar_t , int, int, int, int detected during: instantiation of "void ms_deformable_im2col_gpu_kernel(int, const scalar_t , const int64_t , const int64_t , const scalar_t , const scalar_t , int, int, int, int , int, int, int, scalar_t ) [with scalar_t=double]" (943): here , int, int, int, scalar_t ) [with scalar_t=double]" (943): here instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t , const int64_t , const int64_t , const scalar_t , const scalar_t *, int, int, int, E:/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu(64): here

25 errors detected in the compilation of "E:/code/pycharm_project/ViT-Adapter-main/segmentation/ops/src/cuda/ms_deform_attn_cuda.cu". error: command 'D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin\nvcc.exe' failed with exit code 1