@@ -334,21 +334,23 @@ int ompi_mpi_register_params(void)
334
334
MCA_BASE_VAR_SCOPE_READONLY ,
335
335
& ompi_mpi_compat_mpi3 );
336
336
337
+ #if SPC_ENABLE == 1
337
338
ompi_mpi_spc_attach_string = NULL ;
338
339
(void ) mca_base_var_register ("ompi" , "mpi" , NULL , "spc_attach" ,
339
- "A comma delimeted string listing the software-based performance counters (SPCs) to enable." ,
340
+ "A comma- delimeted list of software-based performance counters (SPCs) to enable (\"all\" enables all counters) ." ,
340
341
MCA_BASE_VAR_TYPE_STRING , NULL , 0 , 0 ,
341
342
OPAL_INFO_LVL_4 ,
342
343
MCA_BASE_VAR_SCOPE_READONLY ,
343
344
& ompi_mpi_spc_attach_string );
344
345
345
346
ompi_mpi_spc_dump_enabled = false;
346
347
(void ) mca_base_var_register ("ompi" , "mpi" , NULL , "spc_dump_enabled" ,
347
- "A boolean value for whether (true) or not (false) to enable dumping SPC counters in MPI_Finalize." ,
348
+ "A boolean value for whether (true) or not (false) to enable dumping enabled SPC counters in MPI_Finalize." ,
348
349
MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
349
350
OPAL_INFO_LVL_4 ,
350
351
MCA_BASE_VAR_SCOPE_READONLY ,
351
352
& ompi_mpi_spc_dump_enabled );
353
+ #endif // SPC_ENABLE
352
354
353
355
return OMPI_SUCCESS ;
354
356
}
0 commit comments