Pittsburgh Supercomputing Center 

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

#! /bin/csh 
#PBS -l walltime=5:00 
#PBS -l ncpus=16 
#PBS -o upc.out 
#PBS -j oe  

set echo  

# move to scratch directory 
cd $SCRATCH  

# programs are already compiled.  Copy them to scratch space 
cp ~/upc/cpi . 
cp ~/upc/mcpi .  

# make module command available     
source /usr/share/modules/init/csh  

# load the upc module
module load sgi-upc-devel  

# execute  
mpirun -np $PBS_NCPUS ./cpi  

# execute and specify 4 threads 
mpirun  -np $PBS_NCPUS ./mcpi 

Stay Connected

Stay Connected with PSC!

facebook 32 twitter 32 google-Plus-icon