Skip to content

Commit 607f3a4

Browse files
committed
request: correctly handle MPI_COMM_NULL
ompi_request_check_same_instance(): ignore requests whose communicator is ompi_mpi_comm_null. That can occur when pml/ucx is used and mca_pml_ucx_completed_request_init() was invoked. Thanks Christian Huettig for the report and helping with the troubleshooting. Refs. #12942 Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent c6766bb commit 607f3a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ompi/request/request.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
1616
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1717
* reserved.
18-
* Copyright (c) 2015 Research Organization for Information Science
19-
* and Technology (RIST). All rights reserved.
18+
* Copyright (c) 2015-2024 Research Organization for Information Science
19+
* and Technology (RIST). All rights reserved.
2020
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
2121
* Copyright (c) 2018 Triad National Security, LLC. All rights
2222
* reserved.
@@ -267,6 +267,8 @@ bool ompi_request_check_same_instance(ompi_request_t** requests,
267267
base_instance = req->req_mpi_object.comm->instance;
268268
continue;
269269
}
270+
if(&ompi_mpi_comm_null.comm == req->req_mpi_object.comm)
271+
continue;
270272
if(base_instance != req->req_mpi_object.comm->instance)
271273
return false;
272274
}

0 commit comments

Comments
 (0)