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=30:00
#PBS -o tau.out 
#PBS -j oe 

# set up  module command
source /usr/share/modules/init/csh

# load the tau module
module load tau

set echo

# use the default Makefile so no need to define $TAU_MAKEFILE
# See which makefile will be used.
echo $TAU_MAKEFILE


# the code has already been compiled with  
#          tau_cc.sh ring.c -o ring


# move to the SCRATCH directory 
cd $SCRATCH 

# copy the executable to SCRATCH
cp ~/tau/ring .

# execute the program (MPI)
mpirun -np $PBS_NCPUS  ./ring

# Note:  If the run was successful, profile files are produced.
# Get the profiling report later 
# using either  pprof   or   paraprof   commands