discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] No change when set_processor affinity() is used


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] No change when set_processor affinity() is used
Date: Tue, 12 May 2015 19:06:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

If that file does not exist, GNU Radio 3.6.5 would definitely use the thread-per-block scheduler; you can try
export GR_SCHEDULER=TPB
prior to executing your flow graph from the same shell.

In fact, looking at top_block_impl.cc:59 in 3.6.5.1, it seems the scheduler selection isn't read from a config file at all (which is a bug, which I think someone might timely fix, it's still there in 3.7...); if you want to know what *your* GNU Radio selects as a default scheduler, do

export GR_SCHEDULER="a room full of monkeys trying to act like managers"
python yourflowgraph.py

The default scheduler will be printed.

Best regards,
Marcus


On 05/12/2015 06:52 PM, Nemanja Savic wrote:

You are probably right, cause that file doesn't even exist. I looked at default gnuradio-core.conf in conf.d.
I suppose that something like that should be written in gnuradi-core.conf, but really nothing.
Where can I find which option should be added?

On Tue, May 12, 2015 at 6:33 PM, Marcus D. Leech <address@hidden> wrote:
On 05/12/2015 12:25 PM, Nemanja Savic wrote:
Hi all guys,

I have a flowgraph where I have three parallel paths for filtering signal stored in a file. Here the picture of my flowgraph:

Inline image 1

I use gnuradio 3.6.5.1. When I run the script it uses only one processor, and since I have 4 cores, I would like to run every of the paths on another processor. For every filter I do set_processr_affinity[some number between 0 and ]. When I run the script nothing changes, it still runs on a single core. Am I missing something with set_processor_affinity method?

Best,

--
Nemanja Savić


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
My guess is that your ~/.gnuradio/config.conf   specifies to use the single-threaded scheduler.





--
Nemanja Savić


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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