From e833c1d3cf7341b70dcdb73ff98235ace66eb74f Mon Sep 17 00:00:00 2001 From: meisel <tobias.meisel@ufz.de> Date: Wed, 8 Mar 2023 16:40:37 +0100 Subject: [PATCH] [juwels] Limit CMake processes --- scripts/env/juwels/petsc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/env/juwels/petsc.sh b/scripts/env/juwels/petsc.sh index 9b9738e862d..5bff9e3d872 100644 --- a/scripts/env/juwels/petsc.sh +++ b/scripts/env/juwels/petsc.sh @@ -13,5 +13,9 @@ module load ScaLAPACK/2.2.0-fb export CC=mpicc export CXX=mpic++ +# CMake may spawn as many processes as available. This may overload the filesystem on JUWELS. +# It is therefore necessary to limit the number of processes with CMAKE_BUILD_PARALLEL_LEVEL. +export CMAKE_BUILD_PARALLEL_LEVEL=6 + echo "Example config: cmake --preset release-petsc" echo "Example run: srun -n 3 -t 2 -A ogs6hpc4 bin/ogs ../ogs/Tests/Data/EllipticPETSc/cube_1e3_neumann.prj" -- GitLab