From b03988836e406b3c369167d41fd7bbace457d522 Mon Sep 17 00:00:00 2001
From: damien <damien.leong@monash.edu>
Date: Thu, 21 Mar 2019 09:45:04 +1100
Subject: [PATCH] Add libpmi.so

Former-commit-id: 08a603e5d6e7f6c460454f6dad3d90c3370421df
---
 roles/slurm-common/tasks/installSlurmFromSource.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/roles/slurm-common/tasks/installSlurmFromSource.yml b/roles/slurm-common/tasks/installSlurmFromSource.yml
index 2e89dc98..8785c369 100644
--- a/roles/slurm-common/tasks/installSlurmFromSource.yml
+++ b/roles/slurm-common/tasks/installSlurmFromSource.yml
@@ -45,6 +45,19 @@
     creates: "{{ slurm_dir }}/bin/srun"
   when: force_slurm_recompile is defined or not stat_srun.stat.exists
 
+- name: build pmi
+  command: make
+  args:
+    chdir: /tmp/slurm-{{ slurm_version }}/contribs/pmi
+  when: force_slurm_recompile is defined or not stat_srun.stat.exists
+
+- name: install pmi
+  shell: make install
+  sudo: true
+  args:
+    chdir: /tmp/slurm-{{ slurm_version }}/contribs/pmi
+  when: force_slurm_recompile is defined or not stat_srun.stat.exists
+
 - name: build pam_slurm
   command: make
   args:
-- 
GitLab