bazel

Setting targetSdkVersion and compileSdkVersion for bazel, android tensorflow

让人想犯罪 __ 提交于 2021-02-16 21:07:21
问题 I need help in how to set the target and compile Sdk versions separately for bazel. I want to run tensorflow on the phone following this tutorial. After editing WORKSPACE for bazel as follows: android_sdk_repository( name = "androidsdk", api_level = 24, build_tools_version = "24.0.1", path = "/home/Android/Sdk", ) android_ndk_repository( name="androidndk", path="/home/Android/Sdk/ndk-bundle", api_level=21) I get PARSE ERROR on the phone upon apk installing: adb install -r bazel-bin/tensorflow

Setting targetSdkVersion and compileSdkVersion for bazel, android tensorflow

痴心易碎 提交于 2021-02-16 21:06:59
问题 I need help in how to set the target and compile Sdk versions separately for bazel. I want to run tensorflow on the phone following this tutorial. After editing WORKSPACE for bazel as follows: android_sdk_repository( name = "androidsdk", api_level = 24, build_tools_version = "24.0.1", path = "/home/Android/Sdk", ) android_ndk_repository( name="androidndk", path="/home/Android/Sdk/ndk-bundle", api_level=21) I get PARSE ERROR on the phone upon apk installing: adb install -r bazel-bin/tensorflow

Setting targetSdkVersion and compileSdkVersion for bazel, android tensorflow

99封情书 提交于 2021-02-16 21:06:54
问题 I need help in how to set the target and compile Sdk versions separately for bazel. I want to run tensorflow on the phone following this tutorial. After editing WORKSPACE for bazel as follows: android_sdk_repository( name = "androidsdk", api_level = 24, build_tools_version = "24.0.1", path = "/home/Android/Sdk", ) android_ndk_repository( name="androidndk", path="/home/Android/Sdk/ndk-bundle", api_level=21) I get PARSE ERROR on the phone upon apk installing: adb install -r bazel-bin/tensorflow

Setting targetSdkVersion and compileSdkVersion for bazel, android tensorflow

泄露秘密 提交于 2021-02-16 21:04:38
问题 I need help in how to set the target and compile Sdk versions separately for bazel. I want to run tensorflow on the phone following this tutorial. After editing WORKSPACE for bazel as follows: android_sdk_repository( name = "androidsdk", api_level = 24, build_tools_version = "24.0.1", path = "/home/Android/Sdk", ) android_ndk_repository( name="androidndk", path="/home/Android/Sdk/ndk-bundle", api_level=21) I get PARSE ERROR on the phone upon apk installing: adb install -r bazel-bin/tensorflow

Undefined reference to boost asio

大城市里の小女人 提交于 2021-02-11 12:47:34
问题 I am having issues building with opt mode with Bazel and boost . Here is my error. bazel-out/k8-opt/bin/src/_objs/wallet/message_store.o:message_store.cpp:function _GLOBAL__sub_I__ZN3mms13message_storeC2ESt10unique_ptrIN4epee9net_utils4http20abstract_http_clientESt14default_deleteIS5_EE: error: undefined reference to 'boost::asio::ssl::error::get_stream_category()' bazel-out/k8-opt/bin/src/_objs/wallet/wallet_rpc_payments.o:wallet_rpc_payments.cpp:function _GLOBAL__sub_I_

Undefined reference to boost asio

↘锁芯ラ 提交于 2021-02-11 12:46:47
问题 I am having issues building with opt mode with Bazel and boost . Here is my error. bazel-out/k8-opt/bin/src/_objs/wallet/message_store.o:message_store.cpp:function _GLOBAL__sub_I__ZN3mms13message_storeC2ESt10unique_ptrIN4epee9net_utils4http20abstract_http_clientESt14default_deleteIS5_EE: error: undefined reference to 'boost::asio::ssl::error::get_stream_category()' bazel-out/k8-opt/bin/src/_objs/wallet/wallet_rpc_payments.o:wallet_rpc_payments.cpp:function _GLOBAL__sub_I_

bazel简介(二)——从makefile向bazel转变(使用genrule)

南笙酒味 提交于 2021-02-11 04:48:49
0x01 背景 上篇中已经介绍了bazel的基本工作原理和相关的概念。这篇将继续介绍下,现有的makefile构建工程如何切换到bazel构建系统。 bazel提供了丰富的扩展方式,当然也支持从目前的makefile过渡到bazel构建。 再次说明下其特性: 多语言支持,并且支持扩展到任何语言的构建。 扩展DSL是starlyke语言,为Python的一个子集,容易上手。这一点是cmake和其他构建系统不具备的。 支持缓存。 支持分布式构建。 支持最小化构建。 在一个大型系统中,一个人可能只需要负责其中的一个小组件,这个组件可能又依赖其他组件。当这个组件需要更新测试时,只希望去构建这个组件依赖的组件和这个组件本身,其他不相关的可以不构建,这样可以使用构建过程更快捷。bazel就支持这种方式。 0x02 makefile的问题 上文中说过makefile在处理小规模软件时还不错,当规模增大时,makefile有以下问题。 各个组件之间的依赖难以管理。 makefile只支持将所有的源码放在一个目录下,然后由顶层的。 这个依赖关系只能是有经验的人知道,新人想最小化编译时,只能试错,发现有依赖未构建时,再去手动构建。 增量式构建难以控制。 这一点和第1点是相关的,因为依赖不能自动化构建,所以增量式构建也不具备。 构建速度不足,难以做缓存。 makefile本身不支持缓存

Tensorflow serving custom gpu op cannot find dependency when compiling

十年热恋 提交于 2021-02-10 22:18:09
问题 I fallowed the guides on making custom gpu op for tensorflow and could make shared lib. For tensorflow-serving I adapted required paths but I get error when building: ERROR: /home/g360/Documents/eduardss/serving/tensorflow_serving/custom_ops/CUSTOM_OP/BUILD:32:1: undeclared inclusion(s) in rule '//tensorflow_serving/custom_ops/CUSTOM_OP:CUSTOM_OP_ops_gpu': this rule is missing dependency declarations for the following files included by 'tensorflow_serving/custom_ops/CUSTOM_OP/cc/magic_op.cu

Tensorflow serving custom gpu op cannot find dependency when compiling

天大地大妈咪最大 提交于 2021-02-10 22:12:56
问题 I fallowed the guides on making custom gpu op for tensorflow and could make shared lib. For tensorflow-serving I adapted required paths but I get error when building: ERROR: /home/g360/Documents/eduardss/serving/tensorflow_serving/custom_ops/CUSTOM_OP/BUILD:32:1: undeclared inclusion(s) in rule '//tensorflow_serving/custom_ops/CUSTOM_OP:CUSTOM_OP_ops_gpu': this rule is missing dependency declarations for the following files included by 'tensorflow_serving/custom_ops/CUSTOM_OP/cc/magic_op.cu

make Bazel use python 3

不打扰是莪最后的温柔 提交于 2021-02-10 11:57:37
问题 I would like to run my py_test with python 3 in Bazel. py_library( name = "foo", srcs = ["foo.py"] ) py_test( name = "foo_test", srcs = glob(["foo_test.py",]), deps = [":foo"] ) py_runtime( name = "python-3.6.3", files = [], interpreter_path = "/usr/local/bin/python3", ) I was able to achieve this using command bazel test --python_top=//path/to/foo:python-3.6.3 foo_test However, I would like to import python3 to bazel sandbox with new_http_archive and provide the interpreter_path for the py