Pittsburgh Supercomputing Center 

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

PSCBridges

PSC Receives NSF Award for Bridges Supercomputer - Read More

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

#########################################################
#  Please note that this example uses 16 cores.         #
#  The turn around time for a 16 core job is very long. #
#  Please be prepared to wait.                          #
#  Alternately, because this is a short example job     #
#   you can submit it to the debug queue.               #
#  Note that the debug queue has many restrictions      #
#    and cannot be used for production runs.            #
#########################################################

set echo
ja
source /usr/share/modules/init/csh
module load petsc
module load gcc
cd $PBS_O_WORKDIR
cp ex1.c $SCRATCH
cp Makefile $SCRATCH
cd $SCRATCH
echo
echo
make ex1
echo
echo
mpirun -np 1 ./ex1
ja -cshlt