RFCN_CoupleNet.pytorch
RFCN_CoupleNet.pytorch copied to clipboard
RuntimeError: cuda runtime error (8) : invalid device function at /opt/conda/conda-bld/pytorch_1513368888240/work/torch/lib/THC/THCTensorCopy.cu:204
I met this error when I run this code.
Loading pretrained weights from data/pretrain_model/resnet101.pth
THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1513368888240/work/torch/lib/THC/THCTensorCopy.cu line=204 error=8 : invalid device function
Traceback (most recent call last):
File "/home/WXL/MMW/RFCN_CoupleNet.pytorch-master/trainval_net.py", line 328, in
I re-compile mask.sh, but it doesn't work.
This is my envs: torch=0.3.0, cuda=0.8

pytorch=0.3.0, cuda=8.0, GTX 1080Ti, When I set CUDA_ARCH="-gencode arch=compute_61,code=sm_61", I met error "cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1". It cannot compile successfully. If I change CUDA_ARCH="-gencode arch=compute_52,code=sm_52", it compiled successfully. But when I run code, another error occurs, that is "RuntimeError: cuda runtime error (8) : invalid device function at /opt/conda/conda-bld/pytorch_1513368888240/work/torch/lib/THC/THCTensorCopy.cu:204"