On Thu, 11 Sep 2003, Sundaram A wrote:
> And how to run a parralell jobs, do I have to run lamboot at the beging
> or is there any other method to run parallel jobs ib OSCAR. please help
> me and give me some sample scripts for submitting an parallel jobs. I
> have tried with lamboot, i can able to boot the nodes but when i submit
> a job with usual mpirun command it gives an error message and exits. The
> command i used is
>
> mpirun -O -c 6 a.out < inp_para
You'll need to run lamboot in the PBS script itself, followed by mpirun.
lamboot sets up a run-time environment *for that PBS job* in which you can
run MPI programs. A sample PBS script is included in the OSCAR test suite
for LAM/MPI (if you ran the test suite, I believe it will be installed
under ~oscartst/lam/pbs_script.lam, or if you didn't run the test suite, I
believe it will be located at
$OSCAR_home_directory/packages/lam/testing/pbs_script.lam). Here's
generally what it looks like:
-----
# Start up the LAM run-time environment
lamboot $PBS_NODEFILE
# Run the job in homogeneous mode on all nodes available in the PBS job
# (i.e., don't specify "-c X" here -- use "C" to indicate that LAM should
# run on all available CPUs that PBS made available. See the mpirun(1)
# man page for more details.
mpirun -O C a.out < inp_para
# Shut down the LAM run-time environment
lamhalt
-----
Of course, you can do lots of other things in the PBS script, but this is
the basic set of commands that you need.
Hope that helps.
--
{+} Jeff Squyres
{+} [EMAIL PROTECTED]
{+} http://www.lam-mpi.org/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Oscar-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-users