can parfor in compiled code access a local worker pool?
Mostrar comentarios más antiguos
I run on a dedicated multi-code computer very often mcc-compiled matlab programs, in which I execute parfor. Each program has a relatively slow startup time, I think because it is create the parallel worker pool. For my application, it would be more efficient if the pool could remain open all the time in the background, for example from a headless matlab session. Is something like that possible, or are there other solutions?
Respuestas (1)
Dasharath Gulvady
el 22 de Jul. de 2015
Editada: Dasharath Gulvady
el 22 de Jul. de 2015
0 votos
It is definitely possible for a compiled MATLAB code to utilize profiles created using Parallel Computing Toolbox. The below documentation page explains the same:
4 comentarios
emmenlau
el 22 de Jul. de 2015
Dasharath Gulvady
el 22 de Jul. de 2015
This is not possible, since no two instance of MATLAB can share the same MATLAB workers.
Dasharath Gulvady
el 24 de Jul. de 2015
Which version of MATLAB are you using? The expected behavior is not to share any workers between the MATLAB sessions. In the second MATLAB session, if you execute
>>p = gcp('nocreate');
What is the value of p? Note that, you should execute the above command without creating a pool beforehand.
Categorías
Más información sobre Parallel Computing Fundamentals en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!