How can I compile a standalone version, which supports graphic objects without a full desktop?

1 vue (au cours des 30 derniers jours)
I have created as follows a standalone version of a m-file:
mcc -m -v -R '-nodisplay,-nojvm,-singleCompThread' calibration.m
This standalone version was subsequently submitted as a job on a HPC (Linux-Environment).
The following error message was written to error.dat:
Error using figure
This functionality is no longer supported under the -nojvm startup option. For more information, see "Changes to -nojvm Startup Option" in the MATLAB Release Notes. To view the release note in your system browser, run web('<http://www.mathworks.com/help/matlab/release-notes.html#btsurqv-6'>, '-browser').
So I've tried to create a standalone version without nojvm (like: mcc -m -v -R '-nodisplay,-singleCompThread' calibration.m), but the following error message appeared (after executing the job):
Can't load '/usr/site/hpc/x86_64/generic/matlab/R2017a/bin/glnxa64/libmwstrfun.so': /usr/site/hpc/x86_64/generic/matlab/R2017a/bin/glnxa64/libmwstrfun.so: failed to map segment from shared object: Cannot allocate memory
/usr/sge/leo3e/spool/n001/job_scripts/602568: line 8: 4522 Aborted (core dumped) ./calibration
Has anyone an idea how to compile a standalone version, which also supports the figure commands and creates figures?

Réponses (1)

Glazio
Glazio le 9 Oct 2017
Modifié(e) : Glazio le 9 Oct 2017
The problem was related to the required memory per process.
This memory can be explicitly increased and specified with the SGE's resource parameter h_vmem (within a job-script).

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by