M3DV / AlignShift

[MICCAI'21 & MICCAI'20] A Codebase for Universal Lesion Detection (DeepLesion SOTA)
Apache License 2.0
47 stars 10 forks source link

RuntimeError: CUDA error: no kernel image is available for execution on the device #3

Closed studabyd closed 3 years ago

studabyd commented 3 years ago

Hello, I run the test code and have the problem: RuntimeError: CUDA error: no kernel image is available for execution on the device (launch_kernel at /pytorch/aten/src/ATen/native/cuda/Loops.cuh:102) frame #0: c10::Error::Error( 2020-10-23 12-07-11屏幕截图

so do you know how to solve it. And what is the cuda version do you use. Thank you!

studabyd commented 3 years ago

The error above happend when I evaluate in TiTAN X GPU, but disappeared in Geforcr GTX 1660 GPU, (they have diffirent environments in different computers).

NotF404 commented 3 years ago

hi sorry for late replay, we updated setup.py and README. now you can follow installation in README to compile mmdet's operations in you own environments. this operations that are the causes of your problem are compiled differently in different environments.

studabyd commented 3 years ago

hi sorry for late replay, we updated setup.py and README. now you can follow installation in README to compile mmdet's operations in you own environments. this operations that are the causes of your problem are compiled differently in different environments.

Hello, thank you for your reply and update. I try your new 'readme.md' file and do 'python setup.py install' before run test code, but the same error happened. My computer has 2 GPUs:TiTan Xp and TiTanx, in which the error happened but I run the test code successfully in Geforcr GTX 1660 GPU. So whether the GPU is the reason, or I run it in the wrong way? What files such as 'build,*.eggs' I should delete before setup.py. I see the setup.py file, and the 'ext_module' about nms_cuda in 170 line of setup.py maybe has something wrong. The following is error picture and my environment. 2020-10-23 12-07-11屏幕截图

My computer environment: Python: 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0] NVCC: Cuda compilation tools, release 9.0, V9.0.176 GPU 0: TITAN X (Pascal) GPU 1: TITAN Xp GCC: gcc (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4 PyTorch: 1.3.0 torchvision:0.4.1 mmcv:0.2.15 mmdet:1.0rc1+277b5dc

NotF404 commented 3 years ago

You can install official mmdetection and follow here to add you code in mmdet, if it's the case.

studabyd commented 3 years ago

You can install official mmdetection and follow here to add you code in mmdet, if it's the case. Ok, I will try it, Thank you.