Skip to content

Commit a774d42

Browse files
authored
Merge pull request #13510 from Matthew-Whitlock/populate_failed_procs
v5.0.x: Always populate failed procs in comms' groups
2 parents 50bba5e + c263224 commit a774d42

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ompi/communicator/ft/comm_ft.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,13 +794,12 @@ bool ompi_comm_is_proc_active(ompi_communicator_t *comm, int peer_id, bool remot
794794

795795
int ompi_comm_set_rank_failed(ompi_communicator_t *comm, int peer_id, bool remote)
796796
{
797-
#if OPAL_ENABLE_DEBUG
798797
/* populate the proc in the comm's group array so that it is not a
799798
sentinel and can be read as failed */
800-
ompi_proc_t *ompi_proc = ompi_group_get_proc_ptr((remote ? comm->c_remote_group : comm->c_local_group),
801-
peer_id, true);
799+
ompi_proc_t *ompi_proc __opal_attribute_unused__;
800+
ompi_proc = ompi_group_get_proc_ptr((remote ? comm->c_remote_group : comm->c_local_group),
801+
peer_id, true);
802802
assert(NULL != ompi_proc);
803-
#endif
804803

805804
/* Disable ANY_SOURCE */
806805
comm->any_source_enabled = false;

0 commit comments

Comments
 (0)