LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   OpenMPI newbie question: how to run using PBS script? (https://www.linuxquestions.org/questions/linux-newbie-8/openmpi-newbie-question-how-to-run-using-pbs-script-834053/)

linuxn3wb13 09-23-2010 12:51 PM

OpenMPI newbie question: how to run using PBS script?
 
Dear linuxquestions forum, I have been reading about how to run OpenMPI to send a job (a shell script) on multiple nodes, but cannot for the life of me figure out exactly how to tweak the script to be usable.

May anyone please give me an example as to how to do it? The one below is from OpenMPI FAQ. For example instead of trying to run an application, can I run an existing shell script instead (where ./hellompi is?).

Thank you.

Code:

#PBS -l nodes=4:ppn=1
#PBS -l walltime=2:00:00
#PBS -j oe

cd $PBS_O_WORKDIR

module load openmpi/gnu
mpirun ./hellompi



All times are GMT -5. The time now is 07:32 PM.