PETSc

From Tau Wiki
Revision as of 16:58, 4 June 2012 by Scottb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Background

Link Code Version Machine Date
ANL website tar ball 3.2-p7 Manticore June 2012


Configure PETSc

export PETSC_DIR=`pwd`
./configure --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack=1 --download-mpich=1

Configuring/Compile TAU

./configure -pdt=<path to PDT> -cc=gcc -c++=g++ -fortran=gnu -mpiinc=<path to petsc-3.2-p7>/arch-linux2-c-debug/include -mpilib=<path to petsc-3.2-p7>/arch-linux2-c-debug/lib -mpilibrary=-lmpichf90#-lmpich#-lmpl -DISABLESHARED
make install

Compile PETSc

export TAU_MAKEFILE=<path to TAU>/<arch>/lib/Makefile.tau-mpi-pdt
export TAU_OPTIONS='-optVerbose -optNoRevert -optTau="-rn PetscFunctionReturn -rv PetscFunctionReturnVoid\(\)"'
make all PCC=tau_cc.sh FC=tau_f90.sh PCC_LINKER=tau_cc.sh FC_LINKER=tau_f90.sh
make test PCC=tau_cc.sh FC=tau_f90.sh PCC_LINKER=tau_cc.sh FC_LINKER=tau_f90.sh

If you have any other examples you would like to run (for example, ex19) do the following:

cd src/snes/examples/tutorials
make ex19 PCC=tau_cc.sh FC=tau_f90.sh PCC_LINKER=tau_cc.sh FC_LINKER=tau_f90.sh
../../../../arch-linux2-c-debug/bin/mpirun -np 2 ./ex19