faster-rcnn.pytorch
faster-rcnn.pytorch copied to clipboard
No kernel image is available for execution on the device in "crop" pooling mode
I'm using torch 0.4.0, and cuda 9.0 python 3.6. I've been stopped by this issue for several days.
while running 'python trainval_net.py --net res101 --cuda',
I got the following error:
Loading pretrained weights from data/pretrained_model/resnet101_caffe.pth
pooling mode: crop
error in BilinearSampler.updateOutput: no kernel image is available for execution on the device
Traceback (most recent call last):
File "trainval_net.py", line 323, in
please set -arch on nvcc cmd in make.sh file. like the following
nvcc -c -o roi_pooling.cu.o roi_pooling_kernel.cu \ -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC $CUDA_ARCH -arch sm_52
I highly recommend the author explicitly point it out...
i just try the idea of MaureenZOU ,but it's not work.maybe the probelm about cuda?
I am using a GTX 2080 Ti GPU, which has arch code as sm_75
. If I sh make.sh
, it results in nvcc fatal : Unsupported gpu architecture 'compute_75'
.
Does anyone have solution for that? P.S. I have to set it up for the pytorch 0.4.0
version.
You should check your cuda version. There architecture is related to your cuda version instead of GPU version. Please refer to the link https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
I solved this problem.
My environment is cuda9.2, pytorch0.4.1, python3.6. I added [-arch sm_60] after [-D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC $CUDA_ARCH] on line 26, line 35, line 45, line 54 in lib/make.sh . which is:
-D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC $CUDA_ARCH -arch sm_60
I am using a GTX 2080 Ti GPU, which has arch code as
sm_75
. If Ish make.sh
, it results innvcc fatal : Unsupported gpu architecture 'compute_75'
.Does anyone have solution for that? P.S. I have to set it up for the
pytorch 0.4.0
version.
Same issue for me. How did you solve this problem 2 years before?