DAB-DETR icon indicating copy to clipboard operation
DAB-DETR copied to clipboard

Compiling CUDA operators error

Open Aliweka2020 opened this issue 2 years ago • 4 comments

when try to compile CUDA operator I get this errors:

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(97): error: identifier "__floorf" is undefined in device code

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(98): error: calling a host function("__floorf") from a device function("ms_deform_attn_col2im_bilinear ") is not allowed

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(98): error: identifier "__floorf" is undefined in device code

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(172): error: calling a host function("__floorf") from a device function("ms_deform_attn_col2im_bilinear_gm ") is not allowed

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(172): error: identifier "__floorf" is undefined in device code

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(173): error: calling a host function("__floorf") from a device function("ms_deform_attn_col2im_bilinear_gm ") is not allowed

C:/Users/Ali/DAB-DETR-main/models/dab_deformable_detr/ops/src\cuda/ms_deform_im2col_cuda.cuh(173): error: identifier "__floorf" is undefined in device code

12 errors detected in the compilation of "C:/Users/Ali/AppData/Local/Temp/tmpxft_00002e2c_00000000-7_ms_deform_attn_cuda.cpp1.ii". error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe' failed with exit code 1

Any suggestions......

Aliweka2020 avatar May 08 '22 16:05 Aliweka2020

Can you provide more information about your device, environments (like the cuda version and PyTorch version), and commands used?

SlongLiu avatar May 20 '22 11:05 SlongLiu

I am using RTX2060 GPU with pytorch 1.10.0 + cuda 10.2 environment.

Aliweka2020 avatar May 31 '22 07:05 Aliweka2020

I am running these commands

cd models/dab_deformable_detr/ops python setup.py

on windows machine

Aliweka2020 avatar May 31 '22 07:05 Aliweka2020

now I get this error

image

Aliweka2020 avatar May 31 '22 08:05 Aliweka2020