Pittsburgh Supercomputing Center 

Advancing the state-of-the-art in high-performance computing,
communications and data analytics.

#!/bin/csh
#PBS -l ncpus=16
#PBS -l walltime=10:00
#PBS -o mkl.out
#PBS -j oe


# make module command available
#
    source /usr/share/modules/init/csh
    source /etc/csh.cshrc.psc


set echo

#load mkl module
#
module load imkl

#move to  scratch directory
cd $SCRATCH

# copy over source and data files
cp ~/mkl/sasumx.f .
cp ~/mkl/common_func.f .
cp ~/mkl/sasumx.d .

# compile

ifort sasumx.f common_func.f -o sasumx -mkl=parallel

#run my executable
./sasumx < sasumx.d