summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc
diff options
context:
space:
mode:
authorDavid Sorber <david.sorber@blacklynx.tech>2021-07-29 11:34:37 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-10-25 11:27:01 -0400
commitf3c558d88bc68d865f823c31e7d9aa78b3feab59 (patch)
tree026d8ff5568bc2c5ab731df29d87901cf1177e00 /gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc
parent788827ae116bef871e144abd39b1e4482208eabe (diff)
runtime: Custom Buffer/Accelerator Device Support - Milestone 2
Completion of custom buffer/accelerator device support changes: * Improved custom buffer interface by removing awkward memory allocation functions from the block class * Increased flexibility for creating custom buffers by allowing creation of buffer_single_mapped subclasses * Fully incorporated data movement abstraction into the custom buffer interface and the runtime itself; accelerated blocks are no longer directly responsible for their own data movement * Zero copy back-to-back accelerated blocks are now supported (data no longer needs to be moved back to the host between each block) Signed-off-by: David Sorber <david.sorber@blacklynx.tech> Signed-off-by: Mike Mason <mike.mason@blacklynx.tech>
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc21
1 files changed, 19 insertions, 2 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc
index 56ed5c2fe5..d6ddf570dd 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/io_signature_python.cc
@@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(io_signature.h) */
-/* BINDTOOL_HEADER_FILE_HASH(aa246441b45c1a5b872509ed410615ae) */
+/* BINDTOOL_HEADER_FILE_HASH(baf27e696237b6542ec62a4c5627ea1d) */
/***********************************************************************************/
#include <pybind11/complex.h>
@@ -40,6 +40,7 @@ void bind_io_signature(py::module& m)
py::arg("min_streams"),
py::arg("max_streams"),
py::arg("sizeof_stream_item"),
+ py::arg("buftype") = gr::buffer_double_mapped::type,
D(io_signature, make))
@@ -49,6 +50,8 @@ void bind_io_signature(py::module& m)
py::arg("max_streams"),
py::arg("sizeof_stream_item1"),
py::arg("sizeof_stream_item2"),
+ py::arg("buftype1") = gr::buffer_double_mapped::type,
+ py::arg("buftype2") = gr::buffer_double_mapped::type,
D(io_signature, make2))
@@ -59,14 +62,28 @@ void bind_io_signature(py::module& m)
py::arg("sizeof_stream_item1"),
py::arg("sizeof_stream_item2"),
py::arg("sizeof_stream_item3"),
+ py::arg("buftype1") = gr::buffer_double_mapped::type,
+ py::arg("buftype2") = gr::buffer_double_mapped::type,
+ py::arg("buftype3") = gr::buffer_double_mapped::type,
D(io_signature, make3))
+ .def_static(
+ "makev",
+ py::overload_cast<int, int, const std::vector<int>&>(&io_signature::makev),
+ py::arg("min_streams"),
+ py::arg("max_streams"),
+ py::arg("sizeof_stream_items"),
+ D(io_signature, makev))
.def_static("makev",
- &io_signature::makev,
+ py::overload_cast<int,
+ int,
+ const std::vector<int>&,
+ gr::gr_vector_buffer_type>(&io_signature::makev),
py::arg("min_streams"),
py::arg("max_streams"),
py::arg("sizeof_stream_items"),
+ py::arg("buftypes"),
D(io_signature, makev))