Skip to content

Commit 729468a

Browse files
authored
Merge pull request #9249 from awlauria/ident_ompi_master
Update strings of "Open MPI" to instead use OMPI_IDENT_NAME
2 parents 354b753 + 79d7fd2 commit 729468a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

ompi/debuggers/ompi_common_dll.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ static int host_is_big_endian = 0;
6767
{ \
6868
out_name = mqs_field_offset((qh_type), #field_name); \
6969
if (out_name < 0) { \
70-
fprintf(stderr, "WARNING: Open MPI is unable to find " \
70+
fprintf(stderr, "WARNING: " OMPI_IDENT_STRING " is unable to find " \
7171
"field " #field_name " in the " #struct_name \
72-
" type. This can happen can if Open MPI is built " \
72+
" type. This can happen if " OMPI_IDENT_STRING " is built " \
7373
"without debugging information, or is stripped " \
7474
"after building.\n"); \
7575
} \
@@ -512,7 +512,7 @@ int ompi_fill_in_type_info(mqs_image *image, char **message)
512512
* did our best but here we're at our limit. Give up!
513513
*/
514514
*message = missing_in_action;
515-
fprintf(stderr, "WARNING: Open MPI is unable to find debugging information about the \"%s\" type. This can happen if Open MPI was built without debugging information, or was stripped after building.\n",
515+
fprintf(stderr, "WARNING: " OMPI_IDENT_STRING " is unable to find debugging information about the \"%s\" type. This can happen if " OMPI_IDENT_STRING " was built without debugging information, or was stripped after building.\n",
516516
missing_in_action);
517517
return err_missing_type;
518518
}
@@ -634,7 +634,7 @@ int ompi_fetch_opal_pointer_array_item(mqs_process *proc, mqs_taddr_t addr,
634634

635635
int ompi_get_lib_version(char * buf, int size) {
636636
int ret;
637-
ret = snprintf(buf, size-1, "Open MPI v%d.%d.%d%s%s%s%s%s%s%s%s%s",
637+
ret = snprintf(buf, size-1, OMPI_IDENT_STRING " v%d.%d.%d%s%s%s%s%s%s%s%s%s",
638638
OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION, OMPI_RELEASE_VERSION,
639639
(strlen(OMPI_GREEK_VERSION) > 0)?OMPI_GREEK_VERSION:"",
640640
(strlen(OPAL_PACKAGE_STRING) > 0)?", package: ":"",

ompi/runtime/ompi_mpi_params.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ int ompi_mpi_register_params(void)
187187
ompi_mpi_param_check = true;
188188
if (!MPI_PARAM_CHECK) {
189189
opal_output(0, "WARNING: MCA parameter mpi_no_free_handles set to true, but MPI");
190-
opal_output(0, "WARNING: parameter checking has been compiled out of Open MPI.");
190+
opal_output(0, "WARNING: parameter checking has been compiled out of " OMPI_IDENT_STRING ".");
191191
opal_output(0, "WARNING: mpi_no_free_handles is therefore only partially effective!");
192192
}
193193
}
@@ -246,7 +246,8 @@ int ompi_mpi_register_params(void)
246246

247247
/* File to use when dumping the parameters */
248248
(void) mca_base_var_register("ompi", "mpi", NULL, "show_mca_params_file",
249-
"If mpi_show_mca_params is true, setting this string to a valid filename tells Open MPI to dump all the MCA parameter values into a file suitable for reading via the mca_param_files parameter (good for reproducability of MPI jobs)",
249+
"If mpi_show_mca_params is true, setting this string to a valid filename tells "
250+
OMPI_IDENT_STRING " to dump all the MCA parameter values into a file suitable for reading via the mca_param_files parameter (good for reproducability of MPI jobs)",
250251
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
251252
OPAL_INFO_LVL_9,
252253
MCA_BASE_VAR_SCOPE_READONLY,
@@ -272,7 +273,7 @@ int ompi_mpi_register_params(void)
272273

273274
/* Sparse group storage support */
274275
(void) mca_base_var_register("ompi", "mpi", NULL, "have_sparse_group_storage",
275-
"Whether this Open MPI installation supports storing of data in MPI groups in \"sparse\" formats (good for extremely large process count MPI jobs that create many communicators/groups)",
276+
"Whether this " OMPI_IDENT_STRING " installation supports storing of data in MPI groups in \"sparse\" formats (good for extremely large process count MPI jobs that create many communicators/groups)",
276277
MCA_BASE_VAR_TYPE_BOOL, NULL, 0,
277278
MCA_BASE_VAR_FLAG_DEFAULT_ONLY,
278279
OPAL_INFO_LVL_9,

0 commit comments

Comments
 (0)