Skip to content

Commit

Permalink
ch4/ofi: default MPIR_CVAR_CH4_OFI_MAX_NICS to 1
Browse files Browse the repository at this point in the history
Assuming the typical way for apps to utilize multiple nic is to launch
multiple processes per node, each bind to different nic. Thus set
MPIR_CVAR_CH4_OFI_MAX_NICS to 1 should be sufficient and saves init time
and resource.

For applications that want to utilize the striping mode to send very large
messages should manually set MPIR_CVAR_CH4_OFI_MAX_NICS to higher value.
  • Loading branch information
hzhou committed Nov 9, 2024
1 parent ca6244f commit 2c41bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mpid/ch4/netmod/ofi/ofi_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,15 @@ categories :
- name : MPIR_CVAR_CH4_OFI_MAX_NICS
category : CH4
type : int
default : -1
default : 1
class : device
verbosity : MPI_T_VERBOSITY_USER_BASIC
scope : MPI_T_SCOPE_LOCAL
description : >-
If set to positive number, this cvar determines the maximum number of physical nics
to use (if more than one is available). If the number is -1, underlying netmod or
shmmod automatically uses an optimal number depending on what is detected on the
system up to the limit determined by MPIDI_MAX_NICS (in ofi_types.h).
system.
- name : MPIR_CVAR_CH4_OFI_ENABLE_MULTI_NIC_STRIPING
category : CH4
Expand Down

0 comments on commit 2c41bb7

Please sign in to comment.