[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2a2-169-ga8137ff
Service Account
noreply at mpich.org
Tue Feb 24 19:46:26 CST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".
The branch, master has been updated
via a8137ff9785f823ec2d661e34e395b98410a3dc0 (commit)
from 13b62b9fa5e12a5008dbccee530ae65c1a3ea954 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/a8137ff9785f823ec2d661e34e395b98410a3dc0
commit a8137ff9785f823ec2d661e34e395b98410a3dc0
Author: Min Si <msi at il.is.s.u-tokyo.ac.jp>
Date: Fri Feb 13 16:39:29 2015 -0600
Use the same basic dt in mtest derived dt tests.
The RMA tests including ACC require the same basic datatype elements on
sender/receiver sides. However, the mtest was using double-based ddt for
one side and char for the other side. This patch unifies the basic dt to
double.
Signed-off-by: Xin Zhao <xinzhao3 at illinois.edu>
diff --git a/test/mpi/util/mtest_datatype_gen.c b/test/mpi/util/mtest_datatype_gen.c
index 7a95da3..5c12371 100644
--- a/test/mpi/util/mtest_datatype_gen.c
+++ b/test/mpi/util/mtest_datatype_gen.c
@@ -395,16 +395,13 @@ static inline int MTestGetSendDerivedDatatypes(MTestDatatype * sendtype,
return merr;
sendtype->count = 1;
- merr = MPI_Type_size_x(sendtype->datatype, &tsize);
- if (merr)
- MTestPrintError(merr);
/* Create receive datatype */
- merr = MTestTypeBasicCreate(MPI_CHAR, recvtype);
+ merr = MTestTypeBasicCreate(old_type, recvtype);
if (merr)
return merr;
- recvtype->count = sendtype->count * tsize;
+ recvtype->count = sendtype->count * align_tot_count;
return merr;
}
@@ -443,16 +440,13 @@ static inline int MTestGetRecvDerivedDatatypes(MTestDatatype * sendtype,
return merr;
recvtype->count = 1;
- merr = MPI_Type_size_x(recvtype->datatype, &tsize);
- if (merr)
- MTestPrintError(merr);
/* Create send datatype */
- merr = MTestTypeBasicCreate(MPI_CHAR, sendtype);
+ merr = MTestTypeBasicCreate(old_type, sendtype);
if (merr)
return merr;
- sendtype->count = recvtype->count * tsize;
+ sendtype->count = recvtype->count * align_tot_count;
return merr;
}
-----------------------------------------------------------------------
Summary of changes:
test/mpi/util/mtest_datatype_gen.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
hooks/post-receive
--
MPICH primary repository
More information about the commits
mailing list