Skip to content

Commit

Permalink
IOSS: Try to get adios2 build working with adios master
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Aug 10, 2023
1 parent 5208556 commit 7bb73bd
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 29 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@ jobs:
extra: "MODERN=YES",
sanitizer: "NO" # address, integer, thread, memory, undefined
}
- {
name: "ADIOS2 enabled",
os: ubuntu-latest,
compiler: "mpi",
debug: "NO",
threadsafe: "NO",
fortran: "YES",
use_kokkos: "NO",
use_adios2: "YES",
use_catalyst2: "NO",
gtest: "YES",
extra: "",
sanitizer: "NO" # address, integer, thread, memory, undefined
}
steps:

- uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions TPL/adios2/runcmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ ${RPATH} \
-D CMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} \
-D CMAKE_INSTALL_LIBDIR:PATH=lib \
-D ADIOS2_USE_MPI:BOOL=${MPI} \
-D ADIOS2_HAVE_MPI:BOOL=${MPI} \
-D ADIOS2_BUILD_EXAMPLES:BOOL=OFF \
-D ADIOS2_BUILD_TESTING:BOOL=OFF \
-D INSTALL_GTEST:BOOL=OFF \
-D ADIOS2_USE_Fortran:BOOL=OFF \
-D ADIOS_USE_Profiling=OFF \
$EXTRA_ARGS \
..

Expand Down
2 changes: 2 additions & 0 deletions TPL/netcdf/runcmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ cmake .. -DCMAKE_C_COMPILER:FILEPATH=${CC} \
-DENABLE_MMAP:BOOL=ON \
-DENABLE_DAP:BOOL=OFF \
-DENABLE_V2_API:BOOL=OFF \
-DENABLE_FILTER_TESTING:BOOL=OFF \
-DENABLE_TESTS:BOOL=OFF \
${LOCAL_ZLIB} \
${LOCAL_SZIP} \
${EXTRA_DEPS} \
Expand Down
1 change: 0 additions & 1 deletion install-tpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ then
then
echo "${txtgrn}+++ Configuring, Building, and Installing...${txtrst}"
cd ADIOS2 || exit
git checkout v2.5.0
rm -rf build
mkdir build
cd build || exit
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/cmake/tpls/FindTPLADIOS2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ENDIF()
#
TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES( ADIOS2
REQUIRED_HEADERS adios2.h
REQUIRED_LIBS_NAMES adios2
REQUIRED_LIBS_NAMES adios2_cxx11_mpi,adios2_cxx11,adios2_core_mpi,adios2_core
)

# NOTE: If FIND_PACKAGE(ADIOS2 ...) was called and successfully found ADIOS2, then
Expand Down
1 change: 1 addition & 0 deletions packages/seacas/libraries/ioss/src/Ioss_CodeTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ inline std::string IOSS_SYM_TENSOR() { return std::string("sym_tensor_33"); }
#include <mpi.h>
using Ioss_MPI_Comm = MPI_Comm;
#define IOSS_PAR_UNUSED(x)
#define ADIOS2_USE_MPI 1
#else
using Ioss_MPI_Comm = int;
#if (__cplusplus >= 201703L)
Expand Down
1 change: 1 addition & 0 deletions packages/seacas/libraries/ioss/src/adios/AdiosWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "ioad_export.h"

#include <Ioss_CodeTypes.h>
#include <Ioss_PropertyManager.h>
#include <adios2.h>
#include <string>
Expand Down
6 changes: 0 additions & 6 deletions packages/seacas/libraries/ioss/src/adios/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ generate_export_header(Ioad)
target_include_directories(Ioad
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>")

IF (BUILD_TESTING)
ENABLE_TESTING()
ENDIF()

TRIBITS_ADD_TEST_DIRECTORIES(utest)
17 changes: 0 additions & 17 deletions packages/seacas/libraries/ioss/src/adios/utest/CMakeLists.txt

This file was deleted.

12 changes: 12 additions & 0 deletions packages/seacas/libraries/ioss/src/utest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,18 @@ TRIBITS_ADD_EXECUTABLE_AND_TEST(
)
ENDIF()

IF (TPL_ENABLE_ADIOS2)
TRIBITS_ADD_EXECUTABLE_AND_TEST(
Ut_ioad
NAME Ut_ioad
SOURCES Ut_ioad.C
NOEXEPREFIX
NOEXESUFFIX
INSTALLABLE
NUM_MPI_PROCS 1
)
ENDIF()

TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char *argv[])
#ifdef SEACAS_HAVE_MPI
MPI_Init(&argc, &argv);
#endif
const int result = doctest::Context().run(argc, argv);
const int result = doctest::Context().run();
#ifdef SEACAS_HAVE_MPI
MPI_Finalize();
#endif
Expand Down Expand Up @@ -423,7 +423,7 @@ void create_database(std::string type, std::string file_name)
DOCTEST_TEST_CASE("Ioad")
{

Ioss::Init::Initializer::initialize_ioss();
Ioss::Init::Initializer init_db;
std::string exodus_db_name = "phantom.e";
std::string adios_db_name = "phantom.bp";
create_database("exodus", exodus_db_name);
Expand Down

0 comments on commit 7bb73bd

Please sign in to comment.