美文网首页
docker里面用bazel编译tensorflow遇到的问题

docker里面用bazel编译tensorflow遇到的问题

作者: 美环花子若野 | 来源:发表于2019-07-09 18:57 被阅读0次

https://stackoverflow.com/questions/34183997/why-am-i-getting-docker-error-c-compilation-of-rule-tensorflow-corekernel

https://github.com/tensorflow/tensorflow/issues/20677

https://blog.csdn.net/lanbeiliu/article/details/90293642 内存不足

http://m.sohu.com/a/304842717_99979179 从CPU指令集优化

好像要编译对aws s3的支持吧,我之前编的时候觉得用不到s3,就在configure阶段就关掉了。不过你可以试一下build命令加上--config=noaws 选项

学适给的例子

bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2  --copt=-mfpmath=both -k //tensorflow/tools/pip_package:build_pip_package

noaws不知道什么意思
bazel build --config=noaws --config=opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package

错误信息如下

INFO: From Compiling external/snappy/snappy-sinksource.cc[for host]:

cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++

INFO: From Compiling external/snappy/snappy-stubs-internal.cc[for host]:

cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++

INFO: From Compiling external/snappy/snappy.cc[for host]:

cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++

ERROR: /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/external/aws/BUILD.bazel:12:1: C++ compilation of rule '@aws//:aws' failed (Exit 4)

gcc: internal compiler error: Killed (program cc1plus)

Please submit a full bug report,

with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.

Target //tensorflow/tools/pip_package:build_pip_package failed to build

Use --verbose_failures to see the command lines of failed build steps.

INFO: Elapsed time: 3481.048s, Critical Path: 2901.73s

INFO: 2630 processes: 2630 local.

相关文章

网友评论

      本文标题:docker里面用bazel编译tensorflow遇到的问题

      本文链接:https://www.haomeiwen.com/subject/ldmfkctx.html