Skip to content

Instantly share code, notes, and snippets.

@larsvilhuber
Created March 31, 2016 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsvilhuber/68a4edc6fc8451fb3803b80335666eee to your computer and use it in GitHub Desktop.
Save larsvilhuber/68a4edc6fc8451fb3803b80335666eee to your computer and use it in GitHub Desktop.
A complete qsub for Matlab would look like this:
#!/bin/bash -l
#PBS -N myMatlab
#PBS -l ncpus=8
#PBS -l mem=32768mb
#PBS -j oe
#PBS -l walltime=05:00:00
#PBS -m ae
# The following line should ALWAYS be included
source /etc/profile.d/modules.sh
module load matlab
cd $PBS_O_WORKDIR
matlab -nojvm -nodesktop -nosplash < program.m > program.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment