From: Brian W. Barrett; Wednesday, May 26, 2004 7:13 AM
>
> On Tue, 25 May 2004, Yu-Cheng Chou wrote:
>
> > How to use a nodefile to specify the nodes that will be used?
> > Can I run an MPI C code by typing "mpirun -np 2 nodefile xxx.c" in
the
> > command line?
>
> The above syntax won't really work. With LAM/MPI, you can not specify
> which host to run on by name. You can, however, use an appschema to
run
> on specific nodes by specifying node numbers within the LAM universe
(n0,
> n1, ...). I would recommend reading the lamboot(5) and mpirun(5) man
> pages, as well as the tutorials on the LAM/MPI web page for more
> information.
More to the point, you need to do something like
mpicc xxx.c
and run the resulting a.out file via mpirun.
--
David N. Lombard
My comments represent my opinions, not those of Intel Corporation.
|