Skip to content

Commit c71a1e9

Browse files
committed
Fix MPIR regression with extern MPIR_proctable.
Signed-off-by: Austen Lauria <awlauria@us.ibm.com> (cherry picked from commit 7920efc)
1 parent b161e78 commit c71a1e9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

orte/orted/orted-mpir/orted_mpir.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ BEGIN_C_DECLS
1818
#define MPIR_MAX_PATH_LENGTH 512
1919
#define MPIR_MAX_ARG_LENGTH 1024
2020

21-
extern struct MPIR_PROCDESC *MPIR_proctable;
21+
struct MPIR_PROCDESC {
22+
char *host_name; /* something that can be passed to inet_addr */
23+
char *executable_name; /* name of binary */
24+
int pid; /* process pid */
25+
};
26+
2227
extern int MPIR_proctable_size;
2328
extern volatile int MPIR_being_debugged;
2429
extern volatile int MPIR_debug_state;

orte/orted/orted_submit.c

+2-7
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ static opal_pointer_array_t tool_jobs;
123123
static int timeout_seconds;
124124
static orte_timer_t *orte_memprofile_timeout;
125125

126+
127+
extern struct MPIR_PROCDESC *MPIR_proctable;
126128
int orte_debugger_attach_fd = -1;
127129
bool orte_debugger_fifo_active=false;
128130
opal_event_t *orte_debugger_attach=NULL;
@@ -2207,13 +2209,6 @@ static void complete_recv(int status, orte_process_name_t* sender,
22072209
#define DUMP_INT(X) fprintf(stderr, " %s = %d\n", # X, X);
22082210
#define FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
22092211

2210-
struct MPIR_PROCDESC {
2211-
char *host_name; /* something that can be passed to inet_addr */
2212-
char *executable_name; /* name of binary */
2213-
int pid; /* process pid */
2214-
};
2215-
2216-
22172212
/**
22182213
* Initialization of data structures for running under a debugger
22192214
* using the MPICH/TotalView parallel debugger interface. Before the

0 commit comments

Comments
 (0)