Skip to content

Commit

Permalink
Merge pull request #2421 from JasonRuonanWang/json-pgi
Browse files Browse the repository at this point in the history
Enable PGI compiler for DataMan and Table
  • Loading branch information
JasonRuonanWang authored Aug 12, 2020
2 parents c5c1699 + 3cd6cc6 commit ec93d88
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
6 changes: 2 additions & 4 deletions cmake/DetectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ if(ZeroMQ_FOUND)
endif()

# DataMan
# DataMan currently breaks the PGI compiler
if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "PGI") AND NOT MSVC)
if(NOT MSVC)
if(ZeroMQ_FOUND)
if(ADIOS2_USE_DataMan STREQUAL AUTO)
set(ADIOS2_HAVE_DataMan TRUE)
Expand All @@ -178,7 +177,6 @@ if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "PGI") AND NOT MSVC)
endif()

# SSC
# SSC currently breaks the PGI compiler
if(NOT MSVC)
if(ADIOS2_HAVE_MPI)
if(ADIOS2_USE_SSC STREQUAL AUTO)
Expand All @@ -190,7 +188,7 @@ if(NOT MSVC)
endif()

# Table
if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "PGI") AND NOT MSVC)
if(NOT MSVC)
if(ZeroMQ_FOUND)
if(ADIOS2_USE_Table STREQUAL AUTO)
set(ADIOS2_HAVE_Table TRUE)
Expand Down
4 changes: 1 addition & 3 deletions source/adios2/toolkit/format/dataman/DataManSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,6 @@ int DataManSerializer::PutDeferredRequest(const std::string &variable,
{
throw("DataManSerializer::PutDeferredRequest() requested "
"start, count and shape do not match");
continue;
}
bool toContinue = false;
for (size_t i = 0; i < start.size(); ++i)
Expand Down Expand Up @@ -778,7 +777,7 @@ VecPtr DataManSerializer::GenerateReply(
"but failed to deserialize due to " +
std::string(e.what()),
true, true);
step = -1;
step = std::numeric_limits<size_t>::max();
return replyLocalBuffer;
}

Expand Down Expand Up @@ -1122,7 +1121,6 @@ DmvVecPtr DataManSerializer::GetEarliestLatestStep(
return nullptr;
}
}
return nullptr;
}

void DataManSerializer::Log(const int level, const std::string &message,
Expand Down
1 change: 0 additions & 1 deletion testing/adios2/engine/dataman/TestDataMan3DMemSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ void DataManReaderP2PMemSelect(const Dims &shape, const Dims &start,
dataManIO.SetParameters(engineParams);
adios2::Engine dataManReader = dataManIO.Open("stream", adios2::Mode::Read);
std::vector<int> myInts = reader_data;
size_t i;
while (true)
{
adios2::StepStatus status = dataManReader.BeginStep(StepMode::Read, 5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6627,8 +6627,6 @@ class binary_reader
}
*out++ = static_cast<char>(current);
}

return true;
}

/*!
Expand Down

0 comments on commit ec93d88

Please sign in to comment.