aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-07-07tensorflow: fix GCC 10.1 compile errortensorflow-v1.13Hongxu Jia
Since python3-numpy: update 1.18.5 -> 1.19.0, there is a GCC 10.1 compile error. Backport a patch from upstream to fix it [1] [1] https://github.com/tensorflow/tensorflow/pull/40654 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-05-26layer.conf: Add gatesgarth to compatible release seriesHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-21classes/bazel.bbclass: limit the number of CPU cores Bazel usesHongxu Jia
There is gcc Killed failure: ... |tmp-glibc/work/corei7-32-wrsmllib32-linux/lib32-tensorflow/ 1.13.0-r0/git/tensorflow/core/kernels/BUILD:3158:1: C++ compilation of rule '//tensorflow/core/kernels:cwise_op' failed (Killed): gcc failed: error executing command ... From Bazel User Manual --local_resources availableRAM,availableCPU,availableIO This option, which takes three comma-separated floating point arguments, specifies the amount of local resources that Bazel can take into consideration when scheduling build and test activities. Option expects amount of available RAM (in MB), number of CPU cores (with 1.0 representing single full core) and workstation I/O capability (with 1.0 representing average workstation). [1] According to [2][3], explicitly set the amount of local host RAM 4096 MB available to Bazel, the number of local CPU 4 cores available to Bazel, the number of jobs is 4 which should be executed concurrently. Refer: [1] https://stackoverflow.com/questions/34756370/is-there-a-way-to-limit-the-number-of-cpu-cores-bazel-uses [2] https://github.com/tensorflow/tensorflow/issues/7723 [3] https://github.com/tensorflow/tensorflow/issues/24318 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-13tensorboard/tensorflow: add runtime depends python3-coreHongxu Jia
The python3-core provides /usr/bin/python3 which required by python3 scripts of tensorboard/tensorflow Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-13tensorflow: improve shebang replacementHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-10tensorflow: fix python3 script contains build pathHongxu Jia
The python3 script contains build path: ... '''exec' tmp-glibc/work/corei7-64-wrs-linux/tensorflow/1.13.0-r0/ recipe-sysroot-native/usr/bin/nativepython3 "$0" "$@" ... Improve sed operation to match nativepython3 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-10classes/bazel.bbclass: fix cannot connect to bazel serverHongxu Jia
If [batch mode is] set, Bazel will be run as just a client process without a server, instead of in the standard client/server mode. [1] It is not necessary to shutdown a bazel server in batch mode. [1] https://docs.bazel.build/versions/master/user-manual.html Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow/tensorflow-native: add tensorflow.incHongxu Jia
Move the duplicated part of tensorflow and tensorflow-native to tensorflow.inc Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow: drop 0001-fix-gcc-internal-compile-error-on-qemuarm64.patchHongxu Jia
Since Yocto has gcc9, the ice fix is not necessary, drop it Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08classes/bazel.bbclass: support to override bazel jobsHongxu Jia
Support to override bazel jobs, then user could set it in local.conf according to the host performance Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow: workaround ice failure while building from source with host gcc ↵Hongxu Jia
7.3.1 Previously, we workaround tensorflow-native ice failure while building from source with host gcc 7.3.1, and tensorflow build requires the same fix since bazel cross compiling will do the native build at the same time. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08classes/unsupportarch.bbclass: skip libn32 on qemumips64Hongxu Jia
Do not support libn32-tensorflow on qemumips64, it introduces many build failures, we do not plan to maintain them. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow/tensorboard: fix build failure on opensuse151_64Hongxu Jia
On opensuse151_64, the gcc lib include dir is /usr/lib64/gcc/ rather than /usr/lib/gcc/, which caused failure ... |tensorflow/1.13.0-r0/bazel/output_base/external/nasm/BUILD.bazel:8:1: undeclared inclusion(s) in rule '@nasm//:nasm': |this rule is missing dependency declarations for the following files included by 'external/nasm/x86/regs.c': | '/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h' | '/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/syslimits.h' | '/usr/lib64/gcc/x86_64-suse-linux/7/include/stddef.h' | '/usr/lib64/gcc/x86_64-suse-linux/7/include/stdarg.h' ... Add /usr/lib64/gcc/ to cxx_builtin_include_directory Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08add bbclass unsupportarch to skip all involved recipesHongxu Jia
Tensorflow does not work on some arch, add bbclass to skip all involved recipes. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08classes/bazel.bbclass: add -Wl,-latomic back for target buildHongxu Jia
Previously we removed -Wl,-latomic to fix native build failure, but some arch's gcc (such as qemumips) still requires this link option. Then add -Wl,-latomic back for target build only Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow-native: workaround ice failure while building from source with ↵Hongxu Jia
gcc 7.3.1 The root cause is gcc ice issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89752 But we could not patch on native gcc,so try to workaround, Refer: https://github.com/tensorflow/tensorflow/issues/25323 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel.bbclass/bazel-native: disable ccache to workaround build failureHongxu Jia
While enabling ccache, build bazel-native failed: ... |Cannot find gcc or CC (ccache gcc); either correct your path or set the CC environment variable ... So disable ccache to workaround the failure. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08drop meta-python2 layerHongxu Jia
Since convert python2 to python3, do not need to depend on meta-python2 Revert "layer.conf: depend on meta-python2" This reverts commit af3f5917ebd83754b69b2b7f02af0718b7a6950b. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: remove hardcoded /bin and /usr/bin from PATHHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08classes/bazel.bbclass: set python3 as Python interpreter of bazelHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: convert python2 to python3Hongxu Jia
Drop python2, use python3 to build bazel Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08classes/bazel.bbclass: drop linkopt of -latomicHongxu Jia
Since Yocto has upgraded gcc to 9, it does not need to explicitly link to libatomic.so to avoid failure of libatomic.so missing. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: fix unzip: command not foundHongxu Jia
If host does not provide unzip, build bazel will fail even though Yocto native sysroot does have unzip. The reason is var-PATH was not passed to bazel build in some cases. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow-for-poets: use SRC_URI to download tarballHongxu Jia
The build of tensorflow-for-poets will download model tarball from internet, add it to SRC_URI to follow Yocto download mirror. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow/tensorflow-native: Rename the grpc versions to avoid naming conflictsHongxu Jia
Backport patch to fix grpc conflicts issue Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: fix compile failure on ubuntu1904_64Hongxu Jia
glibc 2.30 (ubuntu1904_64) will declare its own gettid; see https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92. Rename the grpc versions to avoid naming conflicts Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08tensorflow: fix logger issue on python 3.8Chen Qi
We met the following error with python 3.8. TypeError: _logger_find_caller() takes from 0 to 1 positional arguments but 2 were given Backport a patch to fix this issue. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2020-04-08tensorflow: fix compilation errorChen Qi
Fix the following compliation error. error: cannot convert 'std::nullptr_t' to 'Py_ssize_t {aka long int}' in initialization This patch references: https://github.com/tensorflow/tensorflow/issues/34197 Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2020-04-08layer.conf: depend on meta-python2Chen Qi
bazel-native needs python2-native, so depend on meta-python2. Also update the README file. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2020-04-08bazel-native: inherit pythonnative to fix do_compile errorChen Qi
The compilation process needs python (python2) to be there, so fix it by making bazel-native inherit pythonnative. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2020-01-07recognize_face.py: fix 'Namespace' object has no attribute 'save'Hongxu Jia
The issue was caused by commit [bad2757 meta-demo/conf/layer.conf: do not support to save avi video], clean it. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-01-06tensorflow: remove duplicated libtensorflow_framework.soHongxu Jia
... |ERROR: tensorflow-1.13.0-r0 do_package: tensorflow: Multiple shlib providers for libtensorflow_framework.so: tensorflow, tensorflow (used by files: tmp-glibc/work/core2-64-wrs-linux/tensorflow/1.13.0-r0/packa ges-split/tensorflow/usr/lib64/python3.7/site-packages/tensorflow/contrib/ image/python/ops/_distort_image_ops.so) ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-01-06fix file-rdeps QA issueHongxu Jia
... | requires /usr/bin/python3, but no providers found in RDEPENDS_tensorflow-for-poets? [file-rdeps] ... Add python3-core to RDEPENDS Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-01-06layer.conf: Add zeus to compatible release seriesHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-01-06meta-demo/conf/layer,conf: Add zeus to compatible release seriesHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-01-06MAINTAINERS.md: add maintainer Chen QiChen Qi
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2020-01-06MAINTAINERS.md: update mailHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-24MAINTAINERS.md: github is availableHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-23tweak location of binary bazelHongxu Jia
Move binary bazel from ${S} to ${WORKDIR}/bazel Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-23tensorflow/tensorflow-native: fix compile grpc with glibc 2.30 failedHongxu Jia
Since Define gettid() only for glibc < 2.30, glibc 2.30 has added this API, so let us use that when possible Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-12meta-demo: collect_face/recognize_face uses new directory name "opencv4" ↵Hongxu Jia
instead of "OpenCV" Since commit [e701e2d5c opencv: 3.4.5 -> 4.1.0] applied in meta-oe, it updates FILES_* to capture new paths which uses new directory name "opencv4" instead of "OpenCV" Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-12meta-demo: Add WR copyright notice with MIT license notice to scriptsHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09README: drop personal github mirrorHongxu Jia
Drop https://github.com/hongxu-jia/meta-tensorflow, and replace with https://github.com/Wind-River/meta-tensorflow (TODO) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09meta-demo/conf/layer.conf: do not support to save avi videoHongxu Jia
Remove commercial from DISTRO_FEATURES, thus libav(ffmpeg) will not support avi media codec. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09README.md: minor tweakingHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09README.md: minor format tweakingHongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09README: Rename demo 1 with `Facial recognition'Hongxu Jia
`TensorFlow for poets 2' is weird and not clear, rename to `Facial recognition' Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09update and format README.mdHongxu Jia
- Overview - Prerequisite (layer dependences) - Quick start - Project License - Legal Notices Disclaimer of support (if product based on Wind River Linux) - Make demo examples more prominent in the top-level README so people can find it Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09rename README -> README.mdHongxu Jia
The markdown formatting to make it easier for new users to read Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09add TODOHongxu Jia
- Move future plan to from README to TODO - The offline build has already supported, remove it from future plan Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>