1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From 8a622dd8204754733c769f0d13b685419e6607db Mon Sep 17 00:00:00 2001
From: Paul Kuberry <pakuber@sandia.gov>
Date: Wed, 12 Apr 2023 13:36:28 -0600
Subject: [PATCH] Remove use of OpenMPI specific struct member
MPITest/testBUG967 could not be built with MPICH because it used
OpenMPI specific struct member variable `_ucount`.
Replaced use of `_ucount` with call to MPI_Get_count, which is
compatible with OpenMPI and MPICH.
---
src/test/MPITest/testBUG967.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/test/MPITest/testBUG967.c b/src/test/MPITest/testBUG967.c
index cdf7f918f..26e1b5311 100644
--- a/src/test/MPITest/testBUG967.c
+++ b/src/test/MPITest/testBUG967.c
@@ -45,8 +45,10 @@ int main(int narg, char**arg)
for (i=0; i < nrecvs; i++){
MPI_Wait(req + i, &status);
procs_from[i] = status.MPI_SOURCE;
- printf("%d wait source %d count %lu \n",
- my_proc, status.MPI_SOURCE, status._ucount);
+ int count;
+ MPI_Get_count(&status, MPI_INT, &count);
+ printf("%d wait source %d count %d \n",
+ my_proc, status.MPI_SOURCE, count);
}
for (i = 0; i < nrecvs; i++)
--
2.37.1 (Apple Git-137.1)
|