Tensorflow benchmark测试Aborted (core dumped)错误

运行benchmark的tf_cnn_benchmarks测试时,运行如下命令时最后报core dumped的错误

#执行non_distribute测试
python3 run_tests.py

使用secureCRT通过SSH连接服务器,获取log信息,从最后往上查找,发现log里有这样一条错误:

.372805: I tensorflow/stream_executor/dso_loader.cc:141] Couldn’t open CUDA library libcupti.so.9.0. LD_LIBRARY_PATH: /usr/local/cuda-9.0/lib64:
2018-10-09 20:00:13.372864: F tensorflow/stream_executor/lib/statusor.cc:34] Attempting to fetch value instead of handling error Failed precondition: could not dlopen DSO: libcupti.so.9.0; dlerror: libcupti.so.9.0: cannot open shared object file: No such file or directory
Fatal Python error: Aborted

系统提示找不到libcupti.so.9.0这个模块,转到lib64目录下看了一下果然没有。难道安装cuda的时候少装了一个模块??
在/usr/local/cuda-9.0目录下使用find指令搜这个模块,居然发现它的路径是:
/usr/local/cuda-9.0/extras/CUPTI/lib64/libcupti.so.9.0
将这个路径添加到PATH里面,问题解决

猜你喜欢

转载自blog.csdn.net/u011605941/article/details/82988689