maxNumCompThreads(1);

9 visualizaciones (últimos 30 días)
Xiaoge Wang
Xiaoge Wang el 3 de Mzo. de 2016
Editada: Dyuman Joshi hace alrededor de 9 horas
This is no longer valid. Then how to set the max number of threads in R2015b?

Respuestas (1)

Rebecca Krosnick
Rebecca Krosnick el 8 de Mzo. de 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 comentario
Dyuman Joshi
Dyuman Joshi hace alrededor de 9 horas
Editada: Dyuman Joshi hace alrededor de 9 horas
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by