Commit 844db3fe authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[feature] add power-slurm roles

Includes msr-safe and libmsr, based on comments from @tpatki.
parent 26e42039
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
- { role: aml, ci: true, install: false} - { role: aml, ci: true, install: false}
- { role: nrm, ci: true, install: false} - { role: nrm, ci: true, install: false}
- { role: umap, ci: true, install: false} - { role: umap, ci: true, install: false}
- { role: power-slurm, ci: true, install: false}
- { role: ci-runner, become: yes } - { role: ci-runner, become: yes }
---
dependencies:
- { role: msr-safe }
- name: fetch libmsr repository
git:
repo: https://github.com/LLNL/libmsr.git
dest: /argo/libmsr.git
update: yes
- name: checkout libmsr skylake branch
shell: git checkout origin/patki-skylake-0655-fix
args:
chdir: /argo/libmsr.git
- name: compile libmsr
shell: cmake3 -DCMAKE_INSTALL_PREFIX=/usr && make && make install
args:
chdir: /argo/libmsr.git
- { include: install.yaml, become: yes, when: install }
- name: add msr-safe dependencies
package:
name: "{{ item }}"
state: present
with_items:
- kernel-headers
- name: fetch msr-safe repository
git:
repo: https://github.com/LLNL/msr-safe.git
dest: /argo/msr-safe.git
update: yes
- name: compile msr-safe
shell: make
args:
chdir: /argo/msr-safe.git
- name: reload msr-safe
shell: rmmod msr-safe.ko || insmod msr-safe.ko
args:
chdir: /argo/msr-safe.git
- { include: dependencies.yaml, become: yes }
- { include: install.yaml, become: yes, when: install }
---
dependencies:
- { role: msr-safe }
- { role: libmsr }
- name: add power-slurm CI dependencies
package:
name: "{{ item }}"
state: present
with_items:
- dejagnu
- name: add power-slurm dependencies
package:
name: "{{ item }}"
state: present
with_items:
- munge-devel
- gtk+-devel
- gtk2-devel
- glibc
- name: fetch power-slurm repository
git:
repo: https://github.com/tpatki/power-slurm.git
dest: /argo/power-slurm.git
update: yes
- name: compile power-slurm
shell: ./autogen.sh && ./configure --prefix=/usr && make && make install
args:
chdir: /argo/power-slurm.git
- { include: dependencies.yaml, become: yes }
- { include: install.yaml, become: yes, when: install }
- { include: ci.yaml, become: yes, when: ci }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment