caffe编译时make all 和make test 都成功以后,make runtest报错的解决方法

执行make all 和make test成功以后

执行

make runtest

后出现类似于如下错误:


[----------] Global test environment tear-down
[==========] 1096 tests from 150 test cases ran. (106016 ms total)
[  PASSED  ] 1095 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] BenchmarkTest/1.TestTimerMilliSeconds, where TypeParam = caffe::CPUDevice<double>


 1 FAILED TEST
Makefile:523: recipe for target 'runtest' failed
make: *** [runtest] Error 1

TestTimerMilliSeconds可能是别的TestXXXXX

后来查找到是因为多GPU的问题

指定一个GPU

在命令行输入指令:export CUDA_VISIBLE_DEVICES=0

然后make clean

重新对上面三条指令编译

最后make runtest成功

希望对类似的问题的人有所帮助

如果这样还不行的话,尝试指令export MKL_CBWR=AUTO

然后重新编译

出处:https://github.com/BVLC/caffe/issues/3109

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值