17
17
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
18
18
* Copyright (c) 2015 Mellanox Technologies, Inc.
19
19
* All rights reserved.
20
- * Copyright (c) 2016 Research Organization for Information Science
20
+ * Copyright (c) 2016-2019 Research Organization for Information Science
21
21
* and Technology (RIST). All rights reserved.
22
22
* $COPYRIGHT$
23
23
*
@@ -82,6 +82,7 @@ static bool show_default_mca_params = false;
82
82
static bool show_file_mca_params = false;
83
83
static bool show_enviro_mca_params = false;
84
84
static bool show_override_mca_params = false;
85
+ static bool ompi_mpi_oversubscribe = false;
85
86
86
87
int ompi_mpi_register_params (void )
87
88
{
@@ -108,13 +109,18 @@ int ompi_mpi_register_params(void)
108
109
* opal_progress: decide whether to yield and the event library
109
110
* tick rate
110
111
*/
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 ;
114
120
(void ) mca_base_var_register ("ompi" , "mpi" , NULL , "yield_when_idle" ,
115
121
"Yield the processor when waiting for MPI communication (for MPI processes, will default to 1 when oversubscribing nodes)" ,
116
122
MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
117
- OPAL_INFO_LVL_9 ,
123
+ OPAL_INFO_LVL_5 ,
118
124
MCA_BASE_VAR_SCOPE_READONLY ,
119
125
& ompi_mpi_yield_when_idle );
120
126
0 commit comments