Skip to content

Commit 6df6714

Browse files
authored
Merge pull request #9820 from jsquyres/pr/show-help-file-audit
Fix issues turned up by opal_show_help() audit
2 parents 94bab63 + daf2513 commit 6df6714

21 files changed

+54
-388
lines changed

contrib/check-help-strings.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22
#
3-
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2014-2022 Cisco Systems, Inc. All rights reserved.
44
# $COPYRIGHT$
55
#
66
# Simple script to check all the opal_show_help (and orte_show_help)
@@ -242,13 +242,13 @@ sub check_name {
242242
my $sep = shift;
243243
my $src = shift;
244244

245-
while ($src =~ m/$name\s*$sep\s*"(.+?)"\s*,\s*"(.+?)"/) {
245+
while ($src =~ m/$name\s*$sep\s*"(.+?)"\s*,.*?"(.+?)"/) {
246246
my $file = $1;
247247
my $topic = $2;
248248
check_file_topic($info, $file, $topic);
249249

250250
# Don't find this one again
251-
$src =~ s/$name\s*$sep\s*"(.+?)"\s*,\s*"(.+?)"/SHOW_HELP_REPLACED/;
251+
$src =~ s/$name\s*$sep\s*"(.+?)"\s*,.*?"(.+?)"/SHOW_HELP_REPLACED/;
252252
}
253253

254254
return $src;

ompi/dpm/dpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2007-2020 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2007-2022 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2006-2009 University of Houston. All rights reserved.
1515
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
1616
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights
@@ -2060,7 +2060,7 @@ static int start_dvm(char **hostfiles, char **dash_host)
20602060
execv(cmd, args);
20612061

20622062
/* if I get here, the execv failed! */
2063-
opal_show_help("help-ess-base.txt", "ess-base:execv-error",
2063+
opal_show_help("help-dpm.txt", "execv-error",
20642064
true, cmd, strerror(errno));
20652065
exit(1);
20662066

ompi/dpm/help-dpm.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- text -*-
22
#
33
# Copyright (c) 2020 Intel, Inc. All rights reserved.
4+
# Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
45
# $COPYRIGHT$
56
#
67
# Additional copyrights may follow
@@ -44,3 +45,20 @@ the number of procs for each resource and the type of resource to be used.
4445
Specified value: %s
4546

4647
We are not able to proceed. Please correct your application.
48+
#
49+
[execv-error]
50+
51+
The singleton application was not able to find an executabe in your
52+
PATH or in the directory where PRTE was initially installed, and
53+
therefore cannot continue.
54+
55+
For reference, we tried the following command:
56+
57+
%s
58+
59+
and got the error %s.
60+
61+
This could mean that your PATH or executable name is wrong, or that
62+
you do not have the necessary permissions. Please ensure that the
63+
executable is able to be found and executed as it is required for
64+
singleton operations.

ompi/errhandler/errhandler_predefined.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2006 University of Houston. All rights reserved.
14-
* Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved
14+
* Copyright (c) 2008-2022 Cisco Systems, Inc. All rights reserved.
1515
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
1616
* Copyright (c) 2010-2011 Oak Ridge National Labs. All rights reserved.
1717
* Copyright (c) 2012 Los Alamos National Security, LLC.
@@ -338,6 +338,9 @@ static void backend_abort_aggregate(int fatal, char *type,
338338
usable_err_msg = (NULL == err_msg) ? unknown_error : err_msg;
339339

340340
if (NULL != name) {
341+
// For the show_help topic checker script
342+
// SHOW_HELP:"help-mpi-errors.txt","mpi_errors_are_fatal"
343+
// SHOW_HELP:"help-mpi-errors.txt","mpi_errors_abort"
341344
opal_show_help("help-mpi-errors.txt",
342345
fatal? "mpi_errors_are_fatal": "mpi_errors_abort",
343346
false,

ompi/mca/mtl/psm2/help-mtl-psm2.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Copyright (C) 2009. QLogic Corporation. All rights reserved.
44
# Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
5+
# Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
@@ -13,11 +14,6 @@ Initialization of PSM2 library failed.
1314

1415
Error: %s
1516
#
16-
[debug level]
17-
Unable to set PSM2 debug level.
18-
19-
Error: %s
20-
#
2117
[unable to open endpoint]
2218
PSM2 was unable to open an endpoint. Please make sure that the network link is
2319
active on the node and the hardware is functioning.
@@ -40,9 +36,6 @@ Unable to post application receive buffer (psm2_mq_irecv or psm2_mq_imrecv).
4036
Buffer: %p
4137
Length: %llu
4238
#
43-
[path query mechanism unknown]
44-
Unknown path record query mechanism %s. Supported mechanisms are %s.
45-
#
4639
[message too big]
4740
Message size %llu bigger than supported by PSM2 API. Max = %llu
4841
#

ompi/mpi/help-mpi-api.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Copyright (c) 2006 High Performance Computing Center Stuttgart,
44
# University of Stuttgart. All rights reserved.
5-
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
5+
# Copyright (c) 2006-2022 Cisco Systems, Inc. All rights reserved.
66
# Copyright (c) 2018 IBM Corporation. All rights reserved.
77
# Copyright (c) 2020 The University of Tennessee and The University
88
# of Tennessee Research Foundation. All rights
@@ -30,8 +30,3 @@ this environment.
3030

3131
MPI function: %s
3232
Reason: %s
33-
[info-set-with-reserved-prefix]
34-
Comments
35-
MPI_Info_set warning, key is using a reserved prefix.
36-
Key: %s
37-
Reserved prefix: %s

ompi/runtime/help-mpi-runtime.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# University of Stuttgart. All rights reserved.
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
13-
# Copyright (c) 2007-2018 Cisco Systems, Inc. All rights reserved
13+
# Copyright (c) 2007-2022 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
1515
# Copyright (c) 2017-2020 Intel, Inc. All rights reserved.
1616
# $COPYRIGHT$
@@ -95,16 +95,6 @@ Open MPI with --enable-heterogeneous.
9595
The user requested CUDA support with the --mca mpi_cuda_support 1 flag
9696
but the library was not compiled with any support.
9797
#
98-
[noconxcpt]
99-
The user has called an operation involving MPI_Connect and/or MPI_Accept,
100-
but this environment lacks the necessary infrastructure support for
101-
that operation. Open MPI relies on the PMIx_Publish/Lookup (or one of
102-
its predecessors) APIs for this operation.
103-
104-
This typically happens when launching outside of mpirun where the underlying
105-
resource manager does not provide publish/lookup support. One way of solving
106-
the problem is to simply use mpirun to start the application.
107-
#
10898
[lib-call-fail]
10999
A library call unexpectedly failed. This is a terminal error; please
110100
show this message to an Open MPI wizard:

opal/mca/btl/sm/Makefile.am

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# University of Stuttgart. All rights reserved.
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
12-
# Copyright (c) 2009-2014 Cisco Systems, Inc. All rights reserved.
12+
# Copyright (c) 2009-2022 Cisco Systems, Inc. All rights reserved.
1313
# Copyright (c) 2011-2014 Los Alamos National Security, LLC. All rights
1414
# reserved.
1515
# Copyright (c) 2017 IBM Corporation. All rights reserved.
@@ -23,8 +23,6 @@
2323

2424
AM_CPPFLAGS = $(btl_sm_CPPFLAGS)
2525

26-
dist_opaldata_DATA = help-btl-sm.txt
27-
2826
libmca_btl_sm_la_sources = \
2927
btl_sm_module.c \
3028
btl_sm.h \

opal/mca/btl/sm/btl_sm_component.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2006-2007 Voltaire. All rights reserved.
14-
* Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
14+
* Copyright (c) 2009-2022 Cisco Systems, Inc. All rights reserved.
1515
* Copyright (c) 2010-2018 Los Alamos National Security, LLC.
1616
* All rights reserved.
1717
* Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
@@ -35,7 +35,6 @@
3535
#include "opal/mca/threads/mutex.h"
3636
#include "opal/util/output.h"
3737
#include "opal/util/printf.h"
38-
#include "opal/util/show_help.h"
3938

4039
#include "opal/mca/btl/sm/btl_sm.h"
4140
#include "opal/mca/btl/sm/btl_sm_fbox.h"

opal/mca/btl/sm/btl_sm_module.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2006-2007 Voltaire. All rights reserved.
14-
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
14+
* Copyright (c) 2009-2022 Cisco Systems, Inc. All rights reserved.
1515
* Copyright (c) 2010-2015 Los Alamos National Security, LLC. All rights
1616
* reserved.
1717
* Copyright (c) 2014-2020 Intel, Inc. All rights reserved.
@@ -29,7 +29,6 @@
2929
*/
3030

3131
#include "opal_config.h"
32-
#include "opal/util/show_help.h"
3332

3433
#include "opal/mca/btl/sm/btl_sm.h"
3534
#include "opal/mca/btl/sm/btl_sm_fbox.h"

0 commit comments

Comments
 (0)