diff --git a/Dockerfiles/linux-ubuntu22.04-x86_64_v2/Dockerfile b/Dockerfiles/linux-ubuntu22.04-x86_64_v2/Dockerfile index d566f12..a16cb2c 100644 --- a/Dockerfiles/linux-ubuntu22.04-x86_64_v2/Dockerfile +++ b/Dockerfiles/linux-ubuntu22.04-x86_64_v2/Dockerfile @@ -35,7 +35,7 @@ COPY Dockerfiles/linux-ubuntu22.04-x86_64_v2/compilers.yaml Dockerfiles/linux-ub RUN --mount=type=cache,target=/root/.spack/cache \ spack -e . concretize -f && \ spack -e . env depfile -o Makefile && \ - make -j && \ + make -j $(nproc) && \ spack -e . gc --yes-to-all # Remove Spack metadata, python cache and static libraries to save some bytes diff --git a/Dockerfiles/pcluster-amazonlinux-2/Dockerfile b/Dockerfiles/pcluster-amazonlinux-2/Dockerfile index e9481c2..b1b1052 100644 --- a/Dockerfiles/pcluster-amazonlinux-2/Dockerfile +++ b/Dockerfiles/pcluster-amazonlinux-2/Dockerfile @@ -77,7 +77,7 @@ RUN curl -sOL https://github.com/benmcollins/libjwt/archive/refs/tags/v${LIBJWT_ && cd libjwt-${LIBJWT_VERSION}/ \ && autoreconf --force --install \ && ./configure --prefix=/opt/libjwt \ - && make -j \ + && make -j $(nproc) \ && make install && make clean \ && cd .. \ && rm -rf v${LIBJWT_VERSION}.tar.gz libjwt-${LIBJWT_VERSION} @@ -87,7 +87,7 @@ RUN curl -sOL https://github.com/openpmix/openpmix/releases/download/v${PMIX_VER && cd pmix-${PMIX_VERSION} \ && ./autogen.pl \ && ./configure --prefix=/opt/pmix \ - && make -j \ + && make -j $(nproc) \ && make install && make clean \ && cd .. \ && rm -rf pmix-${PMIX_VERSION}.tar.gz pmix-${PMIX_VERSION} @@ -97,7 +97,7 @@ RUN curl -sOL https://github.com/SchedMD/slurm/archive/slurm-${SLURM_VERSION}.ta && tar xf slurm-${SLURM_VERSION}.tar.gz \ && cd slurm-slurm-${SLURM_VERSION}/ \ && ./configure --prefix=/opt/slurm --with-pmix=/opt/pmix --with-jwt=/opt/libjwt \ - && make -j \ + && make -j $(nproc) \ && make install && make install-contrib && make clean \ && cd .. \ && rm -rf slurm-${SLURM_VERSION}.tar.gz slurm-slurm-${SLURM_VERSION} diff --git a/Dockerfiles/tutorial-ubuntu-22.04/Dockerfile b/Dockerfiles/tutorial-ubuntu-22.04/Dockerfile index f8b63f7..e2e8914 100644 --- a/Dockerfiles/tutorial-ubuntu-22.04/Dockerfile +++ b/Dockerfiles/tutorial-ubuntu-22.04/Dockerfile @@ -34,7 +34,7 @@ COPY Dockerfiles/tutorial-ubuntu-22.04/compilers.yaml Dockerfiles/tutorial-ubunt RUN --mount=type=cache,target=/root/.spack/cache \ spack -e . concretize -f && \ spack -e . env depfile -o Makefile && \ - make -j && \ + make -j $(nproc) && \ spack -e . gc --yes-to-all # Remove Spack metadata, python cache and static libraries to save some bytes