Multicore_PBS

#!/bin/sh

#PBS -N multicore_model

#PBS -q queue_name

# Send the mail messages from the server to a user address 
# This line and the Technion address are mandatory!
#--------------------------------------------------------
#PBS -M user@technion.ac.il

#PBS -mbea
#
# running built-in multi-threading option on N cores of an available node 
#-------------------------------------------------------------------------------
#PBS -l select=1:ncpus=N


PBS_O_WORKDIR=$HOME/mydir
cd $PBS_O_WORKDIR

#MATLAB run command
#-----------------------
./program.exe < input > output