Multi-threading is still some ways away - but thread safety is slowly falling
into place. Is running in separate processes a possibility with GNU Radio for
now - with some forking?
-viral
On 21-Apr-2015, at 1:47 am, Jay Kickliter jay.kickli...@gmail.com wrote:
Thanks Jameson. I've read
Thanks for the suggestion. I think I'll try that. I've never written
threaded code before, so I have bit of reading to do.
On Tuesday, April 21, 2015 at 12:53:49 PM UTC-6, Spencer Russell wrote:
For now can you just wrap all your libjulia access in a shared mutex on
the wrapper side?
For now can you just wrap all your libjulia access in a shared mutex on
the wrapper side? Obviously you'll lose the benefits of parallelism
while you're in Julia land, but it beats a segfault.
-s
On Tue, Apr 21, 2015, at 09:46 AM, Jay Kickliter wrote:
Yes, you can run in separate processes and
Yes, you can run in separate processes and pipe data over ZeroMQ. That's
how I was using testing my Julia DSP code before writing this block. It's
not very convenient though.
When thread safety is here and I call libjulia from two different threads,
will one block the other? Will it be
Thanks Spencer, it worked. Only took two lines of code.
On Tuesday, April 21, 2015 at 12:53:49 PM UTC-6, Spencer Russell wrote:
For now can you just wrap all your libjulia access in a shared mutex on
the wrapper side? Obviously you'll lose the benefits of parallelism while
you're in Julia
Thanks Jameson. I've read that Julia was working on threading, but in my
naiveté I didn't think that applied in this context. It really limits this
usefulness of this project. Generally I'm only working on one custom block
at time, and can probably work around it.
On Monday, April 20, 2015 at
This is really cool. I had heard about GNU Radio, and now this is a good
excuse to learn a bit more about it. :-)
-viral
On Monday, April 20, 2015 at 7:52:51 PM UTC+5:30, Jay Kickliter wrote:
I just pushed a rough draft gr-juliaffi
https://github.com/JayKickliter/gr-juliaffi to GitHub. It
Viral, you might be able to answer this one. In GNURadio, every block runs
in its own thread. When I have two julia blocks, each running in separate
threads and calling jl_init, should that cause a problem? It seems to work
fine when I run a quick unit test, but crashes hard when actually
Julia doesn't pay any attention to threading (currently), so it'll try to
run all of those thread units in the same address space and just generally
not work (repeated calls to jl_init are no-ops).
On Mon, Apr 20, 2015 at 3:38 PM Jay Kickliter jay.kickli...@gmail.com
wrote:
Viral, you might be