Skip to content

Commit

Permalink
Merge pull request #3165 from JasonRuonanWang/fix-dataman-test
Browse files Browse the repository at this point in the history
Fix a template instantiation issue with GCC 10 in dataman serializer
  • Loading branch information
JasonRuonanWang authored Apr 16, 2022
2 parents 6d7c995 + 63e5d6c commit 6a2d579
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
16 changes: 9 additions & 7 deletions cmake/DetectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,15 @@ elseif(ADIOS2_USE_MHS)
endif()

# DataSpaces
if(ADIOS2_USE_DataSpaces STREQUAL AUTO)
find_package(DataSpaces 2.1.1)
elseif(ADIOS2_USE_DataSpaces)
find_package(DataSpaces 2.1.1 REQUIRED)
endif()
if(DATASPACES_FOUND)
set(ADIOS2_HAVE_DataSpaces TRUE)
if(MPI_FOUND)
if(ADIOS2_USE_DataSpaces STREQUAL AUTO)
find_package(DataSpaces 2.1.1)
elseif(ADIOS2_USE_DataSpaces)
find_package(DataSpaces 2.1.1 REQUIRED)
endif()
if(DATASPACES_FOUND)
set(ADIOS2_HAVE_DataSpaces TRUE)
endif()
endif()

# HDF5
Expand Down
1 change: 0 additions & 1 deletion source/adios2/toolkit/format/dataman/DataManSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,6 @@ void DataManSerializer::Log(const int level, const std::string &message,
}
}

template <>
void DataManSerializer::PutData(
const std::string *inputData, const std::string &varName,
const Dims &varShape, const Dims &varStart, const Dims &varCount,
Expand Down
8 changes: 8 additions & 0 deletions source/adios2/toolkit/format/dataman/DataManSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ class DataManSerializer
void PutAttributes(core::IO &io);

// put a variable for writer
void PutData(const std::string *inputData, const std::string &varName,
const Dims &varShape, const Dims &varStart,
const Dims &varCount, const Dims &varMemStart,
const Dims &varMemCount, const std::string &doid,
const size_t step, const int rank, const std::string &address,
const std::vector<std::shared_ptr<core::Operator>> &ops,
VecPtr localBuffer = nullptr, JsonPtr metadataJson = nullptr);

template <class T>
void PutData(const T *inputData, const std::string &varName,
const Dims &varShape, const Dims &varStart,
Expand Down

0 comments on commit 6a2d579

Please sign in to comment.