Created
March 31, 2016 20:07
-
-
Save larsvilhuber/68a4edc6fc8451fb3803b80335666eee to your computer and use it in GitHub Desktop.
A complete qsub for Matlab would look like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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