aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2019-04-25 00:29:22 +0800
committerHongxu Jia <hongxu.jia@windriver.com>2019-04-25 00:29:22 +0800
commit383a849e511121eddbaa1f26dd5665cc87dc6347 (patch)
tree5b5b6cef484178d175fc266964a0c9943fcda588
parent1631906049bca322ec27fdf082ec0b89424f8a4e (diff)
downloadmeta-tensorflow-383a849e511121eddbaa1f26dd5665cc87dc6347.tar.gz
meta-tensorflow-383a849e511121eddbaa1f26dd5665cc87dc6347.tar.bz2
meta-tensorflow-383a849e511121eddbaa1f26dd5665cc87dc6347.zip
Revert "classes/bazel.bbclass: allocate cpu to jobs conditionally"
Previously allocation did not trigger any issue/failure, so revert it. This reverts commit fc2eadcda69cdd31b2b8b6ee37f5d000f965e20c. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--classes/bazel.bbclass7
1 files changed, 1 insertions, 6 deletions
diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass
index e8f5882..5d3a00a 100644
--- a/classes/bazel.bbclass
+++ b/classes/bazel.bbclass
@@ -63,17 +63,12 @@ def bazel_get_flags(d):
return flags
-def jobs_number():
- if oe.utils.cpu_count() < 16:
- return 1
- return int(oe.utils.cpu_count()/2)
-
TS_DL_DIR ??= "${DL_DIR}"
bazel_do_configure () {
cat > "${S}/bazelrc" <<-EOF
build --verbose_failures
build --spawn_strategy=standalone --genrule_strategy=standalone
-build --jobs=${@jobs_number()}
+build --jobs=${@oe.utils.cpu_count()}
test --verbose_failures --verbose_test_summary
test --spawn_strategy=standalone --genrule_strategy=standalone