Why does the standalone matlab (executable) code including the parallel computing feature do not work?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Woo-Jae Cheong
le 30 Juil 2018
Modifié(e) : Walter Roberson
le 31 Juil 2018
The (compiled) standalone matlab code (.exe) with the parallel computing/multi-core processing feature do not work even though the matlab script (.m) perfectly executes the task.
Is this the Matlab R2011b software limitation? Is there any solution to this problem?
0 commentaires
Réponse acceptée
OCDER
le 30 Juil 2018
Modifié(e) : OCDER
le 31 Juil 2018
NEW ANSWER:
Turn your script into a function. This is the same issue seen here for Matlab 2011 version:
OLD ANSWER:
Seems like it's a known issue and thus you must use a workaround
gcp('nocreate')
Original Q&A here:
2 commentaires
OCDER
le 31 Juil 2018
By any chance, are you compiling without java virtual machine? I get a similar message, "MATLAB: undefinedVarOrClass", if I try to compile something like this:
%main.m
gcp('nocreate')
parpool(4)
%compiler command
mcc -m main.m -R -nojvm
%running main.exe
Undefined variable "com" or class "com.mathworks.toolbox.distcomp.pmode.SessionInfo.NULL_SESSION_INFO".
Error in parpool (line 82)
Error in main (line 2)
MATLAB:undefinedVarOrClass
OCDER
le 31 Juil 2018
Turn your script into a function. Someone had the exact issue and resolved it by doing that.
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur MATLAB Compiler SDK dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!