High CPU/RAM usage and Parallel(MPI) jobs submitted sample scripts

for Single CPU Job

zyshen@e2lx001:/home/zyshen> cat /disk/rdisk03/test_1cpu.sh
#!/bin/csh
#
#
#PBS -l nodes=1:ppn=1
#
#******** Script for job submission with single CPU
#******** The lines above must be included in any job script
#******** ‘nodes’ is number of nodes and ‘ppn’ is number of CPU per node, which are both ‘=1′ in this case.
#
#
#This is an example script test.sh
#
#Submit Job: qsub -j oe -k oe ./test.sh
#(Log files could be found at your home directory)
#
#Monitor Job State: qstat
#Where the meaning of ‘State’ is:
# Q — job is queued
# R — job is running
# H — Job is held
#
#Delete Job: qdel <job number>
#
#Must ‘cd’ to your own working directory as below to run your job
cd /home/kszeto/WRFV3/test/em_real
./wrf.exe

for MPICH2

zyshen@e2lx001:/home/zyshen> cat /disk/rdisk03/test_mpich2.sh
#!/bin/csh
#
#
#PBS -l nodes=2:ppn=8
#
#******** The lines above must be included in any job script
#******** ‘nodes’ is number of nodes((max. is 4) and ‘ppn’ is number of CPU per node(max. is 8).
#Therefore nodes*ppn given the total number of CPU that must specified in ‘mpiexec’
#
#******** (e.g. if nodes=2 and ppn=8, then yield to ‘mpiexec -n 16 ./wrf.exe’)
#
#******** Max. number of nodes per job is limited to 4 (i.e. 32 CPUs).
#
#This is an example script test.sh
#
#Submit Job: qsub -j oe -k oe ./test.sh
#(Log files could be found at your home directory)
#
#Monitor Job State: qstat
#Where the meaning of ‘State’ is:
# Q — job is queued
# R — job is running
# H — Job is held
#
#Delete Job: qdel <job number>
#
#Must ‘cd’ to your own working directory as below to run your job
cd /home/kszeto/WRFV3/test/em_real
/share/apps/mpiexec-0.84/bin/mpiexec -n 16 ./wrf.exe

for OPEN MPI

zyshen@e2lx001:/home/zyshen> cat /disk/rdisk03/test_openmpi.sh
#!/bin/csh
#
#
#PBS -l nodes=2:ppn=8
#
#******** The lines above must be included in any job script
#******** ‘nodes’ is number of nodes((max. is 4) and ‘ppn’ is number of CPU per node(max. is 8).
#Therefore nodes*ppn given the total number of CPU that must specified in ‘mpiexec’
#
#******** (e.g. if nodes=2 and ppn=8, then yield to ‘mpirun -n 16 ./wrf.exe’)
#
#******** Max. number of nodes per job is limited to 4 (i.e. 32 CPUs).
#
#This is an example script test.sh
#
#Submit Job: qsub -j oe -k oe ./test.sh
#(Log files could be found at your home directory)
#
#Monitor Job State: qstat
#Where the meaning of ‘State’ is:
# Q — job is queued
# R — job is running
# H — Job is held
#
#Delete Job: qdel <job number>
#
#Path of Open MPI:
#/share/apps/openmpi-1.4.3/

export PATH=/share/apps/openmpi-1.4.3/bin/:$PATH
export LD_LIBRARY_PATH=/share/apps/openmpi-1.4.3/lib

#Must ‘cd’ to your own working directory as below to run your job

cd /home/kszeto/WRFV3/test/em_real
/share/apps/openmpi-1.4.3/bin/mpirun -n 16 ./wrf.exe

only for old applications that must compile with MPICH1

zyshen@e2lx001:/home/zyshen> cat /disk/rdisk03/test_mpich1.sh
#!/bin/csh
#
#
#PBS -l nodes=2:ppn=8
#
#This script is only for old applications that must run with MPICH1-P4.
#For new applications, it is suggested to compile with MPICH2 or OpenMPI.
#MPICH1-P4 is available at: /share/apps/mpich-1.2.7_p4/
#
#******** The lines above must be included in any job script
#******** ‘nodes’ is number of nodes((max. is 4) and ‘ppn’ is number of CPU per node(max. is 8).
#Therefore nodes*ppn given the total number of CPU that must specified in ‘mpiexec’
#
#******** (e.g. if nodes=2 and ppn=8, then yield to ‘mpiexec -n 16 ./wrf.exe’)
#
#******** Max. number of nodes per job is limited to 4 (i.e. 32 CPUs).
#
#This is an example script test.sh
#
#Submit Job: qsub -j oe -k oe ./test.sh
#(Log files could be found at your home directory)
#
#Monitor Job State: qstat
#Where the meaning of ‘State’ is:
# Q — job is queued
# R — job is running
# H — Job is held
#
#Delete Job: qdel <job number>
#
#Must ‘cd’ to your own working directory as below to run your job
cd /home/kszeto/WRFV3/test/em_real
mpiexec -n 16 -comm mpich-p4 -mpich-p4-no-shmem ./wrf.exe

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>