tensorflow - 错误 : Config value cuda is not defined in any . rc 文件信息:调用 ID:1faa4ce7-96be-42d3-80bc-10cac6a8f3a7

标签 tensorflow build bazel

我正在关注这个 https://medium.com/@zhanwenchen/speed-up-learning-by-building-tensorflow-gpu-from-source-on-ubuntu-d03bb4e06b23还有这个https://alliseesolutions.wordpress.com/2016/07/05/how-to-install-gpu-tensorflow-0-9-from-sources-ubuntu-14-04/

系统信息:

Ubuntu 14.04 python 2.7 巴泽尔版本 0.22

CUDA/cuDNN 版本 9.0/7.4

显卡:英伟达 GTX 1050

描述问题:

错误:配置值 cuda 未在任何 .rc 文件中定义

信息:调用 ID:1faa4ce7-96be-42d3-80bc-10cac6a8f3a

请帮帮我

提前谢谢你

最佳答案

bazel 的版本对于您要构建的 TensorFlow 级别来说太新了。

查看此页面:https://www.tensorflow.org/install/source用于每个版本的 TensorFlow 的 bazel 级别。

Short summary:
TF 1.12     Bazel 0.15.0
TF 1.11     Bazel 0.15.0
TF 1.10     Bazel 0.15.0
TF 1.9      Bazel 0.11.0
TF 1.8      Bazel 0.10.0

技术细节:

较新级别的 bazel 不再自动包含 tools/bazel.rc。该文件是定义“cuda”的地方。从 TensorFlow 1.13 开始,./configure 命令定义了可以构建版本的 bazel 的最低和最高版本,以避免将来出现此类错误。 (同样从 1.13 开始,tools/bazel.rc 被移动到 .bazelrc 所以它会继续被 bazel 自动读取)

关于tensorflow - 错误 : Config value cuda is not defined in any . rc 文件信息:调用 ID:1faa4ce7-96be-42d3-80bc-10cac6a8f3a7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54643686/

相关文章:

tensorflow - cudnn 在 TensorFlow 中编译配置

macos - 为什么我在 Primer3/eprimer3 Mac OSX 构建中出现此错误?

c++ - Python scons 构建

ios - 带有 "Release: Fastest, Smallest [-Os]"的 Xcode 8 有一些奇怪的问题,并且在某些情况下无法正常运行

bazel 目标 @platforms//os :windows was referenced as a platform, 但不提供 PlatformInfo

c++ - 升级 Visual Studio 后 Bazel 不再工作

kubernetes - Bazel Kubernetes 对象错误 : no objects passed to apply (Google Container Registry)

tensorflow - 如果所有基础层可训练项都设置为 false,我的模型如何工作?

tensorflow 2 集线器 : How can I obtain the output of an intermediate layer?

python - 不同模型的训练精度不同,但测试精度相同