[Discuss OpenCPI] Sharing workload between multiple workers

From: <dwp_at_md1tech.co.uk>
Date: Thu, 18 May 23 15:26:55 +0000

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






Screenshot2023-05-18at16.17.05.png
(image/png attachment: Screenshot2023-05-18at16.17.05.png)

Received on Thu May 18 2023 - 15:26:55 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT