Skip to content

Commit

Permalink
OpenMPI: Use BTL vader instead of sm on OpenMPI 3+
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Sep 16, 2020
1 parent 75e7b2c commit 042e8f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ break
# it's unlikely there's Infiniband on cloud-based VMs,
# so disable it by default to avoid confusing warning
# messages from OpenMPI
{# BTL `sm` was replaced by `vader` in OpenMPI 3+ #}
{% if is_debian_10_or_later or is_ubuntu_20_or_later or is_rhel8_or_later_compatible %}
setenv "OMPI_MCA_btl" "self,vader,tcp"
{% else %}
setenv "OMPI_MCA_btl" "self,sm,tcp"
{% endif %}

# do not busy-wait while running MPI barriers; has a little impact on
# performance but saves money and energy on cloud "CPU burstable" instances
Expand Down

0 comments on commit 042e8f3

Please sign in to comment.