matlab parfor loops in unix
Afficher commentaires plus anciens
Hi everybody, i have a matlab script with parfor loop used. in my local personal PC, the script works in a parallel fashion. however, after i submitted it to unix, it seems the script runs in "for" loop (not in parallel way) as first of all, the time of run is even more than that in my personal PC. Can somebody help me with this? Thanks. Best, J.
9 commentaires
Rik
le 16 Nov 2017
Are you getting any warning or error?
Looking at the documentation and the system requirements, I see no reason why parfor shouldn't work on a Unix system.
Adam
le 16 Nov 2017
Does the computer running the Unix system have the Parallel Toolbox?
Code with a parfor that is run on a machine that does not have the Parallel Toolbox thankfully doesn't simply crash, but it does revert to just using a standard for loop.
Julie G
le 16 Nov 2017
Modifié(e) : Walter Roberson
le 16 Nov 2017
Julie G
le 16 Nov 2017
Adam
le 16 Nov 2017
So you have unix on the same machine? I don't use Matlab on Unix, but again, does it have the required parallel toolbox license in the Unix version?
Walter Roberson
le 16 Nov 2017
On the unix machine, inside MATLAB do
ver('distcomp')
If it does not show Parallel Computing Toolbox in the output then the parallel computing toolbox is not installed.
If it is installed, there is still the possibility that you do not have a license for it:
license('test', 'Distrib_Computing_Toolbox')
will return 1 if there is a license for the parallel computing toolbox.
Julie G
le 17 Nov 2017
Walter Roberson
le 17 Nov 2017
I know that at least some parts of the Parallel Computing Toolbox require java. I do not know if parfor is one of them.
Edric Ellis
le 20 Nov 2017
To run in parallel, parfor does require Java to be enabled.
Réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!