Skip to content

Commit

Permalink
Testing: Make hdf5 test able to run in parallel
Browse files Browse the repository at this point in the history
In this PR, I extend HDF5 native reader so that now hdf5 tests can read data
by selection(so called hyperslab selection in hdf5).
  • Loading branch information
Haocheng Liu committed Sep 5, 2017
1 parent 7511433 commit 0d1ee65
Show file tree
Hide file tree
Showing 2 changed files with 454 additions and 238 deletions.
11 changes: 10 additions & 1 deletion testing/adios2/engine/hdf5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ else()
endif()
target_link_libraries(TestHDF5WriteRead adios2 gtest ${HDF5_C_LIBRARIES})

gtest_add_tests(TARGET TestHDF5WriteRead)
if(ADIOS2_HAVE_MPI)
target_include_directories(TestHDF5WriteRead PRIVATE ${MPI_C_INCLUDE_PATH})
target_link_libraries(TestHDF5WriteRead ${MPI_C_LIBRARIES})
set(extra_test_args
EXEC_WRAPPER
${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS}
)
endif()

gtest_add_tests(TARGET TestHDF5WriteRead ${extra_test_args})
Loading

0 comments on commit 0d1ee65

Please sign in to comment.