Skip to content

Commit cfb4d38

Browse files
authored
Merge pull request #12944 from ggouaillardet/topic/request_same_instance
request: correctly handle MPI_COMM_NULL
2 parents ec08767 + 607f3a4 commit cfb4d38

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)