mpirun and mpiexec
Pete Wyckoff
pw at osc.edu
Mon Jul 14 19:40:20 EDT 2003
david at bioinfo.cu said on Mon, 14 Jul 2003 09:08 -0400:
> I installed mpiexec in my oscar cluster with the following options:
>
> --with-pbs=/opt/pbs and -with-default-comm=mpich-p4.
>
> I have the following script(my_script):
> #!/bin/bash
> #PBS -N caca4
> #PBS -o outputfile
> #PBS -e errorfile
> #PBS -l nodes=2:ppn=2
> #PBS -m abe
> #PBS -M david at bioinfo.cu
> #PBS -q workq
> /opt/mpich-1.2.4/bin/mpicc -o
> /home/oscartst/pbs/DIRECTORY/david at bioinfo.cu/cpi.c/cpi.c.cc
> /home/oscartst/pbs/DIRECTORY/david at bioinfo.cu/cpi.c/cpi.c
> /usr/local/bin/mpiexec
> /home/oscartst/pbs/DIRECTORY/david at bioinfo.cu/cpi.c/cpi.c.cc
>
> but i am getting the following error when i do: qsub my_script
>
> /var/spool/pbs/mom_priv/jobs/160.oscarno.SC: /usr/local/bin/mpiexec: No
> such file or directory
Does the executable exist on the compute node? You need mpiexec
on every one of the compute nodes.
> 2-If i do mpiexec my_compiledjob.c igot the following error:
> mpiexec: Error: PBS_JOBID not set in environment. Code must be run from a
> PBS script, perhaps interactively using "qsub -I".
That's true. Only run mpiexec within a batch or interactive PBS job.
-- Pete
More information about the mpiexec
mailing list