maxNumCompThreads(1);

11 vues (au cours des 30 derniers jours)
Xiaoge Wang
Xiaoge Wang le 3 Mar 2016
Modifié(e) : Dyuman Joshi le 23 Oct 2025 à 15:05
This is no longer valid. Then how to set the max number of threads in R2015b?

Réponses (1)

Rebecca Krosnick
Rebecca Krosnick le 8 Mar 2016
maxNumCompThreads(1) should still work. The documentation page for maxNumCompThreads indicates that maxNumCompThreads will be removed in a future version: http://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html
Another option for setting the maximum number of computational threads to 1 is to use the -singleCompThread option when starting MATLAB® to limit MATLAB to a single computational thread. Open MATLAB from a terminal with
matlab -singleCompThread
  1 commentaire
Dyuman Joshi
Dyuman Joshi le 23 Oct 2025 à 14:59
Modifié(e) : Dyuman Joshi le 23 Oct 2025 à 15:05
The documentation page no longer mentions that the function/functionality will be removed. Nor there is any notice specifying whether it has been deprecated or not.
It would be better if TMW could specify what the status for maxNumCompThreads is.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by