Skip to content

Commit 468d63a

Browse files
committed
Install MPI, and add MPI as a dependency as it is required by the tests.
1 parent 590a727 commit 468d63a

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

roles/nmag/tasks/compile_nmag.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,21 @@
2626
- name: Set executable permissions for everyone on files which are executable for user
2727
command: find {{ NMAG_INSTALL_PREFIX }}/{{ NMAG_EXTRACTED_DIR.stdout }} -perm /u+x -exec chmod go+x {} \;
2828
sudo: yes
29+
30+
# In order to use Nmag with MPI, a file must be present in all users' home
31+
# directories.
32+
33+
- name: Create mpd files for MPI execution.
34+
lineinfile:
35+
create: yes
36+
dest: "{{ item.dest }}"
37+
line: "MPD_SECRETWORD=generic-secr3t"
38+
mode: 0600
39+
regexp: "MPD_SECRETWORD=generic-secr3t"
40+
owner: "{{ item.owner }}"
41+
state: present
42+
sudo: yes
43+
with_items:
44+
- { dest: /etc/mpd.conf, owner: root }
45+
- { dest: /home/vagrant/.mpd.conf, owner: vagrant }
46+
- { dest: /etc/skel/.mpd.conf, owner: root }

roles/nmag/tasks/install_required_debian_packages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
with_items:
88
- dpkg-dev
99
- g++
10+
- gawk
1011
- libblas-dev
12+
- liblapack-dev
1113
- libreadline-dev
12-
- make
1314
- m4
14-
- gawk
15-
- zlib1g-dev
15+
- make
16+
- mpich
1617
- readline-common
17-
- liblapack-dev
18+
- zlib1g-dev
1819
sudo: yes

0 commit comments

Comments
 (0)