Re: [Discuss-gnuradio] Bidirectional communication between attached bloc
Re: [Discuss-gnuradio] Bidirectional communication between attached blocks
Mon, 20 Apr 2015 14:09:22 +0000
I cannot do it.
For my thesis,I'm trying do bring various part of GnuRadio over CUDA.. My idea is to rewrite already existing blocks with CUDA, possibly without breaking compatibility with actual implementation of gnuradio. In this way a normal user can use these blocks without problems.
For the moment, I've token more confidence with gnuradio, made an FM CUDA receiver and started to port over CUDA some blocks. Is mandatory to minimize host-device memcpy.
My actual approach is : each block loads its code and communicate with neighboors using async transfers,streams and other(so I need to pass addresses of memory locations,lock bits,etc..
My next step will be: at the beginning,each block will send down its device code and parameters..the block at the and of the chain will make a dynamic compilation (CUDA 7).. if I'll have additional time I'll also use warp parallelism(reducing global-shared memcpy)
Thanks in any case,
Il giorno lun 20 apr 2015 alle ore 12:48 Marcus Müller <address@hidden> ha scritto:
I just realized: Things might be much more easy than that, even:
What you do sounds like a job for a hierarchical block; if you're
not used to that concept: It's just a "subflowgraph", represented as
a block with in- and outputs.
If you put both your blocks inside, you'll always have them
together. And: in the constructor of your hierarchical block, you
can for example first construct your cuda block, and then give your
"downstream" block the pointer to that in its constructor.
To the user, this will look like one block, though there are two (or
On 04/20/2015 12:29 PM, marco Ribero
Thank you very much. Your solution is much cleaner.
Have a good day,
Il giorno lun 20 apr 2015 alle ore
09:29 Marcus Müller <address@hidden>
what you describe as ID already exist: every block has a
function alias(), giving it a string "name", which can
be used with global_block_registry::block_lookup(name)
You will need to wrap your alias in a pmt::intern to get
it into a stream tag, so use that with block_lookup, and
cast the result to your_block_type::sptr.