#!/bin/bash -l #SBATCH --job-name=matlab_multithread_pct #SBATCH --mail-user=user@uni-hannover.de #SBATCH --mail-type=BEGIN,END,FAIL #SBATCH --nodes=1 #SBATCH --ntasks=12 #SBATCH --mem-per-cpu=3G #SBATCH --time=00:40:00 #SBATCH --output matlab_multithread-job_%j.out # Compute node the job ran on echo "Job ran on:" $HOSTNAME # Load modules module load MATLAB/2017a # Change to work dir: cd $SLURM_SUBMIT_DIR # Log file name LOGFILE=$(echo $SLURM_JOB_ID | cut -d"." -f1).log # The program to run matlab -nodesktop -nosplash < pi_parallel.m > $LOGFILE 2>&1