Skip to content

Commit 245df4a

Browse files
committed
Don't unarchive HPL during fatimage + cleaner copy task
1 parent 370eea9 commit 245df4a

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@
55
path: "{{ hpctests_rootdir }}/hpl"
66
state: directory
77

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 }}/"
8+
- name: Unarchive HPL sources from /opt/hpl
9+
unarchive:
10+
src: "/opt/hpl/hpl-{{ hpctests_hpl_version }}.tar.gz"
11+
dest: "{{ hpctests_rootdir }}/hpl"
1212
remote_src: yes
1313
owner: "{{ hpctests_user }}"
1414
group: "{{ hpctests_group }}"
1515
mode: '0755'
16+
keep_newer: yes
1617

17-
- name: Copy BLAS make file
18-
command:
19-
cmd: "cp setup/Make.Linux_PII_CBLAS {{ hpctests_hpl_srcdir }}/Make.{{ hpctests_hpl_arch }}"
20-
chdir: "{{ hpctests_hpl_srcdir }}"
21-
creates: "{{ hpctests_hpl_srcdir }}/Make.{{ hpctests_hpl_arch }}"
18+
- name: Copy BLAS makefile
19+
copy:
20+
src: "{{ hpctests_hpl_srcdir }}/setup/Make.Linux_PII_CBLAS"
21+
dest: "{{ hpctests_hpl_srcdir }}/Make.{{ hpctests_hpl_arch }}"
22+
remote_src: yes
2223

2324
- name: Modify make file
2425
replace:

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
group: root
99
mode: '0755'
1010

11-
- name: Download HPL sources
12-
unarchive:
13-
src: "http://www.netlib.org/benchmark/hpl/hpl-{{ hpctests_hpl_version }}.tar.gz"
14-
remote_src: yes
15-
dest: "/opt/hpl"
16-
keep_newer: yes
11+
- name: Download HPL tarball
12+
get_url:
13+
url: "http://www.netlib.org/benchmark/hpl/hpl-{{ hpctests_hpl_version }}.tar.gz"
14+
dest: "/opt/hpl/hpl-{{ hpctests_hpl_version }}.tar.gz"
1715
owner: root
1816
group: root
19-
mode: '0755'
17+
mode: '0644'

0 commit comments

Comments
 (0)