Skip to content

Commit a7e91d8

Browse files
authored
Merge pull request #8065 from devreal/fix_spc_mpit
SPC: allow starting through MPI_T without explicitly setting MCA parameter
2 parents 3f3ec63 + d11f625 commit a7e91d8

File tree

4 files changed

+285
-277
lines changed

4 files changed

+285
-277
lines changed

ompi/runtime/ompi_mpi_params.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,21 +334,23 @@ int ompi_mpi_register_params(void)
334334
MCA_BASE_VAR_SCOPE_READONLY,
335335
&ompi_mpi_compat_mpi3);
336336

337+
#if SPC_ENABLE == 1
337338
ompi_mpi_spc_attach_string = NULL;
338339
(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).",
340341
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
341342
OPAL_INFO_LVL_4,
342343
MCA_BASE_VAR_SCOPE_READONLY,
343344
&ompi_mpi_spc_attach_string);
344345

345346
ompi_mpi_spc_dump_enabled = false;
346347
(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.",
348349
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
349350
OPAL_INFO_LVL_4,
350351
MCA_BASE_VAR_SCOPE_READONLY,
351352
&ompi_mpi_spc_dump_enabled);
353+
#endif // SPC_ENABLE
352354

353355
return OMPI_SUCCESS;
354356
}

0 commit comments

Comments
 (0)