UPC job script for salk

! /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


Last Updated on Friday, 11 November 2011 12:10  

More on UPC

Sample jobs

For blacklight

For salk

See also

The UPC website at LBNL, which includes a description of UPC, user documentation, and demos, among other things.

User Information

PSC Passwords

Connect to PSC systems:

PSC Policies

For technical questions:
Call the PSC hotline: 412-268-6350 / 800-221-1641 or mail to remarks@psc.edu.

Other services PSC provides:

Advanced Networking: High-speed network design, testing and tuning

3ROX: High-speed network access

Biomedical Applications: Computational biomedical research and training