Skip to content

Commit 213b2ab

Browse files
committed
dpm: correctly handle procs_cutoff in ompi_dpm_connect_accept()
1 parent e4bdad0 commit 213b2ab

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ompi/dpm/dpm.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights
1717
* reserved.
1818
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved
19-
* Copyright (c) 2014-2015 Research Organization for Information Science
19+
* Copyright (c) 2014-2016 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
2222
*
@@ -167,7 +167,13 @@ int ompi_dpm_connect_accept(ompi_communicator_t *comm, int root,
167167
dense = false;
168168
}
169169
for (i=0; i < size; i++) {
170-
rc = opal_convert_process_name_to_string(&nstring, &(proc_list[i]->super.proc_name));
170+
opal_process_name_t proc_name;
171+
if (ompi_proc_is_sentinel (proc_list[i])) {
172+
proc_name = ompi_proc_sentinel_to_name ((intptr_t) proc_list[i]);
173+
} else {
174+
proc_name = proc_list[i]->super.proc_name;
175+
}
176+
rc = opal_convert_process_name_to_string(&nstring, &proc_name);
171177
if (OPAL_SUCCESS != rc) {
172178
if (!dense) {
173179
free(proc_list);

0 commit comments

Comments
 (0)