On Mar 27, 2008, at 2:42 PM, Gregory John Orris wrote:
> I just re-installed LAM on my Leopard cluster and after a lot of
> difficulties in the configure and compile I've reached the following
> error
>
> [mymachine:lam-7.1.4/examples/hello] myname% mpirun -np 4 hello
> mpirun (set_stdio): Bad file descriptor
>
> Any hints?
You're unfortunately running into a bug in the most unportable part of
LAM/MPI, our file descriptor passing for standard input. There are a
couple of standard ways to do file descriptor passing and for the most
part, Apple supports the more recent way. But one of their macros
(CMSG_DATA) returns a bogus value on 64 bit Intel builds on Leopard
(but on the other three platforms, the macro works fine and all four
platforms work fine on Tiger). They have a tech note on file
descriptor passing changes between Tiger and Leopard and from that I
was able to figure out how they wanted structures laid out and fix the
issue.
I've posted a beta tarball of LAM/MPI 7.1.5b1, which includes this fix
as well as some other changes including the work-around for the
libmpi.dylib / libmpi.a problem Jeff spoke of in a previous e-mail.
It can be downloaded from :
http://www.lam-mpi.org/beta/
With 7.1.5b1, I was able to build in 64-bit mode using Apple's GCC and
hpc.sf.net's gfortran without any problems. Please let me know if you
have any issues.
Brian
--
Brian Barrett
LAM/MPI Developer
Make today a LAM/MPI day!
|