I am trying to start parpool with 4 workers but when I execute parpool(4) it only connects me to one worker. Can you provide help regarding this?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad Abdullah Hanif
el 29 de Ag. de 2017
Respondida: Sebastian Castro
el 30 de Ag. de 2017
Yesterday parpool was working fine and when I tried to connect to 4 workers I could. But today it is not working and it connects me to only one worker when I execute parpool(4) command
0 comentarios
Respuestas (1)
Sebastian Castro
el 30 de Ag. de 2017
You can check the maximum number of computational threads by typing the following in MATLAB.
>> maxNumCompThreads
Is the output greater than or equal to 4? Note that this function can also be used to set the maximum number of computational threads (see the documentation), but it only lasts during that MATLAB session.
Try restarting MATLAB to see if maybe this was overriden in your current session. Else, if it's a global preference, go to the MATLAB preferences, select "Parallel Computing Toolbox", and check the "Maximum number of computational threads" option there. What does it say?
- Sebastian
0 comentarios
Ver también
Categorías
Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!