Skip to content

Commit 2bb9cd2

Browse files
committed
make plotting pingpong optional (for CaaS)
1 parent 797566e commit 2bb9cd2

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

ansible/roles/hpctests/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Role Variables
3535
The following variables should not generally be changed:
3636
- `hpctests_pingmatrix_modules`: Optional. List of modules to load for pingmatrix test. Defaults are suitable for OpenHPC 2.x cluster using the required packages.
3737
- `hpctests_pingpong_modules`: As above but for pingpong test.
38+
- `hpctests_pingpong_plot`: Whether to plot pingpong results. Default `yes`.
3839
- `hpctests_hpl_modules`: As above but for hpl tests.
3940
- `hpctests_hpl_version`: Version of HPL
4041

ansible/roles/hpctests/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
hpctests_rootdir:
33
hpctests_pingmatrix_modules: [gnu9 openmpi4]
44
hpctests_pingpong_modules: [gnu9 openmpi4 imb]
5+
hpctests_pingpong_plot: yes
56
hpctests_hpl_modules: [gnu9 openmpi4 openblas]
67
hpctests_outdir: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/hpctests"
78
hpctests_ucx_net_devices: all

ansible/roles/hpctests/tasks/pingpong.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
creates: "{{ _pingpong_local_output | dirname }}/latency.png"
5353
register: _pingpong_plot
5454
delegate_to: localhost
55+
when: hpctests_pingpong_plot | bool
5556

5657
- debug:
5758
msg: |
@@ -61,5 +62,7 @@
6162
Zero-size msg latency: {{ hpctests_pingpong_out['columns']['latency'][0] }} us
6263
Max bandwidth: {{ hpctests_pingpong_out['columns']['bandwidth'] | max }} Mbytes/s ({{ (hpctests_pingpong_out['columns']['bandwidth'] | max) / 125.0 }} Gbit/s)
6364
65+
{% if hpctests_pingpong_plot %}
6466
See plot on localhost:
6567
{{ _pingpong_plot.stdout }}
68+
{% endif %}

0 commit comments

Comments
 (0)