wiki:mccpfe

Version 1 (modified by Mathieu Morlighem, 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

Error: Failed to load processor matlab
No macro or processor named 'matlab' found

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

##OPTION 1
#/u/scicon/tools/bin/check_licenses -m
#matlab -r "addpath $ISSM_DIR/src/m/dev; temp; devpath; exit" > TEMP

#OPTION2
./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
Note: See TracWiki for help on using the wiki.