Skip to content

Commit

Permalink
Revert "Merge pull request #1047 from aronhelser/inline_engine_start"
Browse files Browse the repository at this point in the history
This reverts commit 46c0364, reversing
changes made to f8bfbfd.
  • Loading branch information
Chuck Atkins committed Feb 12, 2019
1 parent 23ecf49 commit 99defff
Show file tree
Hide file tree
Showing 28 changed files with 8 additions and 1,866 deletions.
5 changes: 0 additions & 5 deletions bindings/CXX11/cxx11/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ Engine::Engine(core::Engine *engine) : m_Engine(engine) {}
template void Engine::Get<T>(const std::string &, std::vector<T> &, \
const Mode); \
\
template void Engine::Get<T>( \
Variable<T>, typename Variable<T>::Info & info, const Mode); \
template void Engine::Get<T>( \
const std::string &, typename Variable<T>::Info &info, const Mode); \
\
template std::map<size_t, std::vector<typename Variable<T>::Info>> \
Engine::AllStepsBlocksInfo(const Variable<T> variable) const; \
\
Expand Down
49 changes: 0 additions & 49 deletions bindings/CXX11/cxx11/Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,50 +264,6 @@ class Engine
void Get(const std::string &variableName, std::vector<T> &dataV,
const Mode launch = Mode::Deferred);

/**
* Get data associated with a Variable from the Engine. Data is
* associated with a block selection, and data is retrieved from
* variable's BlockInfo.
* @note Preliminary, experimental API, may change soon.
* @param variable contains variable metadata information
* @param info block info struct associated with block selection,
* call will link with implementation's block info.
* @param launch mode policy
* <pre>
* Mode::Deferred, lazy evaluation, do not use data until
* first PerformGets, EndStep, or Close. This is the preferred way.
* Mode::Sync, data is obtained by the Engine and can be used
* immediately.
* Special case, only use if necessary.
* </pre>
* @exception std::invalid_argument for invalid variable or nullptr data
*/
template <class T>
void Get(Variable<T> variable, typename Variable<T>::Info &info,
const Mode launch = Mode::Deferred);
/**
* Get data associated with a Variable from the Engine. Data is
* associated with a block selection, and data is retrieved from
* variable's BlockInfo. Overloaded version
* to get variable by name.
* @note Preliminary, experimental API, may change soon.
* @param variable contains variable metadata information
* @param info block info struct associated with block selection,
* call will link with implementation's block info.
* @param launch mode policy
* <pre>
* Mode::Deferred, lazy evaluation, do not use data until
* first PerformGets, EndStep, or Close. This is the preferred way.
* Mode::Sync, data is obtained by the Engine and can be used
* immediately.
* Special case, only use if necessary.
* </pre>
* @exception std::invalid_argument for invalid variable or nullptr data
*/
template <class T>
void Get(const std::string &variableName, typename Variable<T>::Info &info,
const Mode launch = Mode::Deferred);

/** Perform all Get calls in Deferred mode up to this point */
void PerformGets();

Expand Down Expand Up @@ -378,11 +334,6 @@ class Engine
extern template void Engine::Get<T>(const std::string &, std::vector<T> &, \
const Mode); \
\
extern template void Engine::Get<T>( \
Variable<T>, typename Variable<T>::Info & info, const Mode); \
extern template void Engine::Get<T>( \
const std::string &, typename Variable<T>::Info &info, const Mode); \
\
extern template std::map<size_t, std::vector<typename Variable<T>::Info>> \
Engine::AllStepsBlocksInfo(const Variable<T> variable) const; \
\
Expand Down
8 changes: 0 additions & 8 deletions bindings/CXX11/cxx11/Engine.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ ToBlocksInfo(const std::vector<typename core::Variable<
coreBlocksInfo)
{
typename Variable<T>::Info blockInfo;
// doesn't work because coreBlockInfo is transient.
// blockInfo.m_Info = &coreBlockInfo;
blockInfo.Start = coreBlockInfo.Start;
blockInfo.Count = coreBlockInfo.Count;
blockInfo.IsValue = coreBlockInfo.IsValue;
Expand All @@ -48,7 +46,6 @@ ToBlocksInfo(const std::vector<typename core::Variable<
blockInfo.Min = coreBlockInfo.Min;
blockInfo.Max = coreBlockInfo.Max;
}
blockInfo.BlockID = coreBlockInfo.BlockID;
blocksInfo.push_back(blockInfo);
}

Expand Down Expand Up @@ -203,11 +200,6 @@ Engine::AllStepsBlocksInfo(const Variable<T> variable) const
return allStepsBlocksInfo;
}

// Design Node: All Info structs are copied. This prevents Engine::Get() from
// connecting the Core Info struct to Binding Info struct when this method is
// called. Instead of returning a vector, BlocksInfo could populate a vector member
// of the Variable, and those could contain pointers to the Core Info structs,
// enabling users of the Inline engine to do Info.Data()
template <class T>
std::vector<typename Variable<T>::Info>
Engine::BlocksInfo(const Variable<T> variable, const size_t step) const
Expand Down
1 change: 0 additions & 1 deletion bindings/CXX11/cxx11/Variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "Operator.h"

#include "adios2/ADIOSTypes.h"
#include "adios2/core/Variable.h"

namespace adios2
{
Expand Down
6 changes: 4 additions & 2 deletions docs/user_guide/source/engines/engines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ Parameters are passed at:

2. Compile time ``IO::AddTransport`` (``adios2_set_transport_parameter`` in C, Fortran)

3. :ref:`Runtime Configuration Files` in the :ref:`ADIOS` component.
3. :ref:`Runtime Configuration Files` in the :ref:`ADIOS` component.

.. include:: bp3.rst
.. include:: hdf5.rst
.. include:: insitu_mpi.rst
.. include:: dataman.rst
.. include:: sst.rst
.. include:: inline.rst



40 changes: 0 additions & 40 deletions docs/user_guide/source/engines/inline.rst

This file was deleted.

1 change: 0 additions & 1 deletion examples/hello/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ add_subdirectory(bpReader)
add_subdirectory(bpTimeWriter)
add_subdirectory(bpFlushWriter)
add_subdirectory(bpAttributeWriter)
add_subdirectory(inlineReaderWriter)
add_subdirectory(skeleton)

if(ADIOS2_HAVE_DataMan)
Expand Down
4 changes: 1 addition & 3 deletions examples/hello/bpTimeWriter/helloBPTimeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ int main(int argc, char *argv[])
for (unsigned int v = 0; v < variablesSize; ++v)
{
myFloats[0] = static_cast<float>(v + timeStep);
// Note: Put is deferred, so all variables will see v == 9
// and myFloats[0] == 9, 10, or 11
bpWriter.Put<float>(bpFloats[v], myFloats.data());
bpWriter.Put(bpFloats[v], myFloats.data());
}
const std::string myString(
"Hello from rank: " + std::to_string(rank) +
Expand Down
11 changes: 0 additions & 11 deletions examples/hello/inlineReaderWriter/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 99defff

Please sign in to comment.