Shutting down some CPUs

1 次查看(过去 30 天)
M.R. Ebrahimi
M.R. Ebrahimi 2021-4-15
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 个)

Raymond Norris
Raymond Norris 2021-4-15
Try
maxNumCompThreads(8);

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by