Shutting down some CPUs

2 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

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!