From 2e0402ca1fbedfe9bea21762b885ec3c6ea464c8 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sun, 15 Jan 2023 12:24:21 +0000 Subject: [PATCH] tensorflow: reduce cpu usage further (#9423) The build on the bots continue to exhaust memory usage as far as I can tell: https://oss-fuzz-build-logs.storage.googleapis.com/log-6f2d0692-4002-45b2-a1f4-01471de13add.txt However, the build is getting further now than before. --- projects/tensorflow/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/tensorflow/build.sh b/projects/tensorflow/build.sh index 79d9d74b4..8c30235c0 100755 --- a/projects/tensorflow/build.sh +++ b/projects/tensorflow/build.sh @@ -143,7 +143,7 @@ TARGETS_TO_BUILD="//tensorflow/core/kernels/fuzzing:all" # The bazel build will exhaust the resources of the OSS-Fuzz build bot unless # we limit the resources it uses. The RAM will be exhausted. Therefore, # limit the resources to ensure the build passes. -RESOURCE_LIMITATIONS="--local_ram_resources=HOST_RAM*1.0 --local_cpu_resources=HOST_CPUS*.5 --strip=never" +RESOURCE_LIMITATIONS="--local_ram_resources=HOST_RAM*1.0 --local_cpu_resources=HOST_CPUS*.2 --strip=never" bazel build \ --spawn_strategy=sandboxed \