Programatically determine Matlabpool Maximum Number of Local Workers
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm developing some code which will be shared with colleagues running different versions of matlab. Is there a way to programatically tell the maximum number of workers in the local pool?
0 commentaires
Réponse acceptée
Shashank Prasanna
le 6 Mai 2013
>> myCluster = parcluster('local');
>> myCluster.NumWorkers
For ver > R2012a, for earlier you may have to use findresource. This change is captured in the release notes for R2012a:
If your colleagues use earlier releases, you may have to do a version check and then an if else block.
>> version -release
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Parallel Computing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!