[petsc-dev] buildsystem package dependencies

Lisandro Dalcin dalcinl at gmail.com
Tue Apr 5 11:31:29 CDT 2011


On 5 April 2011 13:20, Satish Balay <balay at mcs.anl.gov> wrote:
> Not sure I understand. If I say 'mpi depends on mpe' - then the link line is:
>

Sorry, I was thinking in terms of shared libraries.

> -lhypre -lmpi -lmpe
>
> But thats incorrect usage - and not what I want.. The correct usage is:
> -lhypre -lmpe -lmpi
>
> The issue comes up with -llmpe - which traps MPI_xx functions - and does some
> logging - and then calls MPI_xx functions from -lmpi. i.e usage is:
>

If you are going to use MPE  from MPICH2, "mpicc -mpe=mpilog" does the
right thing:

$ mpicc -mpe=mpilog -LLIBDIR -lLIBNAME -link_info
gcc -I/usr/include/mpich2-i386 -m32 -O2 -Wl,-z,noexecstack
-Wl,--export-dynamic -LLIBDIR -lLIBNAME -I/usr/include/mpich2-i386
-L/usr/lib/mpich2/lib -L/usr/lib/mpich2/lib -L/usr/lib/mpich2/lib
-llmpe -lmpe -lmpich -lopa -lpthread -lrt



-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169



More information about the petsc-dev mailing list