Parallel computing code: it works but not when compiled -- why? how to troubleshoot?
Show older comments
I have code that submits jobs to a cluster and runs fine when launched from inside a Matlab session. The same code, when compiled, runs into problems during execution. Why would it run differently when compiled? How to troubleshoot?
What I compile using mcc is a script that calls functions I've written (in the same directory), collects their outputs, and saves it to a file. Jobs get submitted to the cluster from within the functions. The job scheduler is of type 'lsf,' not the built-in Matlab Job Scheduler (MJS)).
Compiled serial Matlab code has run fine on this cluster, but this is the first time I've tried to run compiled parallelized code. To compile I'm doing: mcc -R -nodisplay -R -nosplash -C -m myFile.m
What additional information would be relevant? Any guidance/suggestions would be much appreciated!
Thanks in advance,
2 Comments
Walter Roberson
on 7 Oct 2012
Last I knew, scripts could not be compiled (but functions can be), but it could be that that limitation has been lifted.
Answers (0)
Categories
Find more on MATLAB Parallel Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!