discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Parallel programming


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] Parallel programming
Date: Mon, 10 Jan 2011 15:35:13 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 01/10/2011 03:11 PM, sirjanselot wrote:
How do I know that my flow-graph is executing in thread per block mode?

As far as I can tell my only 1 core out of the 8 is being used when I run my
flow-graphs.  This is what I see when I run the performance monitor (or
whatever it is called) in Ubuntu.

I am currently using gnuradio 3.3.0 as my version.

So can I parallelize my block without having to create a meta-block as you
say?  I have a lot of for-loops and vector calculations that need to be
optimized (adaptive fir filters).
By default, each flow-graph is assigned its own thread. It's up to the kernel to schedule these as it sees fit.

Getting parallelism *inside your own custom block* is something you'll have to deal with yourself.

I've done experiments with using the multi-threaded FFTW libraries for very large transforms, which causes internal parallelism with the FFTW library. This works, and doesn't appear to adversely affect Gnu Radio
  thread-per-block scheduling.

The thread-per-block scheduler is the default behaviour, so the reason you may only be seeing one core in use is just
  due to the dynamic behaviour of your flowgraph.



--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]