码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-05-10 21:25:40      阅读:2052      评论:0      收藏:0      [点我收藏+]

标签:ons   lin   err   driver   das   uda   gen   and   dev   

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~~

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

标签:ons   lin   err   driver   das   uda   gen   and   dev   

原文地址:http://www.cnblogs.com/chanyn/p/6838050.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!