diff --git a/example.config.yml b/example.config.yml index 0be663d..ad5be86 100644 --- a/example.config.yml +++ b/example.config.yml @@ -2,6 +2,8 @@ # Working directory where HPL and associated applications will be compiled. hpl_root: /opt/top500 +mpich_version: "4.1.2" + # Linear algebra library options. linear_algebra_library: blis # 'atlas', 'openblas', or 'blis' linear_algebra_blis_version: master # only used for blis diff --git a/main.yml b/main.yml index 67b74f5..faea15a 100644 --- a/main.yml +++ b/main.yml @@ -35,15 +35,15 @@ - name: Download MPI (Message Passing Interface). ansible.builtin.unarchive: - src: https://www.mpich.org/static/downloads/3.4.2/mpich-3.4.2.tar.gz + src: https://www.mpich.org/static/downloads/{{ mpich_version }}/mpich-{{ mpich_version }}.tar.gz dest: "{{ hpl_root }}/tmp" remote_src: true - creates: "{{ hpl_root }}/tmp/mpich-3.4.2/README" + creates: "{{ hpl_root }}/tmp/mpich-{{ mpich_version }}/README" - name: Build MPI (takes a while). ansible.builtin.command: "{{ item }}" args: - chdir: "{{ hpl_root }}/tmp/mpich-3.4.2" + chdir: "{{ hpl_root }}/tmp/mpich-{{ mpich_version }}" creates: "{{ hpl_root }}/tmp/COMPILE_MPI_COMPLETE" loop: - ./configure --with-device=ch3:sock FFLAGS=-fallow-argument-mismatch @@ -52,7 +52,7 @@ - name: Install MPI. ansible.builtin.command: make install args: - chdir: "{{ hpl_root }}/tmp/mpich-3.4.2" + chdir: "{{ hpl_root }}/tmp/mpich-{{ mpich_version }}" creates: "{{ hpl_root }}/tmp/COMPILE_MPI_COMPLETE" become: true