Commit 63298b2f authored by Min Si's avatar Min Si
Browse files

Simplify test setting of min/full datatype tests.


Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 3f5194a0
...@@ -39,10 +39,9 @@ int main( int argc, char *argv[] ) ...@@ -39,10 +39,9 @@ int main( int argc, char *argv[] )
MTEST_DATATYPE_FOR_EACH_COUNT(count) { MTEST_DATATYPE_FOR_EACH_COUNT(count) {
/* Only run full datatype tests in comm world to shorten test time. */ /* To shorten test time, only run the default version of datatype tests
if (comm == MPI_COMM_WORLD) { * for comm world and run the minimum version for other communicators. */
MTestInitFullDatatypes(); if (comm != MPI_COMM_WORLD) {
} else {
MTestInitMinDatatypes(); MTestInitMinDatatypes();
} }
......
...@@ -35,10 +35,9 @@ int main( int argc, char *argv[] ) ...@@ -35,10 +35,9 @@ int main( int argc, char *argv[] )
count = 1; count = 1;
MTEST_DATATYPE_FOR_EACH_COUNT(count) { MTEST_DATATYPE_FOR_EACH_COUNT(count) {
/* Only run full datatype tests in comm world to shorten test time. */ /* To shorten test time, only run the default version of datatype tests
if (comm == MPI_COMM_WORLD) { * for comm world and run the minimum version for other communicators. */
MTestInitFullDatatypes(); if (comm != MPI_COMM_WORLD) {
} else {
MTestInitMinDatatypes(); MTestInitMinDatatypes();
} }
......
...@@ -42,10 +42,9 @@ int main( int argc, char *argv[] ) ...@@ -42,10 +42,9 @@ int main( int argc, char *argv[] )
for (count = 1; count < MAX_COUNT; count = count * 2) { for (count = 1; count < MAX_COUNT; count = count * 2) {
/* Only run full datatype tests in comm world to shorten test time. */ /* To shorten test time, only run the default version of datatype tests
if (comm == MPI_COMM_WORLD) { * for comm world and run the minimum version for other communicators. */
MTestInitFullDatatypes(); if (comm != MPI_COMM_WORLD) {
} else {
MTestInitMinDatatypes(); MTestInitMinDatatypes();
} }
......
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