You are here: Foswiki>Main/Cimec Web>PbsBatch (25 Feb 2002, JorgeDElia)Edit Attach
-- JorgeDElia - 25 Feb 2002


Ejemplo de script "mpihello.pbs" para usar en el PBS:

qsub  -q corta mpihello.pbs
qstat -a
  
donde "mpihello.pbs" contiene lo siguiente:

..............................................................
#!/bin/bash
# PBS -l nodes=11
# This is a PBS job submission script.
# It also assumes that mpihello has been compiled
# in the local directory by typing:
#
# pgf77 -o mpihello mpihello.f -lfmpich -lmpich
#
# PBS will reserve "n" nodes and then execute this script.
# "mpirun" uses the PBS_NODEFILE environment variable as the
# list of machines on which
# IMPORTANT NOTE:  Be sure to modify the "cd" command below to
# switch to the directory in which you are currently working!
# Also modify the setting of the PGI environment variable as
# appropriate for your installation
set -x
PGI=/usr/local/pgi
export PGI
export PBS=/usr/local/pbs
PATH=$PATH:$PBS/sbin:$PGI/linux86/bin
export PATH
cd /u/jdelia/HERRA/BENCH/MPIHELLO
/usr/local/bin/mpirun -np 11 mpihello.exe &> mpihello.log
..............................................................

Topic attachments
I Attachment Action Size Date Who Comment
mpihello.ff mpihello.f manage 239 bytes 25 Feb 2002 - 19:23 UnknownUser  
mpihello.pbspbs mpihello.pbs manage 851 bytes 25 Feb 2002 - 19:23 UnknownUser  
Topic revision: r1 - 25 Feb 2002, JorgeDElia
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback