Skip to content

Commit

Permalink
Update hpctests to obey UCX_NET_DEVICES when RoCE devices present (#421)
Browse files Browse the repository at this point in the history
* Turn off higher priority MPI net devices

* Update pingmatrix.sh.j2

* Update pingmatrix.sh.j2

* Update pingpong.sh.j2

* Replace j2 comments with bash

* Update pingpong.sh.j2

---------

Co-authored-by: Steve Brasier <[email protected]>
  • Loading branch information
bertiethorpe and sjpb authored Aug 7, 2024
1 parent 81f7de6 commit bd2de50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ansible/roles/hpctests/templates/pingmatrix.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ echo UCX_NET_DEVICES: $UCX_NET_DEVICES
module load {{ hpctests_pingmatrix_modules | join(' ' ) }}

mpicc -o nxnlatbw mpi_nxnlatbw.c
mpirun nxnlatbw

# mpirun flags force using UCX TCP transports, overriding higher
# priority of OpenMPI btl/openib component, which is also using RDMA
# https://wiki.stackhpc.com/s/985dae84-7bd8-4924-94b7-9629a7827100
mpirun -mca pml_ucx_tls any -mca pml_ucx_devices any nxnlatbw
6 changes: 5 additions & 1 deletion ansible/roles/hpctests/templates/pingpong.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ echo UCX_NET_DEVICES: $UCX_NET_DEVICES
module load {{ hpctests_pingpong_modules | join(' ' ) }}

#srun --mpi=pmi2 IMB-MPI1 pingpong # doesn't work in ohpc v2.1
mpirun IMB-MPI1 pingpong

# mpirun flags force using UCX TCP transports, overriding higher
# priority of OpenMPI btl/openib component, which is also using RDMA
# https://wiki.stackhpc.com/s/985dae84-7bd8-4924-94b7-9629a7827100
mpirun -mca pml_ucx_tls any -mca pml_ucx_devices any IMB-MPI1 pingpong

0 comments on commit bd2de50

Please sign in to comment.