LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-12-05 17:20:23


On Dec 5, 2005, at 12:31 PM, Qiang Xu wrote:

> 1. Just write a dummy function in my libmyprof.a say
> int sample
> {
> return 0
> }
>
> and write a "interface" fortan file which just call this function.
> then compile this "interface" fortran file with those fortran
> bechmark.
>
> This time my profiling lib is linked with the bechmarks.

This shouldn't be necessary.

> 2. It is the problem of fortran call c function, because PMPI is
> written in C.

There is a Fortran PMPI layer as well -- so you should be able to
call it directly from Fortran.

Can you post the specific link problems that you were having? What
happens if you try what Anthony Chan suggested?

--
{+} Jeff Squyres
{+} The Open MPI Project
{+} http://www.open-mpi.org/