Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
kordejong committed Feb 29, 2024
1 parent 1b28cef commit ac92aa5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions source/framework/python/src/partitioned_route/wait.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "lue/framework/core/component.hpp"
#include "lue/framework/serial_route.hpp"
#include <pybind11/pybind11.h>


namespace lue::framework {
namespace {

template<typename RouteID, Rank rank>
void wait(SerialRoute<RouteID, rank> const& route)
{
route.starts().wait();
}

} // Anonymous namespace


void bind_wait_serial_route(pybind11::module& module)
{
module.def("wait", wait<std::uint8_t, 2>);
module.def("wait", wait<std::uint32_t, 2>);
module.def("wait", wait<std::uint64_t, 2>);
module.def("wait", wait<std::int32_t, 2>);
module.def("wait", wait<std::int64_t, 2>);
}
} // namespace lue::framework

0 comments on commit ac92aa5

Please sign in to comment.