tensorflow: limit CPUs used for fuzztest fuzzers (#9411)

Reduce the mount of CPUs for building Fuzztest fuzzers as this is
causing the build to exhaust resources:
https://oss-fuzz-build-logs.storage.googleapis.com/log-1f5769dc-3170-4205-bcda-17cd48c52985.txt

```
...
/src/tensorflow/tensorflow/core/kernels/BUILD:1038:18: Compiling tensorflow/core/kernels/pad_op.cc failed: (Killed): clang-15 failed: error executing command 
Step #12 - "compile-libfuzzer-undefined-x86_64":   (cd /root/.cache/bazel/_bazel_root/1c025c2968c1aa16bac5eca67aaf21d1/sandbox/linux-sandbox/3063/execroot/org_tensorflow && \
```
This commit is contained in:
DavidKorczynski 2023-01-12 16:39:53 +00:00 committed by GitHub
parent 1367a718c3
commit d1c03f00f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ then
echo " --per_file_copt=^.*external.*\.cc\$@-fsanitize-coverage=0,-fno-sanitize=all"
)"
export FUZZTEST_EXTRA_ARGS="${FUZZTEST_EXTRA_ARGS} ${DI}"
else
export FUZZTEST_EXTRA_ARGS="${FUZZTEST_EXTRA_ARGS} --local_ram_resources=HOST_RAM*1.0 --local_cpu_resources=HOST_CPUS*.5 --strip=never"
fi
compile_fuzztests.sh