Re: [Discuss OpenCPI] Multithreaded RCC workers
Each RCC container is its own thread. But using ocpirun you can spawn multiple RCC Containers using the -n option where you can specify how many RCC containers to create on the physical CPU. This would mean if you have 10 RCC workers you could run them on 3 different containers by using -n 3.
________________________________
From: discuss <discuss-bounces_at_lists.opencpi.org> on behalf of Travis Murphy via discuss <discuss_at_lists.opencpi.org>
Sent: Friday, March 15, 2019 1:55 PM
To: discuss_at_lists.opencpi.org
Subject: [Discuss OpenCPI] Multithreaded RCC workers
I was noticing that my RCC workers are all running as a single thread. I looked at the OpenCPI RCC Development guide and it suggests that the Container is in charge of handing out threads and threads should not be made in the worker itself. Looking through RccComponent.cc though I could not find anything other than the dispatch routine which runs the RCC workers one at a time. Is there currently support for multi-threading RCC workers in the RCC container in the current 1.4 release of the framework? If so, how is it enabled in a worker?
Thanks,
Travis Murphy
Received on Fri Mar 15 2019 - 18:06:11 CDT
This archive was generated by hypermail 2.3.0
: Fri Jun 05 2026 - 08:45:25 CDT