Skip to content

Commit f763d57

Browse files
authored
Merge pull request #7236 from raffenet/4.3.x-fixes
[4.3.x] misc: backport fixes and update version Approved-by: Hui Zhou <[email protected]>
2 parents d1b04e8 + 35357eb commit f763d57

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

maint/version.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# changing this by playing with diversions, but then we would probably be
1515
# playing with autotools-fire.
1616

17-
m4_define([MPICH_VERSION_m4],[4.3.0b1])dnl
17+
m4_define([MPICH_VERSION_m4],[4.3.0rc1])dnl
1818
m4_define([MPICH_RELEASE_DATE_m4],[unreleased development copy])dnl
1919

2020
# For libtool ABI versioning rules see:

src/mpi/romio/test/aggregation1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* Test case from John Bent (ROMIO req #835)
77
* Aggregation code was not handling certain access patterns when collective
88
* buffering forced */
9-
#define _XOPEN_SOURCE 500 /* strdup not in string.h otherwise */
9+
#define _XOPEN_SOURCE 600 /* strdup not in string.h otherwise */
1010
#include <unistd.h>
1111
#include <stdlib.h>
1212
#include <mpi.h>

src/mpid/ch4/src/ch4_spawn.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ int MPID_Comm_spawn_multiple(int count, char *commands[], char **argvs[], const
4040
memset(port_name, 0, sizeof(port_name));
4141

4242
int total_num_processes = 0;
43-
int spawn_error = 0;
4443
int *pmi_errcodes = NULL;
4544

4645
if (comm_ptr->rank == root) {
@@ -63,29 +62,30 @@ int MPID_Comm_spawn_multiple(int count, char *commands[], char **argvs[], const
6362
mpi_errno = MPIR_pmi_spawn_multiple(count, commands, argvs, maxprocs, info_ptrs,
6463
1, &preput_keyval_vector, pmi_errcodes);
6564
MPID_THREAD_CS_EXIT(VCI, MPIR_THREAD_VCI_PMI_MUTEX);
66-
if (mpi_errno != MPI_SUCCESS) {
67-
spawn_error = 1;
68-
}
69-
} else {
70-
spawn_error = 1;
7165
}
7266
}
7367

7468
int bcast_ints[2];
7569
if (comm_ptr->rank == root) {
7670
bcast_ints[0] = total_num_processes;
77-
bcast_ints[1] = spawn_error;
71+
bcast_ints[1] = mpi_errno;
7872
}
7973
mpi_errno = MPIR_Bcast(bcast_ints, 2, MPI_INT, root, comm_ptr, MPIR_ERR_NONE);
8074
MPIR_ERR_CHECK(mpi_errno);
8175
if (comm_ptr->rank != root) {
8276
total_num_processes = bcast_ints[0];
83-
spawn_error = bcast_ints[1];
77+
if (bcast_ints[1]) {
78+
/* root spawn encountered error */
79+
MPIR_ERR_SET(mpi_errno, MPI_ERR_OTHER, "**spawn");
80+
}
8481
pmi_errcodes = (int *) MPL_calloc(total_num_processes, sizeof(int), MPL_MEM_OTHER);
8582
MPIR_Assert(pmi_errcodes);
83+
} else {
84+
/* restore the potential mpi_errno from MPID_Open_port and MPIR_pmi_spawn_multiple */
85+
mpi_errno = bcast_ints[1];
8686
}
8787

88-
MPIR_ERR_CHKANDJUMP(spawn_error, mpi_errno, MPI_ERR_OTHER, "**spawn");
88+
MPIR_ERR_CHECK(mpi_errno);
8989

9090
int should_accept = 1;
9191
if (errcodes != MPI_ERRCODES_IGNORE) {

src/mpid/common/bc/mpidu_bc.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#define MPID_MAX_BC_SIZE 4096
1212

1313
/* Internally we may use a larger port name size than MPI_MAX_PORT_NAME */
14-
/* FIXME: MPID_MAX_PORT_NAME should be larger than MPID_MAX_BC_SIZE */
15-
#define MPID_MAX_PORT_NAME 1024
14+
#define MPID_MAX_PORT_NAME MPID_MAX_BC_SIZE
1615

1716
int MPIDU_bc_table_create(int rank, int size, int *nodemap, void *bc, int bc_len, int same_len,
1817
int roots_only, void **bc_table, int *ret_bc_len);

0 commit comments

Comments
 (0)