MATLAB Answers

Shutting down some CPUs

3 views (last 30 days)
M.R. Ebrahimi
M.R. Ebrahimi on 15 Apr 2021
Answered: Raymond Norris on 15 Apr 2021
Hi
I am running a MATLAB code in a 48 CPU server. I want to run only 8 CPUs. How can I set the number of used CPUs?
Thanks
  1 Comment
Jan
Jan on 15 Apr 2021
On which operating system?

Sign in to comment.

Answers (1)

Raymond Norris
Raymond Norris on 15 Apr 2021
Try
maxNumCompThreads(8);

Community Treasure Hunt

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

Start Hunting!

Translated by