From 86bfdb0b114ca2b879bd7442a603422d9d69f0e3 Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Sat, 9 Nov 2024 17:22:06 -0600 Subject: [PATCH] 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. --- src/mpid/ch4/netmod/ofi/ofi_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpid/ch4/netmod/ofi/ofi_init.c b/src/mpid/ch4/netmod/ofi/ofi_init.c index c58d96742ec..d02f30b3600 100644 --- a/src/mpid/ch4/netmod/ofi/ofi_init.c +++ b/src/mpid/ch4/netmod/ofi/ofi_init.c @@ -383,7 +383,7 @@ 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 @@ -391,7 +391,7 @@ categories : 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