Skip to content

Commit

Permalink
23.11 Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemoret-nv committed Dec 1, 2023
1 parent 8aa9216 commit dbce7f9
Show file tree
Hide file tree
Showing 30 changed files with 11 additions and 63 deletions.
2 changes: 1 addition & 1 deletion ci/conda/environments/dev_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
- benchmark=1.6.0
- boost-cpp=1.82
- ccache
- cmake=3.24
- cmake=3.25
- cuda-toolkit # Version comes from the channel above
- cxx-compiler # Sets up the distro versions of our compilers
- doxygen=1.9.2
Expand Down
2 changes: 1 addition & 1 deletion python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class AsyncioRunnable : public AsyncSink<InputT>,
/**
* @brief A semaphore used to control the number of outstanding operations. Acquire one before
* beginning a task, and release it when finished.
*/
*/
std::counting_semaphore<8> m_task_tickets{8};
};

Expand Down
4 changes: 3 additions & 1 deletion python/mrc/_pymrc/include/pymrc/coro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#include <coroutine>
#include <exception>
#include <memory>
#include <ostream>
#include <sstream> // for operator<<, basic_ostringstream
#include <stdexcept> // for runtime_error
#include <string> // for string
#include <utility>

// Dont directly include python headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include <array>
#include <exception>
#include <functional>
#include <sstream>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/src/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "mrc/types.hpp"

#include <boost/fiber/future/async.hpp>
#include <boost/fiber/future/future.hpp>
#include <boost/fiber/future/future_status.hpp>
#include <glog/logging.h>
#include <pybind11/cast.h>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/src/module_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include <array>
#include <memory>
#include <ostream>
#include <utility>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/src/module_wrappers/pickle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include <array>
#include <memory>
#include <ostream>

Expand Down
3 changes: 1 addition & 2 deletions python/mrc/_pymrc/src/module_wrappers/shared_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
#include "pymrc/utilities/object_cache.hpp"

#include <pybind11/cast.h>
#include <pybind11/pybind11.h>
#include <pybind11/pybind11.h> // IWYU pragma: keep
#include <pybind11/pytypes.h>

#include <array>
#include <cstddef>
#include <stdexcept>
#include <string>
Expand Down
5 changes: 0 additions & 5 deletions python/mrc/_pymrc/src/segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@
#include "mrc/channel/status.hpp"
#include "mrc/edge/edge_builder.hpp"
#include "mrc/node/port_registry.hpp"
#include "mrc/node/rx_sink_base.hpp"
#include "mrc/node/rx_source_base.hpp"
#include "mrc/runnable/context.hpp"
#include "mrc/segment/builder.hpp"
#include "mrc/segment/object.hpp"
#include "mrc/types.hpp"

#include <glog/logging.h>
#include <pybind11/cast.h>
Expand All @@ -44,15 +41,13 @@
#include <exception>
#include <fstream>
#include <functional>
#include <future>
#include <iterator>
#include <map>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <typeindex>
#include <utility>
#include <vector>

// IWYU thinks we need array for py::print
// IWYU pragma: no_include <array>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/src/subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <pybind11/pytypes.h>
#include <rxcpp/rx.hpp>

#include <array>
#include <exception>
#include <functional>
#include <stdexcept>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/src/utilities/object_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <pybind11/pytypes.h>
#include <pylifecycle.h>

#include <array>
#include <mutex>
#include <ostream>
#include <stdexcept>
Expand Down
4 changes: 1 addition & 3 deletions python/mrc/_pymrc/src/watchers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "mrc/benchmarking/tracer.hpp"
#include "mrc/node/rx_node.hpp"
#include "mrc/node/rx_sink.hpp"
#include "mrc/node/rx_source.hpp"
#include "mrc/segment/builder.hpp"
#include "mrc/segment/object.hpp"

#include <nlohmann/json.hpp>
#include <pybind11/gil.h>
Expand All @@ -34,11 +34,9 @@

#include <cstddef>
#include <functional>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace mrc::pymrc {

Expand Down
2 changes: 1 addition & 1 deletion python/mrc/_pymrc/tests/test_asyncio_runnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class __attribute__((visibility("default"))) TestAsyncioRunnable : public ::test

std::unique_ptr<pybind11::scoped_interpreter> TestAsyncioRunnable::m_interpreter;

class PythonCallbackAsyncioRunnable : public pymrc::AsyncioRunnable<int, int>
class __attribute__((visibility("default"))) PythonCallbackAsyncioRunnable : public pymrc::AsyncioRunnable<int, int>
{
public:
PythonCallbackAsyncioRunnable(pymrc::PyObjectHolder operation) : m_operation(std::move(operation)) {}
Expand Down
2 changes: 0 additions & 2 deletions python/mrc/_pymrc/tests/test_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@
#include <rxcpp/rx.hpp>

#include <atomic>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace py = pybind11;
namespace pymrc = mrc::pymrc;
Expand Down
3 changes: 0 additions & 3 deletions python/mrc/_pymrc/tests/test_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
#include "mrc/options/topology.hpp"
#include "mrc/segment/builder.hpp"
#include "mrc/segment/object.hpp"
#include "mrc/types.hpp"

#include <boost/fiber/future/future.hpp>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <pybind11/cast.h>
Expand All @@ -46,7 +44,6 @@
#include <cstddef>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/tests/test_serializers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <pybind11/pytypes.h>
#include <pybind11/stl.h> // IWYU pragma: keep

#include <array>
#include <ostream>
#include <stdexcept>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/tests/test_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <climits>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Expand Down
2 changes: 0 additions & 2 deletions python/mrc/benchmarking/watchers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
#include <pybind11/gil.h> // IWYU pragma: keep
#include <pybind11/pybind11.h>

#include <array>
#include <cstddef>
#include <functional>
#include <memory>
#include <vector>

namespace mrc::pymrc {
namespace py = pybind11;
Expand Down
6 changes: 0 additions & 6 deletions python/mrc/core/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@
#include "pymrc/port_builders.hpp"
#include "pymrc/types.hpp"

#include "mrc/node/rx_sink_base.hpp"
#include "mrc/node/rx_source_base.hpp"
#include "mrc/types.hpp"
#include "mrc/utils/string_utils.hpp"
#include "mrc/version.hpp"

#include <boost/fiber/future/future.hpp>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <rxcpp/rx.hpp>

#include <map>
#include <memory>
#include <sstream>
#include <vector>

namespace mrc::pymrc {

Expand Down
1 change: 0 additions & 1 deletion python/mrc/core/coro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include <coroutine>
#include <memory>
#include <ostream>
#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion python/mrc/core/operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <pybind11/pytypes.h>
#include <pybind11/stl.h> // IWYU pragma: keep

#include <array>
#include <sstream>

namespace mrc::pymrc {
Expand Down
1 change: 0 additions & 1 deletion python/mrc/core/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h> // IWYU pragma: keep

#include <array>
#include <sstream>

namespace mrc::pymrc {
Expand Down
3 changes: 0 additions & 3 deletions python/mrc/core/segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include <array>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <sstream>
#include <vector>

namespace mrc::pymrc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@
#include "mrc/experimental/modules/stream_buffer/stream_buffer_module.hpp"
#include "mrc/modules/module_registry.hpp"
#include "mrc/modules/module_registry_util.hpp"
#include "mrc/node/operators/broadcast.hpp"
#include "mrc/node/rx_sink.hpp"
#include "mrc/node/rx_source.hpp"
#include "mrc/version.hpp"

#include <pybind11/cast.h>
#include <pybind11/functional.h> // IWYU pragma: keep
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <rxcpp/rx.hpp>

#include <array>
#include <map>
#include <memory>
#include <string>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@
#include <pybind11/cast.h>
#include <pybind11/functional.h> // IWYU pragma: keep
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <pybind11/stl.h> // IWYU pragma: keep

#include <array>
#include <functional>
#include <map>
#include <string>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
#include <pybind11/cast.h>
#include <pybind11/pybind11.h>

#include <map>
#include <memory>
#include <vector>

namespace mrc::pymrc {

Expand Down
2 changes: 1 addition & 1 deletion python/mrc/core/subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <pybind11/functional.h> // IWYU pragma: keep
#include <pybind11/gil.h> // IWYU pragma: keep(for call_guard)
#include <pybind11/pybind11.h>
#include <rxcpp/rx.hpp>

#include <array>
#include <memory>
#include <sstream>

Expand Down
3 changes: 0 additions & 3 deletions python/mrc/tests/sample_modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@
#include "pymrc/utils.hpp"

#include "mrc/modules/module_registry_util.hpp"
#include "mrc/node/rx_source.hpp"
#include "mrc/utils/string_utils.hpp"
#include "mrc/version.hpp"

#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include <map>
#include <memory>
#include <sstream>
#include <vector>

Expand Down
7 changes: 0 additions & 7 deletions python/mrc/tests/test_edges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,22 @@

#include "mrc/channel/status.hpp"
#include "mrc/edge/edge_connector.hpp"
#include "mrc/node/rx_sink_base.hpp"
#include "mrc/node/rx_source_base.hpp"
#include "mrc/segment/builder.hpp"
#include "mrc/segment/object.hpp"
#include "mrc/types.hpp"
#include "mrc/utils/string_utils.hpp"
#include "mrc/version.hpp"

#include <boost/fiber/future/future.hpp>
#include <pybind11/cast.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <rxcpp/rx.hpp>

#include <array>
#include <cstddef>
#include <exception>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace mrc::pytests {

Expand Down

0 comments on commit dbce7f9

Please sign in to comment.