How to change NumWorkers property in compiled applications?
Show older comments
Hi!
using the MATLAB compiler I created a standalone executable from a script that uses a parallel pool. It works fine with 6 workers before the compilation (2016a) but I experience problems on another computer where I installed the corresponding MCR (9.0.1 running on a Linux system). There the executable works only with a maximum of 3 workers. Is there a way to increase the number of workers for compiled executables? I get the following error message:
"Starting parallel pool (parpool) using the 'local' profile ... Error using parpool (line 103) You requested a minimum of 6 workers, but the cluster "local" has the NumWorkers property set to allow a maximum of 3 workers. To run a communicating job on more workers than this (up to a maximum of 512 for the Local cluster), increase the value of the NumWorkers property for the cluster. The default value of NumWorkers for a Local cluster is the number of cores on the local machine."
Regards, Georg
Accepted Answer
More Answers (1)
Georg
on 26 Sep 2016
0 votes
Categories
Find more on Parallel Computing Fundamentals in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!