Skip to content

Commit

Permalink
Issue #20: Use latest mpich version 4.1.2 for RISC-V compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Oct 28, 2023
1 parent e187d99 commit 9e84fd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions example.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 9e84fd9

Please sign in to comment.