Original URL:
Http://www.bubuko.com/infodetail-2265238.html
Error:
IM2COL.CU:61] Check Failed:error = = cudasuccess (8 vs. 0) Invalid device function
Reason: Because makefile.config inside only cuda8.0 the following schema compiled Cuda program, so the use of cuda8.0 after the CUDA program is not compiled
FIX: Modify the Cuda_arch in Makefile.config
Add-gencode arch=compute_61,code=sm_61
Calculation ability can be referred to the following link to add appropriate schema parameters
http://blog.csdn.net/allyli0022/article/details/54628987
Comments can also be seen in Makefile.config (I am currently using gtx1080):
# CUDA Architecture setting:going with all of them.
# for CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
# for CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
Cuda_arch: =-gencode arch=compute_20,code=sm_20 \
-gencode Arch=compute_20,code=sm_ \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=c ompute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
&NBS P -gencode arch=compute_52,code=sm_52 \
-gencode arch=compute_60,code=sm_60 \
& nbsp -gencode arch=compute_61,code=sm_61 ,
#-gencode Arch=comp ute_61,code=compute_61