Compiling with Intel compiler and running the jobs

TO COMPILE:
Fortran: ifort -openmp -O3 ser_mm_OpenMP.f
C : icc -openmp -O3 ser_mm_OpenMP.c

TO RUN:

Interactive:
setenv OMP_NUM_THREADS 4
time a.out

Batch: isubmit jobs to the queue. Here is a PBS script

#!/bin/bash -l
#PBS -l walltime=01:00:00,mem=2gb,nodes=1:ppn=4
#PBS -m abe
cd /scratch/username
module load intel
export OMP_NUM_THREADS=8
./a.out < input.dat > output.dat