#!/bin/bash -l #Set the name of the job #$-N hpc_math #Join Error and output streams #$-j y #Set the name for the output from the job #$-o job.log #request 4 cores for parallelization #$-pe omp 4 # Set environment variables module load mathematica export OMP_NUM_THREADS=$NSLOTS #Run the script wolfram -script multicore_ex.m