Skip to content

Commit

Permalink
Diagnostics for LockGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed May 29, 2020
1 parent aeffd91 commit fb0d441
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/dashboard/adios_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if(NOT dashboard_model)
endif()

if(NOT DEFINED ADIOS_TEST_REPEAT)
set(ADIOS_TEST_REPEAT 5)
set(ADIOS_TEST_REPEAT 0)
endif()

if((CMAKE_VERSION VERSION_GREATER 3.16.20191201 ) AND
Expand Down
6 changes: 3 additions & 3 deletions testing/adios2/engine/staging-common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ endif()
set (SPECIAL_TESTS "TimeoutReader.1x1;LatestReader.1x1;LatestReaderHold.1x1;DiscardWriter.1x1;1x1.NoPreload;1x1.ForcePreload;1x1LockGeometry")
if (MPIEXEC_IS_BINARY)
# run_test.py can only kill readers/writers if mpiexec is not a shell script
list(APPEND SPECIAL_TESTS "KillReadersSerialized.3x2;KillReaders3Max.3x6;KillWriter_2x2;KillWriterTimeout_2x2")
# list(APPEND SPECIAL_TESTS "KillReadersSerialized.3x2;KillReaders3Max.3x6;KillWriter_2x2;KillWriterTimeout_2x2")
endif()

set (SIMPLE_MPI_TESTS "")
set (SIMPLE_MPI_FORTRAN_TESTS "")
if (ADIOS2_HAVE_MPI)
set (SIMPLE_MPI_TESTS "2x1;1x2;3x5;5x3;DelayedReader_3x5;3x5LockGeometry;2x1.Local;1x2.Local;3x5.Local;5x3.Local;1x1.LocalVarying;5x3.LocalVarying;2x1ZeroDataVar;2x1ZeroDataR64;2x2.NoData;2x2.HalfNoData;2x1.SharedNothing;2x1.SharedIO;2x1.SharedVar;2x1.SharedNothingSync;2x1.SharedIOSync;2x1.SharedVarSync;3x5EarlyExit")
list (APPEND SPECIAL_TESTS "2x1.NoPreload;2x3.ForcePreload;PreciousTimestep.3x2;PreciousTimestepDiscard.3x2")
set (SIMPLE_MPI_TESTS "2x1;1x2;3x5;5x3;DelayedReader_3x5;3x5LockGeometry;3x5LockGeometry2;3x5LockGeometry3;3x5LockGeometry4;3x5LockGeometry5;2x1.Local;1x2.Local;3x5.Local;5x3.Local;1x1.LocalVarying;5x3.LocalVarying;2x1ZeroDataVar;2x1ZeroDataR64;2x2.NoData;2x2.HalfNoData;2x1.SharedNothing;2x1.SharedIO;2x1.SharedVar;2x1.SharedNothingSync;2x1.SharedIOSync;2x1.SharedVarSync;3x5EarlyExit")
# list (APPEND SPECIAL_TESTS "2x1.NoPreload;2x3.ForcePreload;PreciousTimestep.3x2;PreciousTimestepDiscard.3x2")
if (ADIOS2_HAVE_Fortran)
set (SIMPLE_MPI_FORTRAN_TESTS "FtoC.3x5;CtoF.3x5;FtoF.3x5")
endif()
Expand Down
9 changes: 7 additions & 2 deletions testing/adios2/engine/staging-common/TestCommonRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,13 @@ TEST_F(CommonReadTest, ADIOS2CommonRead1D8)

if (!NoData)
{
EXPECT_EQ(validateCommonTestData(myStart, myLength, t, !var_c32),
0);
int result = validateCommonTestData(myStart, myLength, t, !var_c32);
if (result != 0)
{
std::cout << "validation failed on node " << mpiRank
<< " timestep " << t << std::endl;
}
EXPECT_EQ(result, 0);
write_times.push_back(write_time);
}
else
Expand Down
4 changes: 4 additions & 0 deletions testing/adios2/engine/staging-common/TestSupp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ set (2x3.ForcePreload_CMD "run_test.py.$<CONFIG> -nw 2 -nr 3 --rarg=PreloadMode=
set (1x2_CMD "run_test.py.$<CONFIG> -nw 1 -nr 2")
set (3x5_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5")
set (3x5LockGeometry_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5 --warg=--num_steps --warg=50 --warg=--ms_delay --warg=10 --rarg=--num_steps --rarg=50 --warg=--lock_geometry --rarg=--lock_geometry")
set (3x5LockGeometry2_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5 --warg=--num_steps --warg=50 --warg=--ms_delay --warg=10 --rarg=--num_steps --rarg=50 --warg=--lock_geometry --rarg=--lock_geometry")
set (3x5LockGeometry3_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5 --warg=--num_steps --warg=50 --warg=--ms_delay --warg=10 --rarg=--num_steps --rarg=50 --warg=--lock_geometry --rarg=--lock_geometry")
set (3x5LockGeometry4_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5 --warg=--num_steps --warg=50 --warg=--ms_delay --warg=10 --rarg=--num_steps --rarg=50 --warg=--lock_geometry --rarg=--lock_geometry")
set (3x5LockGeometry5_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5 --warg=--num_steps --warg=50 --warg=--ms_delay --warg=10 --rarg=--num_steps --rarg=50 --warg=--lock_geometry --rarg=--lock_geometry")
set (1x1EarlyExit_CMD "run_test.py.$<CONFIG> -nw 1 -nr 1 --warg=--num_steps --warg=50 --rarg=--num_steps --rarg=5 --rarg=--early_exit")
set (3x5EarlyExit_CMD "run_test.py.$<CONFIG> -nw 3 -nr 5 --warg=--num_steps --warg=50 --rarg=--num_steps --rarg=5 --rarg=--early_exit")
set (3x5LockGeometry_TIMEOUT 60)
Expand Down
9 changes: 7 additions & 2 deletions testing/adios2/engine/staging-common/run_test.py.gen.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def do_simple_test(writer_cmd, reader_cmd, reader_delay, file_test):

return_code = 0

# if "--lock_geometry" in writer_cmd:
# my_env["SstVerbose"] = "1"
if writer_cmd is not None:
if "--lock_geometry" in writer_cmd:
my_env["SstVerbose"] = "1"

print("TestDriver: Doing simple with file_test = " + str(file_test))
sys.stdout.flush()
Expand Down Expand Up @@ -107,6 +108,10 @@ def do_simple_mpmd_test(writer_cmd, reader_cmd):

mpiexec_cmd = ['@MPIEXEC_EXECUTABLE@']

if writer_cmd is not None:
if "--lock_geometry" in writer_cmd:
my_env["SstVerbose"] = "1"

if '@MPIEXEC_EXTRA_FLAGS@':
mpiexec_cmd.extend('@MPIEXEC_EXTRA_FLAGS@'.split(';'))
print("TestDriver: Doing MPMD simple \n")
Expand Down

0 comments on commit fb0d441

Please sign in to comment.