summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/flat_flowgraph.cc
Commit message (Collapse)AuthorAgeFilesLines
* runtime: rename buffer_context to transfer type; also rename theDavid Sorber2021-10-251-9/+9
| | | | | | | | MAKE_CUSTOM_BUFFER_TYPE macro function to DEFINE_CUSTOM_BUFFER_TYPE; mark unused parameters from virtual functions with the [[maybe_unused]] C++ attribute Signed-off-by: David Sorber <david.sorber@blacklynx.tech>
* runtime: Custom Buffer/Accelerator Device Support - Milestone 2David Sorber2021-10-251-16/+51
| | | | | | | | | | | | | | | | | 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>
* runtime: Custom Buffer/Accelerator Device Support - Milestone 1David Sorber2021-10-251-90/+116
| | | | | | | | | | | | | | | Custom Buffer/Accelerator Device Support - Milestone 1 changes: * Refactored existing single mapped buffer code and created single mapped buffer abstraction; wrapping within single mapped buffers is handled explicitly by input blocked and output blocked callbacks that are called from block_executor * Added simple custom buffer allocation interface (NOTE: this interface will change for milestone 2) * Accelerated blocks are still responsible for data transfer but the custom buffer interface eliminates the double copy problem Signed-off-by: David Sorber <david.sorber@blacklynx.tech>
* global: Replace stdio logging with loggerDavid Winter2021-10-211-12/+10
| | | | | | | This commit replaces many uses of std::c{out,err} and printf with the appropriate GR_LOG_* directives. Signed-off-by: David Winter <david.winter@analog.com>
* gnuradio-runtime: configurable buffer sizekarel2021-02-181-1/+2
| | | | Signed-off-by: karel <5636152+karel@users.noreply.github.com>
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-319/+323
|
* runtime: replace compile-time debugging option by GR_LOG_DEBUG()Andrej Rode2018-08-261-120/+113
| | | | | Add identifier() calls to flowgraph components to return a string with a human readable string to reuse in both: the std::ostream overload and the logging system.
* runtime: connect message ports after unlock()Bastian Bloessl2016-09-301-0/+9
|
* Merge branch 'maint'Johnathan Corgan2016-05-301-2/+2
|\ | | | | | | | | Conflicts: CMakeLists.txt
| * cmake: Windows-specific fixes for compatibilityPaul Cercueil2016-05-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Properly wrap the prefix variables in quotation marks. This allows to set an empty prefix. * Fix library names when compiling for Windows. This now also works when using mingw-w64. * Fix boost module name when compiling with mingw-w64 * Fix build under mingw-w64 * Fix config.h header to avoid macro redefinition * Remove duplicated Boost::thread entry in dependencies list
* | Merge remote-tracking branch 'tom/set_max_noutput_items'Johnathan Corgan2016-02-101-0/+7
|\ \
| * | runtime: always set max_noutput_items.Tom Rondeau2016-01-281-0/+7
| |/ | | | | | | | | | | | | This makes sure that max_noutput_items() returns a valid number once the flowgraph is created. This means we can get the max number of items a buffer will ever be able to see in the block's start() function.
* | Merge remote-tracking branch 'tom/issue713'Johnathan Corgan2016-02-101-1/+5
|\ \ | |/ |/|
| * runtime: addresses issue #713.Tom Rondeau2016-01-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When disconnecting and reconnecting, buffers can change and new buffers will have their item counters zeroed out. Buffers held over will keep their current item counters at some value >> 0. In the case of the pfb_arb_resampler of issue #713, the rate update in the scheduler was getting confusing numbers and setting the rates to ridiculous values. Also, tags emitted from these new blocks will have offsets meaningless to the other blocks that held on to their buffers. This patch tells the scheduler to reset all buffer item counters (read and write) to 0 when connections are merged and also makes sure all tags are cleared from each block's input buffers. So upon a lock/unlock and reset event, all buffers' counters and tag containers are reset/cleared.
* | runtime: issue 883: fixes calculation of alignment in items.Tom Rondeau2016-01-271-2/+2
|/
* runtime: fix hierarchical block message port flattening/GRC usageTim O'Shea2015-12-081-4/+23
|
* runtime: better documentation for the set min/max output buffer functions.Tom Rondeau2015-04-091-6/+3
|
* gnuradio-runtime: added logger to flat_flowgraph and print out a warning for ↵Bill Clark2015-04-011-0/+8
| | | | when the max_output_buffer isn't set to the requested value
* runtime: changed name from set_group_delay to declare_sample_delay.Tom Rondeau2013-11-011-1/+1
|
* runtime: for blocks with a group delay, tag location should be moved ↵Tom Rondeau2013-10-291-1/+2
| | | | | | according to the delay. Since group delay is often unknown, we have added a new function set_group_delay to allow the user to set the value once delay is calculated. Also added ability to set the tag propagation delay, which is required for how the blocks::delay works.
* runtime: 2 threading issues with the shared memory system.Tom Rondeau2013-06-141-1/+10
| | | | | | 1. Making a global mutex for the VM circular buffers to use and lock for multiple top_blocks to handle accessing the memory. 2. Catch the bad_alloc exception once and retry. After 1., this rarely happens unless the thread count gets large (> 20 as an estimate).
* runtime: export list of msg connections when performance counters are enabledTim O'Shea2013-06-071-0/+9
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-0/+436