Skip to content

Commit eb124b9

Browse files
authored
Merge pull request #13479 from hppritcha/fix_empty_status_fields
fix empty status fields
2 parents 54c4dbd + 4220027 commit eb124b9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ompi/request/request.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Copyright (c) 2015-2024 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
2020
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
21-
* Copyright (c) 2018 Triad National Security, LLC. All rights
21+
* Copyright (c) 2018-2025 Triad National Security, LLC. All rights
2222
* reserved.
2323
* Copyright (c) 2022 IBM Corporation. All rights reserved.
2424
* Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
@@ -47,7 +47,14 @@ ompi_request_t ompi_request_empty = {{{{0}}}};
4747
#if MPI_VERSION >= 4
4848
ompi_request_t ompi_request_empty_send = {{{{0}}}};
4949
#endif
50-
ompi_status_public_t ompi_status_empty = {0};
50+
/*
51+
* See section 3.7.3 of the MPI 1.3 (probably older as well) MPI standard
52+
*/
53+
ompi_status_public_t ompi_status_empty = {.MPI_TAG = MPI_ANY_TAG,
54+
.MPI_SOURCE = MPI_ANY_SOURCE,
55+
.MPI_ERROR = MPI_SUCCESS,
56+
._cancelled = 0,
57+
._ucount = 0UL};
5158
ompi_request_fns_t ompi_request_functions = {
5259
ompi_request_default_test,
5360
ompi_request_default_test_any,

0 commit comments

Comments
 (0)