How to run multiple codes on a cluster using qsub through MCR
Afficher commentaires plus anciens
Hi everybody! I use matlab in my research and currently I need to run lots of simulations. For these purposes I'm trying to run my codes on our institute cluster. We have very limited amount of licenses, so to overcome this issue I'm trying to use MCR. First I'm generating a programme which doesn't need matlab executable anymore by running this line:
$ /software/as/el6.5/matlab/R2014a/bin/mcc -o mattest -W main:MyFunc -T link:exe -d . -R nodisplay -v MyFunc.m.
This way I generate programme run_mattest.sh which calls function MyFunc.m (depends on one variable - path to the input file). Then if I run the run_mattest.sh on a server on my home node, it works well. The line for that is:
sh ~/Develop/Matlab/run_mattest.sh /software/as/el6.5/matlab/MCR_R2015a/v85 ~/modelling/space_scan/data__1.txt,
where ~/modelling/space_scan/data__1.txt - destination of input file, which my function calls. I get my desired output plus while running I get this message on a screen:
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/software/as/el6.5/matlab/MCR_R2015a/v85/runtime/glnxa64:/software/as/el6.5/matlab/MCR_R2015a/v85/bin/glnxa64:/software/as/el6.5/matlab/MCR_R2015a/v85/sys/os/glnxa64:/software/as/el6.5/matlab/MCR_R2015a/v85/sys/opengl/lib/glnxa64
Now I'm trying to submit codes on cluster. I wrote simple execution file just for one input. Body looks this way:
#!/bin/bash
#$ -N execute_mito
#$ -cwd
#$ -l virtual_free=10G,disk=10G
qsub ~/Develop/Matlab/run_mattest.sh /software/as/el6.5/matlab/MCR_R2015a/v85 ~/modelling/space_scan/data__1.txt
#./test.sh
As a result I get next error message:
/usr/share/univage/soldierantcluster/spool/node-hp0506/job_scripts/7400568: line 30: /usr/share/univage/soldierantcluster/spool/node-hp0506/job_scripts/mattest: No such file or directory
And this output message:
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/software/as/el6.5/matlab/MCR_R2015a/v85/runtime/glnxa64:/software/as/el6.5/matlab/MCR_R2015a/v85/bin/glnxa64:/software/as/el6.5/matlab/MCR_R2015a/v85/sys/os/glnxa64:/software/as/el6.5/matlab/MCR_R2015a/v85/sys/opengl/lib/glnxa64
As result, I dont get my desired output. I can't resolve it myself, and googling so far doesn't help. I would really appreciate any advice/idea!
Many thanks, Alsu
Réponses (0)
Catégories
En savoir plus sur Manage MATLAB Job Scheduler Processes 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!