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 walltime=5:00
#PBS -l ncpus=4
#PBS -o upc.out
#PBS -j oe

set echo

# turn on accounting
ja

# move to scratch directory
cd  $SCRATCH

# copy source files over
cp ~/upc/cpi.upc .
cp ~/upc/mcpi.upc .

# define upcc and upcrun commands
alias upcc /usr/local/packages/bupc-2.6.0/bin/upcc
alias upcrun /usr/local/packages/bupc-2.6.0/bin/upcrun

# compile and specify 4 threads
upcc -o cpi -pthreads=4 cpi.upc 

# execute 
upcrun  ./cpi

#compile
upcc -pthreads -o mcpi  mcpi.upc

# execute and specify 4 threads
upcrun -n 4 ./mcpi

# get accounting stats
ja -cshtl