#!/bin/csh
#PBS -l ncpus=16
#PBS -l walltime=10:00
#PBS -o mpfr.out
#PBS -j oe
#-- make module command available
source /usr/share/modules/init/csh
set echo
#-- load the mpfr and gmp modules
module load mpfr
module load gmp
#move to scratch directory
cd /bessemer/nigra
# copy over source and data files
cp ~/mpfr/sample.c .
# compile
icc -o sample sample.c -I${GMP_DIR}/include -I${MPFR_DIR}/include -L${MPFR_DIR}/lib -lmpfr
#run my executable
./sample