From 579aa601f70c5eea487e946a3f41502a0af078fd Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Fri, 1 Jul 2022 11:27:46 -0600 Subject: [PATCH] Speed up compilation of dev-build --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d0949564d5..83b5db2c4fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,7 +140,7 @@ before_script: - spack env create --without-view -d ${TMPDIR}/spack_env - spack env activate -d ${TMPDIR}/spack_env - spack spec -I ${SINGULARITY_EOS_SPACK_SPEC} - - spack dev-build -q ${SINGULARITY_EOS_SPACK_SPEC} || ( cat spack-build-out.txt && exit 1 ) + - spack dev-build -j $(nproc) -q ${SINGULARITY_EOS_SPACK_SPEC} || ( cat spack-build-out.txt && exit 1 ) - export SINGULARITY_EOS_CMD="spack install --show-log-on-error --no-checksum --yes-to-all ${SINGULARITY_EOS_SPACK_SPEC}" - ( echo "$SINGULARITY_EOS_CMD" && $SINGULARITY_EOS_CMD ) - source ${TMPDIR}/spack/share/spack/setup-env.sh @@ -177,7 +177,7 @@ before_script: -DSINGULARITY_USE_KOKKOSKERNELS=${SINGULARITY_USE_CUDA:-OFF} \ -DSINGULARITY_USE_FORTRAN=${SINGULARITY_USE_FORTRAN:-OFF} \ .. - - make -j || make VERBOSE=1 + - make -j $(nproc) || make VERBOSE=1 - | if [[ ${CI_JOB_NAME} =~ "install" ]]; then