caffe运行错误: im2col.cu:61] Check failed: error == cudaSuccess (8 vs. 0) invalid device function

错误

im2col.cu:61] Check failed: error == cudaSuccess (8 vs. 0)  invalid device function

原因:由于Makefile.config里面只对cuda8.0一下的架构编译cuda程序,所以采用cuda8.0后cuda程序没有被编译

解决:修改Makefile.config中的 CUDA_ARCH

添加 -gencode arch=compute_61,code=sm_61

计算能力可以参考下面链接添加合适的架构参数

http://blog.csdn.net/allyli0022/article/details/54628987

时间: 2024-10-09 09:12:42

caffe运行错误: im2col.cu:61] Check failed: error == cudaSuccess (8 vs. 0) invalid device function的相关文章

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, m

Check failed: error == cudaSuccess (10 vs. 0) invalid device ordinal

ubuntu14.04 caffe 运行别人的程序,报错Check failed: error == cudaSuccess (10 vs. 0)  invalid device ordinal.根据网上的说法,GPU内存不够,可是batch大小改为1了还是不行.问了博士师兄才发现,在该行上面有一行,写着using GPUs 1.而我只有一个GPU,如图2,我把solver_48.prototxt中最后一行的device_id改为0,接着运行,见图1,这个错误就没有啦--当然我的又报了别的错..

caffe 训练时,出现错误:Check failed: error == cudaSuccess (4 vs. 0) unspecified launch failure

I0415 15:03:37.603461 27311 solver.cpp:42] Solver scaffolding done.I0415 15:03:37.603549 27311 solver.cpp:247] Solving AlexNetI0415 15:03:37.603559 27311 solver.cpp:248] Learning Rate Policy: stepI0415 15:03:37.749981 27311 solver.cpp:214] Iteration

Check failed: status == CUBLAS_STATUS_SUCCESS (11 vs. 0) CUBLAS_STATUS_MAPPING_ERROR

I0930 21:23:15.115576 30918 solver.cpp:281] Learning Rate Policy: multistepF0930 21:23:17.263314 31011 math_functions.cu:121] Check failed: status == CUBLAS_STATUS_SUCCESS (11 vs. 0) CUBLAS_STATUS_MAPPING_ERROR*** Check failure stack trace: ***F0930

caffe运行错误 target_blobs.blobs_size()与 source_layer.blobs_size() 不一致

解决方法参考:http://blog.csdn.net/zhangla1220/article/details/50697352 感谢博主!!! 最新下载的caffe代码,运行mnist,训练时可以正常执行完毕,但是一到测试就出现错误. 运行其他网络时,测试即使可以正常执行完毕,但结果是错的,出现结果概率相同的状况,推测caffemodel的数据没有load进去. 最终修改方法: 将io.cpp文件中的函数ReadProtoFromBinaryFile里面的_open(filename, O_R

caffe报错:cudnn.hpp:86] Check failed: status == CUDNN_STATUS_SUCCESS (3 vs. 0) CUDNN_STATUS_BAD_PARAM 原因

在实际项目中出现的该问题,起初以为是cudnn版本的问题,后来才定位到在网络进行reshape操作的时候 input_layer->Reshape({(int)imgin.size(), input_layer->shape(1), input_layer->shape(2), input_layer->shape(3)}); 如上所示,第一个参数是输入图片的尺寸,在实际的视频中,输入的图片尺寸有可能为0,那么在reshape操作的时候就会报错. 在外层加一个保护就好了. 原文地址

Applying GI PSU "opatch auto" fails with "The opatch Component check failed"

Applying GI PSU using "opatch auto" fails with "The opatch Component check failed" (文档 ID 1169036.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.3 and laterInformation in this document applies to any platform.***C

GI OPatch升级 The opatch Component check failed. This patch is not applicable for...

Oracle11gr2RAC(11204)打补丁11.2.0.4.8,系统为:SuSE11sp3 X86_64 通过/u01/app/11.2.0/grid/OPatch/opatch auto /tmp/21523375 -ocmrf /tmp/ocm.rsp 同时对ORACLE_HOME,GI_HOME同时升级.出现如下报错: jason1:/u01/app/11.2.0/grid/OPatch # /u01/app/11.2.0/grid/OPatch/opatch auto /tmp/2

java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080)的解决办法

当你启动Tomcat后,在浏览器中输入http://127.0.1.1:8080/xxx.xx,你会发现你可以找打你要找的东西.但是当你在Eclipse中运行测试代码后,JUnit会一直报出这样的错误: java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080) after 5000ms: isConnected failed: ECONNREFUSED (Connection refused)at libcore