Skip to content

Commit 2c41bb7

Browse files
committed
ch4/ofi: default MPIR_CVAR_CH4_OFI_MAX_NICS to 1
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.
1 parent ca6244f commit 2c41bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpid/ch4/netmod/ofi/ofi_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,15 @@ categories :
383383
- name : MPIR_CVAR_CH4_OFI_MAX_NICS
384384
category : CH4
385385
type : int
386-
default : -1
386+
default : 1
387387
class : device
388388
verbosity : MPI_T_VERBOSITY_USER_BASIC
389389
scope : MPI_T_SCOPE_LOCAL
390390
description : >-
391391
If set to positive number, this cvar determines the maximum number of physical nics
392392
to use (if more than one is available). If the number is -1, underlying netmod or
393393
shmmod automatically uses an optimal number depending on what is detected on the
394-
system up to the limit determined by MPIDI_MAX_NICS (in ofi_types.h).
394+
system.
395395
396396
- name : MPIR_CVAR_CH4_OFI_ENABLE_MULTI_NIC_STRIPING
397397
category : CH4

0 commit comments

Comments
 (0)