1717 * Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1818 * Copyright (c) 2015 Mellanox Technologies, Inc.
1919 * All rights reserved.
20- * Copyright (c) 2016 Research Organization for Information Science
20+ * Copyright (c) 2016-2019 Research Organization for Information Science
2121 * and Technology (RIST). All rights reserved.
2222 * $COPYRIGHT$
2323 *
@@ -82,6 +82,7 @@ static bool show_default_mca_params = false;
8282static bool show_file_mca_params = false;
8383static bool show_enviro_mca_params = false;
8484static bool show_override_mca_params = false;
85+ static bool ompi_mpi_oversubscribe = false;
8586
8687int ompi_mpi_register_params (void )
8788{
@@ -108,13 +109,18 @@ int ompi_mpi_register_params(void)
108109 * opal_progress: decide whether to yield and the event library
109110 * tick rate
110111 */
111- /* JMS: Need ORTE data here -- set this to 0 when
112- exactly/under-subscribed, or 1 when oversubscribed */
113- ompi_mpi_yield_when_idle = false;
112+ ompi_mpi_oversubscribe = false;
113+ (void ) mca_base_var_register ("ompi" , "mpi" , NULL , "oversubscribe" ,
114+ "Internal MCA parameter set by the runtime environment when oversubscribing nodes" ,
115+ MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
116+ OPAL_INFO_LVL_9 ,
117+ MCA_BASE_VAR_SCOPE_READONLY ,
118+ & ompi_mpi_oversubscribe );
119+ ompi_mpi_yield_when_idle = ompi_mpi_oversubscribe ;
114120 (void ) mca_base_var_register ("ompi" , "mpi" , NULL , "yield_when_idle" ,
115121 "Yield the processor when waiting for MPI communication (for MPI processes, will default to 1 when oversubscribing nodes)" ,
116122 MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
117- OPAL_INFO_LVL_9 ,
123+ OPAL_INFO_LVL_5 ,
118124 MCA_BASE_VAR_SCOPE_READONLY ,
119125 & ompi_mpi_yield_when_idle );
120126
0 commit comments