Run Caffe Meet [Check failed: error == cudaSuccess (8 vs.0) invalid device function]

It is possible relative to CUDA compute cabality , and should find your VGA Driver‘s compute cabality

You can refer to is Blog:

http://blog.csdn.net/real_myth/article/details/44308169

And then edit [CUDA_ARCH] in your Makefile.config, for examples, my VGA is GTX770, its compute cabality is 3.0, so annotations last two line.

CUDA_ARCH := -gencode arch=compute_20,code=sm_20 		-gencode arch=compute_20,code=sm_21 		-gencode arch=compute_30,code=sm_30 		#-gencode arch=compute_35,code=sm_35 		#-gencode arch=compute_50,code=sm_50 		#-gencode arch=compute_50,code=compute_50                 #-gencode arch=compute_52,code=compute_52

Re-run your code, seccess~~

文章来自:http://www.cnblogs.com/chanyn/p/6838050.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3