执行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
然后重新编译