#!/usr/local/bin/ksh
#########################
# Job name to be reported by qstat
##############################################################################
#PBS -N ft_threads_2
##############################################################################
# Declare Job, non-rerunable
##############################################################################
#PBS -r n
##############################################################################
# Specify name for output file
##############################################################################
#PBS -o ft_threads_2.log
##############################################################################
# Join standard output and error so we only get one logfile
##############################################################################
#PBS -j oe
##############################################################################
# Mail to user onb a=abort, b=begin, e=end
##############################################################################
#PBS -m aeb
##############################################################################
# set the email address where mail notifications will be sent
##############################################################################
#PBS -M peterp@ouzo.njit.edu
##############################################################################
# Number of nodes must be set to 1 for serial/omp jobs
##############################################################################
#PBS -l nodes=1:ppn=2
##############################################################################
# Select queue - queue name for serial/omp jobs MUST BE set to serial
##############################################################################
#PBS -q serial
##############################################################################
# Switch to the job's working directory
##############################################################################
cd ~/Test.d/NPB3.2/NPB3.2-OMP/bin
##############################################################################
# A little useful information for the log file...
##############################################################################
echo Directory is `pwd`
echo PBS has allocated the following nodes:
echo `cat $PBS_NBODEFILE`
##############################################################################
# Specify CPU time needed
##############################################################################
##PBS -l cput=300:00:00
##############################################################################
# Put in a timestamp
##############################################################################
echo Starting executation at `date`
##############################################################################
# Run the executable
##############################################################################
echo "This is an OPENMP job that requires static scheduling"
export OMP_SCHEDULE="static"
export OMP_NUM_THREADS=2
time ./ft.B
##############################################################################
# Print the date again -- when finished
##############################################################################
echo Finished at `date`
##############################################################################