Raad2: Mathematica

From TAMUQ Research Computing User Documentation Wiki
Jump to navigation Jump to search


Sample Job File

#!/bin/bash
#SBATCH -J mathematica_job
#SBATCH -p s_debug
#SBATCH --qos sd
#SBATCH --time=10:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --output=Mathematica.o%j
#SBATCH --error=Matematica.o%j
#SBATCH --hint=nomultithread
#SBATCH --gres=craynetwork:0            # Comment out this line by prepending with another # sign; if you are submitting to l_long,l_short queues.
##SBATCH --mem-per-cpu=5000
##SBATCH --mail-type=ALL
##SBATCH --mail-user=youremail@qatar.tamu.edu

echo "Starting at "`date`
echo "SLURM_JOBID="$SLURM_JOBID
echo "SLURM_JOB_NODELIST"=$SLURM_JOB_NODELIST
echo "SLURM_NNODES"=$SLURM_NNODES
echo "SLURMTMPDIR="$SLURMTMPDIR
echo "working directory = "$SLURM_SUBMIT_DIR


export MATHEMATICA_VER="901"

module load mathematica/$MATHEMATICA_VER

echo "Starting Simulation.."

echo "Using Mathematica $MATHEMATICA_VER"

srun --ntasks=1 --cpus-per-task=8 math -noprompt -script test.m

echo "Simulation Ending.."

echo "Ending at "`date`