Hello,
My goal is to speed up a certain process through parallelisation. I have used an FFT as an example but this was more about exploring the capabilities of openCPI.
I was advised that creating new threads from within a worker is not recommended and that each worker exists in its own thread so it seemed logical to create multiple instances of a worker that can handle a portion of the workload and have these instances run in parallel.\
See the screenshot attached showing the 3 components I created and how data is sent between them.
It is clear that in the current implementation this is not being achieved, instead the `Partial FFT` workers are entering their `run` methods one after the other and CPU usage is stuck at using a single core.
Is this something that is possible using openCPI?
What issues can arise from creating threads within workers that are terminated before the `run` method is exited?
Thanks in advance,\
Dan
Received on Thu May 18 2023 - 15:26:55 CDT