Commit a8137ff9 authored by Min Si's avatar Min Si
Browse files

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: default avatarXin Zhao <xinzhao3@illinois.edu>
parent 13b62b9f
...@@ -395,16 +395,13 @@ static inline int MTestGetSendDerivedDatatypes(MTestDatatype * sendtype, ...@@ -395,16 +395,13 @@ static inline int MTestGetSendDerivedDatatypes(MTestDatatype * sendtype,
return merr; return merr;
sendtype->count = 1; sendtype->count = 1;
merr = MPI_Type_size_x(sendtype->datatype, &tsize);
if (merr)
MTestPrintError(merr);
/* Create receive datatype */ /* Create receive datatype */
merr = MTestTypeBasicCreate(MPI_CHAR, recvtype); merr = MTestTypeBasicCreate(old_type, recvtype);
if (merr) if (merr)
return merr; return merr;
recvtype->count = sendtype->count * tsize; recvtype->count = sendtype->count * align_tot_count;
return merr; return merr;
} }
...@@ -443,16 +440,13 @@ static inline int MTestGetRecvDerivedDatatypes(MTestDatatype * sendtype, ...@@ -443,16 +440,13 @@ static inline int MTestGetRecvDerivedDatatypes(MTestDatatype * sendtype,
return merr; return merr;
recvtype->count = 1; recvtype->count = 1;
merr = MPI_Type_size_x(recvtype->datatype, &tsize);
if (merr)
MTestPrintError(merr);
/* Create send datatype */ /* Create send datatype */
merr = MTestTypeBasicCreate(MPI_CHAR, sendtype); merr = MTestTypeBasicCreate(old_type, sendtype);
if (merr) if (merr)
return merr; return merr;
sendtype->count = recvtype->count * tsize; sendtype->count = recvtype->count * align_tot_count;
return merr; return merr;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment