-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #644 from brtnfld/hdf5.opt
Adds HDF5 option to use subfiling
- Loading branch information
Showing
6 changed files
with
474 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
example/core_tutorial/13_hdf5_output_advanced/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
############################################################################ | ||
# Copyright (c) 2018-2022 by the Cabana authors # | ||
# All rights reserved. # | ||
# # | ||
# This file is part of the Cabana library. Cabana is distributed under a # | ||
# BSD 3-clause license. For the licensing terms see the LICENSE file in # | ||
# the top-level directory. # | ||
# # | ||
# SPDX-License-Identifier: BSD-3-Clause # | ||
############################################################################ | ||
|
||
add_executable(AdvancedHDF5Output advanced_hdf5_output_example.cpp) | ||
target_link_libraries(AdvancedHDF5Output Cabana::Core) | ||
set(HDF5_BIN_DIR ${HDF5_ROOT}/bin) | ||
if(EXISTS ${HDF5_BIN_DIR}/h5fuse.sh) | ||
file(COPY ${HDF5_BIN_DIR}/h5fuse.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | ||
elseif(EXISTS ${HDF5_BIN_DIR}/h5fuse) | ||
file(COPY ${HDF5_BIN_DIR}/h5fuse DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | ||
endif() | ||
add_test(NAME Core_tutorial_13_subfiling COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} | ||
${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} $<TARGET_FILE:AdvancedHDF5Output> ${MPIEXEC_POSTFLAGS}) | ||
set_tests_properties(Core_tutorial_13_subfiling PROPERTIES PROCESSORS ${MPIEXEC_MAX_NUMPROCS}) |
Oops, something went wrong.