LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Squyres \(jsquyres\) (jsquyres_at_[hidden])
Date: 2006-06-10 08:42:15


This looks like you are mixing LAM/MPI and MPICH -- this will not work.
LAM/MPI and MPICH are wholly separate implementations of the same
top-level API, but that's where their similarities end.

Specifically, compile and run your application with a single MPI
implementation (e.g., LAM/MPI or MPICH). LAM does not have an mpif90
wrapper compiler (it only has mpif77), so you are probably using MPICH
to compile your Fortran program.

>From the path you show in your PBS script, it looks like you're using
MPICH's mpiexec to launch applications. If you compile your C program
with LAM's mpicc (it's not obvious from the paths you show, but it seems
like that is what is happening) but then try to run it with MPICH's
mpiexec, it won't work. Use LAM's mpiexec or mpirun to launch it, and
it should work.

Hope this helps.

> -----Original Message-----
> From: lam-bounces_at_[hidden]
> [mailto:lam-bounces_at_[hidden]] On Behalf Of Ankur-udaykumar Kamthe
> Sent: Friday, June 09, 2006 6:00 PM
> To: lam_at_[hidden]
> Subject: LAM: Question regarding mpi on PBS
>
> Hi all,
>
> I have a doubt while using LAM/MPI on a PBS cluster. To
> submit a job, I
> have to write a PBS script as follows:
> =======================
> #PBS -N jobname
> #PBS -q jobqueue
> #PBS -l nodes=2:ppn=1,walltime=00:02:45
> /prism/common/mpich/bin/mpiexec /home/kamthan/test/lab1.x
> =======================
> where lab1.x is my executable file and the cluster uses
> mpiexec instead
> of mpirun/mprun to execute programs.
>
> I tried running the lab1.c and the lab1.f programs from
> http://www.lam-mpi.org/tutorials/nd/part1/.
> For compiling, I have used the following commands:
> For fortran::
> mpif90 -o lab1.x lab1.f (for compiling)
> Now, the fortran file runs and gives its output in the jobname.oxxxx
> file.
>
> For C::
> mpicc -lmpi lab1.c -o lab1.x
> However, the C program does not output any results but gives the
> following in the jobname.exxxx (error) file:
> --------------------------------------------------------------
> ---------------
> *** Oops -- I cannot open the LAM help file.
> *** I tried looking for it in the following places:
> ***
> *** $HOME/lam-helpfile
> *** $HOME/lam-7.0.6-helpfile
> *** $HOME/etc/lam-helpfile
> *** $HOME/etc/lam-7.0.6-helpfile
> *** $LAMHELPDIR/lam-helpfile
> *** $LAMHELPDIR/lam-7.0.6-helpfile
> *** $LAMHOME/etc/lam-helpfile
> *** $LAMHOME/etc/lam-7.0.6-helpfile
> *** $SYSCONFDIR/lam-helpfile
> *** $SYSCONFDIR/lam-7.0.6-helpfile
> ***
> *** You were supposed to get help on the program "MPI"
> *** about the topic "no-lamd"
> ***
> *** Sorry!
> --------------------------------------------------------------
> ---------------
> mpiexec: Warning: task 0 exited with status 215.
>
>
> Could someone please help me with this thing ?
>
>
> Thanks,
> Ankur
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>