<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi PETSc Team,<br><br>I'm still experiencing difficulties  with configuring PETSc with TAU. I'm currently:<br><br><b>building OpenMPI</b><br>1. ./configure --prefix=${SESKADIR}/packages/openmpi <br>2. make all install<br><br><b>set library path</b><br>1. export LD_LIBRARY_PATH=${SESKADIR}/lib:${SESKADIR}/packages/openmpi /lib:${SESKADIR}/packages/pdt/x86_64/lib:/${SESKADIR}/packages/tau/x86_64/lib:${SESKADIR}/packages/petsc/${PETSC_ARCH}/lib:$LD_LIBRARY_PATH<br>2. export PATH=<font style="" color="#000000"><span style="background: transparent">${SESKADIR}/bin:${SESKADIR}/packages/<font color="#280099">petsc</font>/${PETSC_ARCH}/bin:$PATH</span></font>

<br><br><b>build PDT (pdtoolkit-3.20)</b><br>1. ./configure -GNU<br>2. export PATH=${SESKADIR}/packages/pdt/x86_64/bin:${SESKADIR}/packages/pdt/x86_64//bin:$PATH<br>5. make<br>6. make install<br><br><b>build TAU (tau-2.23.1) using OpenMPI</b><br>1. ./configure -prefix=`pwd` -cc=mpicc -c++=mpicxx -fortran=mpif90 -pdt=${SESKADIR}/packages/pdt -mpiinc=${SESKADIR}/packages/openmpi/include -mpilib=${SESKADIR}/packages/openmpi/lib -bfd=download<br>2. export PATH=${SESKADIR}/packages/tau/x86_64/bin:$PATH<br>3. make install<br><br><b>build fblaslapacklinpack-3.1.1</b><br>1. make<br><b><br>build PETSc using TAU_CC/MPI</b><br>1. export TAU_MAKEFILE=${SESKADIR}/packages/tau/x86_64/lib/Makefile.tau-mpi-pdt<br>2. ./configure --prefix='pwd' --with-mpi=1 --with-cc=tau_cc.sh  --with-cxx=mpicxx --with-fc=mpif90  --with-blas-lapack-dir=${SESKADIR}/packages/fblaslapack<br><br>Error: Tried looking for file: /tmp/petsc-U9YCMv/config.setCompilers/conftest<br>Error: Failed to link with TAU options<br>Error: Command(Executable) is -- gcc<br><br><br>Attached you'll find my configure log. Any assistance would be greatly appreciated.<br><br>Warm regards,<br>Matthew<br><br><br><br><div>> Date: Tue, 16 Sep 2014 08:21:41 -0500<br>> From: balay@mcs.anl.gov<br>> To: hillsmattc@outlook.com<br>> CC: petsc-users@mcs.anl.gov<br>> Subject: Re: [petsc-users] PETSc/TAU configuration<br>> <br>> I haven't tried using TAU in a while - but here are some obvious things to try.<br>> <br>> 1. --download-mpich [or openmpi] with TAU does not make sense.<br>> <br>> You would have to build MPICH/OpenMPI first.<br>> <br>> Then build TAU to use this MPI.<br>> <br>> And then build PETSc to use this TAU_CC/MPI<br>> <br>> 2. I would use only tau_cc.sh - and not bother with c++/fortran<br>> <br>> i.e [with TAU build with a given mpicc] - configure PETSc with:<br>> ./configure --with-cc=tau_cc.sh --with-cxx=mpicxx --with-fc=mpif90<br>> <br>> 3. Do not use any --download-package when using tau_cc.sh. First check<br>> if you are able to use TAU with PETSc - without externalpackages [you<br>> would need blas,mpi. Use system blas/lapack for blas/lapack - and<br>> build MPI as mentioned above for use with TAU and later PETSc]<br>> <br>> And if you really need these externalpackage [assuming the above basic<br>> build with TAU works] - I would recommend the following 2 step build process:<br>> <br>> <build packages without TAU><br>> 4.1. ./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --download-PACKAGE PETSC_ARCH=arch-packages<br>> <br>> 4.2. Now strip out the petsc relavent stuff from this location<br>> rm -f arch-packages/include/petsc*.h<br>> <br>> 4.3. Now build PETSc with TAU - using these prebuilt-packages<br>> <br>> ./configure --with-cc=tau_cc.sh --with-cxx=mpicxx --with-fc=mpif90 PETSC_ARCH=arch-tau --with-PACKAGE-dir=`pwd`/arch-packages<br>> <br>> BTW: the current release is petsc-3.5 - we recommend upgrading to<br>> using it [as we usually support the latest release wrt debugging/bug<br>> fixes]<br>> <br>> Satish<br>> <br>> <br>> <br>> On Tue, 16 Sep 2014, Matthew Hills wrote:<br>> > <br>> > Hi PETSc Team,]<br>> > <br>> > I am experiencing difficulties with configuring PETSc with TAU. I have replaced the standard compilers with the tau_cc.sh, tau_cxx.sh, and tau_f90.sh scripts but this produces multiple errors. I have also attempted to use OpenMPI and MPICH, but both produce their own unique errors.<br>> > <br>> > After successfully compiling PDT, TAU was compiled with:<br>> > <br>> > ./configure<br>> > -prefix=`pwd`<br>> > -cc=gcc<br>> > -c++=g++ -fortran=gfortran<br>> > -pdt=${SESKADIR}/packages/pdt<br>> > -mpiinc=${PETSC_DIR}/${PETSC_ARCH}/include<br>> > -mpilib=${PETSC_DIR}/${PETSC_ARCH}/lib -bfd=download<br>> > <br>> > Attached you'll find the PETSc configuration logs. If any more information is needed please let me know.<br>> > <br>> > Warm regards,<br>> > <br>> > Matthew Hills<br>> > University of Cape Town<br>> <br></div></div>
                                          </div></body>
</html>