Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpm: don't use locality info for multi PMIX namespace environments #13059

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 3rd-party/openpmix
Submodule openpmix updated 203 files
2 changes: 1 addition & 1 deletion 3rd-party/prrte
Submodule prrte updated 278 files
12 changes: 8 additions & 4 deletions ompi/dpm/dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,18 @@ int ompi_dpm_connect_accept(ompi_communicator_t *comm, int root,
opal_list_remove_item(&ilist, (opal_list_item_t*)cd); // TODO: do we need to release cd ?
OBJ_RELEASE(cd);
/* ompi_proc_complete_init_single() initializes and optionally retrieves
* OPAL_PMIX_LOCALITY and OPAL_PMIX_HOSTNAME. since we can live without
* them, we are just fine */
* OPAL_PMIX_LOCALITY and OPAL_PMIX_HOSTNAME.
*/
ompi_proc_complete_init_single(proc);
/* if this proc is local, then get its locality */
if (NULL != local_ranks_in_jobid) {
uint16_t u16;
uint16_t u16 = 0;
for (prn=0; prn < nprn; prn++) {
if (local_ranks_in_jobid[prn] == proc->super.proc_name.vpid) {
/*
* exclude procs not in our job id (aka pmix namespace) from localization optimizations
*/
if ((local_ranks_in_jobid[prn] == proc->super.proc_name.vpid)
&& (OMPI_PROC_MY_NAME->jobid == proc->super.proc_name.jobid)) {
/* get their locality string */
val = NULL;
OPAL_MODEX_RECV_VALUE_IMMEDIATE(rc, PMIX_LOCALITY_STRING,
Expand Down
Loading