Does matlab create only one worker on each core when you use parallel toolbox?

I have R2011b, use parallel toolbox and wanna know how it duplicates workers. Is it supposed to create just one worker on each core?

 Réponse acceptée

Yes, that's right - the default is to use the number of physical cores (not hyperthreaded cores). You can override this choice by setting the NumWorkers property of the local scheduler.

4 commentaires

thanks a lot. so I can have workers more than the number of my physical cores; but is there any upper limit for number of workers?
Edric Ellis
Edric Ellis le 7 Mai 2015
Modifié(e) : Edric Ellis le 7 Mai 2015
Yes, in R2011b the limit is 12 for the local scheduler. If you upgrade to R2014a or later, this limit is removed. (There is no limit in R2011b if you use MATLAB Distributed Computing Server workers).
I appreciate it
The Parallel Computing Toolbox doesn't assign workers to cores, the OS does as system resources become available.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parallel Computing Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by