Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of input reserve - gr trellis #20

Open
guruofquality opened this issue Nov 11, 2012 · 1 comment
Open

use of input reserve - gr trellis #20

guruofquality opened this issue Nov 11, 2012 · 1 comment
Assignees
Labels

Comments

@guruofquality
Copy link
Owner

notes in comment from gr_block.cc:

void gr_block::_update_input_reserve(void)
{
    /*!
     * Set an input reserve for fixed rate blocks.
     *
     * FIXME: Also do this when output multiple is large,
     * This makes gr-trellis pass under conditions where not fixed rate set,
     * but the output multiple is so large that default input isnt sufficient.
     */
    if (_enable_fixed_rate or _output_multiple_items > 1024)
    {
        gras::InputPortConfig config = this->input_config();
        config.reserve_items = size_t(0.5 + _output_multiple_items/_relative_rate);
        if (config.reserve_items) this->set_input_config(config);
    }
}
@guruofquality
Copy link
Owner Author

Still an issue, here is the verbose if we remove the hack-around:

gnuradio/gr-trellis/src/python/qa_trellis_test.sh 
Created default thread pool with 8 threads.
terminate called after throwing an instance of 'std::runtime_error'
  what():  input_fail called on maximum_items buffer
Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant