From 06c456e5a69d6fb99292f5928ebc6e3c5fbda661 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 28 Oct 2025 14:06:17 -0600 Subject: [PATCH] fix empty status fields related to #13478 but without the controversial stuff. Signed-off-by: Howard Pritchard (cherry picked from commit 42200272b8d533634e81688e42029c61728e539e) --- ompi/request/request.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ompi/request/request.c b/ompi/request/request.c index 3f72a23fde0..e816325cf5f 100644 --- a/ompi/request/request.c +++ b/ompi/request/request.c @@ -18,7 +18,7 @@ * 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 + * Copyright (c) 2018-2025 Triad National Security, LLC. All rights * reserved. * Copyright (c) 2022 IBM Corporation. All rights reserved. * Copyright (c) 2024 NVIDIA Corporation. All rights reserved. @@ -47,7 +47,14 @@ ompi_request_t ompi_request_empty = {{{{0}}}}; #if MPI_VERSION >= 4 ompi_request_t ompi_request_empty_send = {{{{0}}}}; #endif -ompi_status_public_t ompi_status_empty = {0}; +/* + * See section 3.7.3 of the MPI 1.3 (probably older as well) MPI standard + */ +ompi_status_public_t ompi_status_empty = {.MPI_TAG = MPI_ANY_TAG, + .MPI_SOURCE = MPI_ANY_SOURCE, + .MPI_ERROR = MPI_SUCCESS, + ._cancelled = 0, + ._ucount = 0UL}; ompi_request_fns_t ompi_request_functions = { ompi_request_default_test, ompi_request_default_test_any,