|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] why alignment feature work only when output_multiple not set |
Date: | Sat, 20 Jun 2015 17:05:06 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
But I don't know why do it can increase parallelism? Assume the following situation file_source-> multiply_const -> file_sink assume the complete file fits into the buffer, and n_best wouldn't be buffer/2, then file_source would read the whole file, and write it to the buffer. Only then, multiply_const would have something to work. It would also consume the whole input buffer at once, and produce the full output buffer. Only then, file_sink could start to work. so, at no time, more than one block would be active. You could that run on a single-core computer, and wouldn't see any difference to a multi-core computer. Even if the file is larger than the buffer, then multiply_const couldn't do anything, because it must wait for the whole time that file_sink needs to write away a complete buffer. If you restrict the maximum number of produced samples to half the output buffer size, the multipy_const block would much more often be able to execute, whilst file_sink is still writing away half of the buffer. Greetings, Marcus On 06/20/2015 04:43 PM, Tiankun Hu
wrote:
Hi Tom, Johnathan, |
[Prev in Thread] | Current Thread | [Next in Thread] |