From 61dac9296d7899ebbdaf4feffff3f7e9f995e4d0 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Mon, 17 Jan 2022 21:26:42 +0000 Subject: [PATCH] simd: force use of a single CPU during compilation (#7143) * simd: force use of a single CPU during compilation * disable memory sanitizer --- projects/simd/build.sh | 4 +++- projects/simd/project.yaml | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/simd/build.sh b/projects/simd/build.sh index 8f0c3e76e5c5..391509915aca 100755 --- a/projects/simd/build.sh +++ b/projects/simd/build.sh @@ -19,7 +19,9 @@ mkdir build && cd build cmake ../prj/cmake \ -DCMAKE_BUILD_TYPE="Release" -make -j$(nproc) + +# Force simd to only use a single core, as otherwise memory will be exhausted +make -j1 $CXX $CXXFLAGS -I/src/Simd/src -O3 -DNDEBUG -fPIC \ -c $SRC/simd_load_fuzzer.cpp -o simd_load_fuzzer.o \ diff --git a/projects/simd/project.yaml b/projects/simd/project.yaml index 07eaebd3cc8d..5ab9beec3231 100644 --- a/projects/simd/project.yaml +++ b/projects/simd/project.yaml @@ -6,5 +6,4 @@ auto_ccs: sanitizers: - address - undefined - - memory main_repo: 'https://github.com/ermig1979/Simd'