Skip to content

Commit bc2f2b3

Browse files
committed
Move HPL source download to fatimage build
1 parent b62a4c5 commit bc2f2b3

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

ansible/fatimage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@
190190
tasks_from: install.yml
191191
when: "'alertmanager' in group_names"
192192

193+
- name: Download HPL source
194+
inlcude_role:
195+
name: hpctests
196+
tasks_from: source-hpl.yml
197+
193198
- hosts: prometheus
194199
become: yes
195200
gather_facts: yes

ansible/roles/hpctests/tasks/build-hpl.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
path: "{{ hpctests_rootdir }}/hpl"
66
state: directory
77

8-
- name: Download HPL sources
9-
unarchive:
10-
src: "http://www.netlib.org/benchmark/hpl/hpl-{{ hpctests_hpl_version }}.tar.gz"
8+
- name: Copy HPL sources from /opt/hpl
9+
copy:
10+
src: "/opt/hpl/hpl-{{ hpctests_hpl_version }}/"
11+
dest: "{{ hpctests_rootdir }}/hpl/hpl-{{ hpctests_hpl_version }}/"
1112
remote_src: yes
12-
dest: "{{ hpctests_rootdir }}/hpl"
13-
keep_newer: yes
13+
owner: "{{ hpctests_user }}"
14+
group: "{{ hpctests_group }}"
15+
mode: '0755'
1416

1517
- name: Copy BLAS make file
1618
command:
17-
cmd: "cp setup/Make.Linux_PII_CBLAS Make.{{ hpctests_hpl_arch }}"
19+
cmd: "cp setup/Make.Linux_PII_CBLAS {{ hpctests_hpl_srcdir }}/Make.{{ hpctests_hpl_arch }}"
1820
chdir: "{{ hpctests_hpl_srcdir }}"
1921
creates: "{{ hpctests_hpl_srcdir }}/Make.{{ hpctests_hpl_arch }}"
2022

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
3+
- name: Make directory
4+
file:
5+
path: "/opt/hpl"
6+
state: directory
7+
mode: '0755'
8+
9+
- name: Download HPL sources
10+
unarchive:
11+
src: "http://www.netlib.org/benchmark/hpl/hpl-{{ hpctests_hpl_version }}.tar.gz"
12+
remote_src: yes
13+
dest: "/opt/hpl"
14+
keep_newer: yes
15+
mode: '0755'

0 commit comments

Comments
 (0)