Hi Ken, it is not working this way. Florin ________________________________________ From: Kenneth Raffenetti [[email protected]] Sent: Wednesday, November 19, 2014 10:56 AM To: [email protected] Cc: [email protected] Subject: Re: [mpich-discuss] f77 bindings and profiling On 11/18/2014 09:47 AM, Isaila, Florin D. wrote:
fisaila@howard:f77$ mpif77 -show fpi.f gfortran fpi.f -I/homes/fisaila/software/mpich/include -I/homes/fisaila/software/mpich/include -L/homes/fisaila/software/mpich/lib -lmpifort -lfoo -Wl,-rpath -Wl,/homes/fisaila/software/mpich/lib -Wl,--enable-new-dtags -lmpi
This looks to be the problem. PROFILE_PRELIB needs to be added *before* libmpifort. Some time after 3.1, we re-organized which symbols go into which libraries and now libmpifort.so contains PMPI_Init and all its weak aliases (MPI_Init, mpi_init_, etc.) This means the MPI_Init symbol is resolved before your library is searched. Can you manually try a compile line with -lfoo before -lmpifort and confirm that it works as expected? I.e. gfortran fpi.f -I/homes/fisaila/software/mpich/include -I/homes/fisaila/software/mpich/include -L/homes/fisaila/software/mpich/lib -lfoo -lmpifort -Wl,-rpath -Wl,/homes/fisaila/software/mpich/lib -Wl,--enable-new-dtags -lmpi Ken _______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss