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?

 Accepted Answer

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 Comments

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?
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).
The Parallel Computing Toolbox doesn't assign workers to cores, the OS does as system resources become available.

Sign in to comment.

More Answers (0)

Categories

Find more on Parallel Computing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!