Python 3.x 在Ubuntu 18.04上使用Cuda 10构建Tensorflow r1.12
我真的试着锻炼身体了。我已按照指示和指示行事。清洁系统:Python 3.x 在Ubuntu 18.04上使用Cuda 10构建Tensorflow r1.12,python-3.x,tensorflow,Python 3.x,Tensorflow,我真的试着锻炼身体了。我已按照指示和指示行事。清洁系统: Ubuntu 18.04服务器 Ubuntu侏儒 Cuda 10.0 cuDNN 7.4.1 NCCL 2.3.7 TensorRT 5.0.2.1 张量流r1.12 Python 3.6 GCC 7.3.0 使用命令行: bazel build--config=cuda--config=mkl//tensorflow/tools/pip_包:build_-pip_包 这就是错误: WARNING: The following rc
- Ubuntu 18.04服务器
- Ubuntu侏儒
- Cuda 10.0
- cuDNN 7.4.1
- NCCL 2.3.7
- TensorRT 5.0.2.1
- 张量流r1.12
- Python 3.6
- GCC 7.3.0 使用命令行: bazel build--config=cuda--config=mkl//tensorflow/tools/pip_包:build_-pip_包
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/devel/software/tensorflow/tools/bazel.rc
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=171
ERROR: Config value cuda is not defined in any .rc file
有人知道bazel.rc的哪些部分需要进口吗
为什么cuda没有定义
如果我尝试:
bazel测试-c opt-->/tensorflow/-//tensorflow/编译器/-//tensorflow/contrib/lite/
它失败,出现以下错误:
错误:/devel/software/tensorflow/tensorflow/python/BUILD:3768:1:链接规则“//tensorflow/python:\u pywrap\u tensorflow\u internal.so”失败(出口1)gcc失败:错误执行命令/usr/bin/gcc-shared-o bazel out/k8 opt/bin/tensorflow/python/\u pywrap\u tensorflow\u internal.so-Wl,--版本脚本bazel out/k8 opt/bin/tensorflow/python/pywrap_tensorflow_internal_versionscript.lds。。。(跳过其余65个参数)
有人成功了吗?(显然至少有两个人有)也许有人能告诉我我做错了什么?或者如何构建此功能?按照警告中的说明操作,它将起作用
"WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/devel/software/tensorflow/tools/bazel.rc"
您应该在/devel/software/tensorflow/.bazelrc上有一个文件.bazelrc。在该文件的顶部添加以下代码段
import /devel/software/tensorflow/tools/bazel.rc
享受吧 有些成功。我知道这不是Windows,而是重新启动帮助。现在由于以下错误而失败:错误:/devel/software/tensorflow/tensorflow/BUILD:592:1:执行genrule//tensorflow:tensorflow\u python\u api\u gen失败(出口1)bash失败:执行命令时出错/bin/bash-c。。。(跳过剩余的1个参数)无法使用--config=cuda并且无法使用--config=mkl任何人都知道原因吗?原始错误“error:config value cuda未在任何.rc文件中定义”,只有在使用Bazel 0.19.0时才会出现错误,请尝试使用Bazel 0.18.0进行构建。我会删除--config=mkl,因为您希望操作在gpu上完成。@William D.Irons-谢谢!这就是答案。非常感谢。道格