- 什么是bazel
- https://docs.bazel.build/versions/master/bazel-overview.html
- 使用 bazel 构建 c 工程
- https://github.com/bazelbuild/examples/tree/master/cpp-tutorial
- https://docs.bazel.build/versions/master/tutorial/cpp.html
- https://docs.bazel.build/versions/master/bazel-and-cpp.html
- bazel 函数描述:
- https://docs.bazel.build/versions/master/be/overview.html
- 使用bazel 构建tensorflow:
- https://github.com/tensorflow/tensorflow
- https://github.com/tensorflow/custom-op
- https://www.tensorflow.org/install/source (官方网站编译教程,有较为详细的编译步骤)
tensorflow bazel 编译命令: (编译cpu支持的版本,限制编译的内存为2GB, 并兼容旧版本的ABI)
- bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package --local_ram_resources=2048 --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"
保持更新,更多内容请关注cnblogs.com/xuyaowen;