From 497edd300a735344ec1190cb61e6d6bbc9fb4c62 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sun, 20 Nov 2022 22:05:57 -0600 Subject: [PATCH] Fixes #6: Use ansible_processor_nproc for MPI compile CPU core count. --- main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.yml b/main.yml index 54950ab..5ad0c2a 100644 --- a/main.yml +++ b/main.yml @@ -54,7 +54,7 @@ creates: "{{ hpl_root }}/tmp/COMPILE_MPI_COMPLETE" loop: - ./configure --with-device=ch3:sock FFLAGS=-fallow-argument-mismatch - - make -j4 + - "make -j{{ ansible_processor_nproc }}" - name: Install MPI. ansible.builtin.command: make install