[mpich-discuss] f77 bindings and profiling

Isaila, Florin D. fisaila at mcs.anl.gov
Wed Nov 19 09:43:15 CST 2014


Thanks Jan, this works indeed for me with mpich-3.1 (by using mpif77 compiler, I think this is what you meant). 
However, it does not work with mpich-3.1.3. 

Regards
Florin
________________________________________
From: Jan Bierbaum [jan.bierbaum at tudos.org]
Sent: Wednesday, November 19, 2014 4:20 AM
To: discuss at mpich.org
Subject: Re: [mpich-discuss] f77 bindings and profiling

Hi!

On 18.11.2014 20:02, Isaila, Florin D. wrote:
> I would like to write the MPI_Init and call PMPI_Init, as I want all
> MPI codes to work with that. I expect that my MPI_Init replaces the week
> MPI_Init symbol in the mpi library for C programs (this works) , but
> also replaces the MPI_Init used in the implementation of mpi_init for
> Fortran programs (this does not).
I did the same thing recently and it does work fine with Fortran code if
you explicitly link against 'libfmpich.a' (in the 'lib' directory of
your MPICH installation). The order is important though:

mpicc <your c/fortran object files> libfmpich.a <your profiling lib>

You may need to give the full path to 'libfmpich.a'. The 'mpicc' wrapper
will make sure that all necessary MPICH libraries are passed to the
linker as well.


Regards, Jan
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list