LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2005-03-30 09:27:21


On Mar 30, 2005, at 12:11 AM, Yeliang Zhang wrote:

> This program runs fine under any directory other than my project
> directory.
>
> As long as it is run under my project directory, no matter the
> executable is generated by simple mpif77 or make file, there will be
> error:

When you say it runs fine under any directory other than your project
directory, are you compiling outside of your project directory as well?
  Or copying the binary around? Or giving a full (or relative) path
into your project directory?

There really isn't enough information in your e-mail for me to figure
out what is going on. But if I were to make a wild guess, I think you
are using the wrong mpif.h to compile your application when you compile
in your project directory, but use the right version when you compile
anywhere else.

We see this every now and then with Fortran programs (not so much with
C programs - they will usually fail to link). Someone will copy
MPICH's mpif.h into the project directory, then try to compile with LAM
and it all goes downhill from there. If there is an mpif.h in your
project directory, delete it and see if that helps.

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/