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
|