From 0456542cb4df89197e376869bc9c24625fcb7c5d Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 29 Nov 2024 23:06:10 +0900 Subject: [PATCH] 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. open-mpi/ompi#12942 Signed-off-by: Gilles Gouaillardet (cherry picked from commit 607f3a4f1e4d6639f2c1fc3e53cc09f5ba6d6c60) --- ompi/request/request.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ompi/request/request.c b/ompi/request/request.c index 843d9ae95f3..3f72a23fde0 100644 --- a/ompi/request/request.c +++ b/ompi/request/request.c @@ -15,8 +15,8 @@ * Copyright (c) 2012 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2015 Los Alamos National Security, LLC. All rights * reserved. - * Copyright (c) 2015 Research Organization for Information Science - * and Technology (RIST). All rights reserved. + * Copyright (c) 2015-2024 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. * Copyright (c) 2018 Triad National Security, LLC. All rights * reserved. @@ -267,6 +267,8 @@ bool ompi_request_check_same_instance(ompi_request_t** requests, base_instance = req->req_mpi_object.comm->instance; continue; } + if(&ompi_mpi_comm_null.comm == req->req_mpi_object.comm) + continue; if(base_instance != req->req_mpi_object.comm->instance) return false; }