[mpich-discuss] MPICH 3.1.1 and MPI_*_c2f

Balaji, Pavan balaji at anl.gov
Sat Jun 28 11:43:27 CDT 2014


Chris,

Thanks for the report.  What you suggested below seems reasonable.

I was the one who made the change when I was cleaning up the separation of symbols into the appropriate libraries.  The intention was that the f2c symbols go into libmpifort, while the c2f symbols go into libmpi.  But maybe there is a case for f2c symbols to show up in the C library as well (if I got an object from a Fortran module and want to convert it to C).

In any case, it sounds like the execution didn’t match the intention.  I remember I had some issue with the c2f/f2c symbols, but I don’t remember what that was exactly.  Let me go back and see what the reason for that was.

I think the cleanest solution is to put both c2f and f2c in libmpi, since libmpifort has a dependency on libmpi anyway.

I’ve created a ticket so you can keep track of the progress on this:

https://trac.mpich.org/projects/mpich/ticket/2122

Thanks,

  — Pavan

On Jun 26, 2014, at 5:00 AM, Chris January <chris.january at allinea.com> wrote:

> Hello all,
> 
> I noticed that MPICH 3.1.1 changed which libraries symbols go in. The
> MPI_*_c2f functions are no longer available to source files compiled
> with mpicc and mpicxx (unless you explicitly add -lmpifort).
> 
> In our opinion the MPI_*_c2f and MPI_* symbols should be available from
> all compiler drivers (mpicc, mpicxx, mpif77, mpif90, etc.) without the
> need to explicitly add -lmpifort. Since they are used to convert values
> between C and Fortran and vice versa it is natural that one would want
> to use them from both languages.
> 
> Existing code which assumes, I believe quite reasonably, that MPI_*_c2f,
> etc. can be used from mpicc with no extra effort fails to compile with
> MPICH 3.1.1. I think this is a regression which should be fixed.
> 
> Yours,
> Chris January - VP Engineering - Allinea Software Ltd.
> 
> 
> _______________________________________________
> 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