Version 2 (modified by 5 years ago) ( diff ) | ,
---|
Pleiades only has about 15 MATLAB licenses on the cluster and does not allow to run MATLAB on batch jobs (submitted through qsub). The alternative is to compile your MATLAB functions for deployment using mcc (https://www.mathworks.com/help/compiler/mcc.html)
Precompile your MATLAB code
Potential Problems:
- mcc needs to see all the m files and will not be able to interpret a new m file created on the fly (like we do with
parameterize
)
- other issues?
Submit a job
Make sure to change ....
#PBS -S /bin/bash #PBS -l select=1:ncpus=28:model=bro #PBS -l walltime=100 #PBS -q devel #PBS -W group_list=s1690 #PBS -m e #PBS -o /home1/mmorligh/issm/trunk-jpl/test/NightlyRun/run.outlog #PBS -e /home1/mmorligh/issm/trunk-jpl/test/NightlyRun/run.errlog . /usr/share/modules/init/bash #load modules module load comp-intel/2016.2.181 module load mpi-sgi/mpt module load matlab #Export some variables export PATH="$PATH:." export MPI_LAUNCH_TIMEOUT=520 export MPI_GROUP_MAX=64 #ISSM stuff export ISSM_DIR="/u/mmorligh/issm/trunk-jpl/" source $ISSM_DIR/etc/environment.sh #move and start simulation cd /home1/mmorligh/issm/trunk-jpl/test/NightlyRun #Run the precompiled code ./run_testMCC.sh $ISSM_DIR/lib:$ISSM_DIR/externalpackages/gsl/install/lib:$ISSM_DIR/externalpackages/petsc/install/lib:/nasa/intel/Compiler/2016.2.181/mkl/lib/intel64/:/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/compiler/lib/intel64/:/nasa/sgi/mpt/2.15r20/lib:/nasa/matlab/2017b
If you have undefined symbols, you may need to add a path to the ./run_testMCC.sh
command.
Note:
See TracWiki
for help on using the wiki.