- Infos im HLRS Wiki sind nicht rechtsverbindlich und ohne Gewähr -
- Information contained in the HLRS Wiki is not legally binding and HLRS is not responsible for any damages that might result from its use -

Batch System PBSPro (Hawk): Difference between revisions

From HLRS Platforms
Jump to navigationJump to search
No edit summary
(Improve example section)
Line 1: Line 1:
setup is just basic and it works for the test system only. More features, testing and productive like setup will be done in July.
The batch system on Hawk TDS is PBSPro 19.2.1. For general usage see the [https://www.pbsworks.com/pdfs/PBSUserGuide19.2.3.pdf PBS User Guide (19.2.3)]


Here is an example for a Job using a single node:
At the moment the setup is basic and it works for the TDS only. More features, testing and productive like setup will be done in July.


  qsub -l nodes=2,walltime=1000
== Examples ==
    and this are the commands
      module load mpt
      cd psrc
      mpirun ./hi.hpe
      sleep 5
      ^D (crtl-D)
    11.hawk-tds-pbs1
    -bash-4.2$


an simple example batch script:
=== Single node ===
Here is an example for a job using a single node:
 
{{command|command=
qsub -l nodes=2,walltime=1:00:00
}}
 
The basic commands to build and run a MPI program are:
{{command|command=
module load mpt
mpicc hi.hpe.c -o hi.hpe
mpirun ./hi.hpe
}}
 
 
=== simple batch script ===
   
   
-bash-4.2$ cat Job.hi.hpe
Here is a simple pbs job script:
#!/bin/bash
{{file|filename=Job.hi.hpe.pbs
|content=<pre>
#!/bin/bash
 
#PBS -N Hi_Thomas
#PBS -l select=16:mpiprocs=64
#PBS -l walltime=00:20:00
   
   
#PBS -N Hi_Thomas
module load mpt
#PBS -l select=16:mpiprocs=64
mpirun ./hi.hpe
#PBS -l walltime=00:20:00
</pre>
 
}}
 
module load mpt
To submit the job script execute
cd ${HOME}/psrc
{{command|command=qsub Job.hi.hpe.pbs}}
mpirun ./hi.hpe
sleep 5
-bash-4.2$ qsub Job.hi.hpe
1019.hawk-tds-pbs1
-bash-4.2$

Revision as of 16:33, 18 August 2019

The batch system on Hawk TDS is PBSPro 19.2.1. For general usage see the PBS User Guide (19.2.3)

At the moment the setup is basic and it works for the TDS only. More features, testing and productive like setup will be done in July.

Examples

Single node

Here is an example for a job using a single node:

qsub -l nodes=2,walltime=1:00:00


The basic commands to build and run a MPI program are:

module load mpt

mpicc hi.hpe.c -o hi.hpe

mpirun ./hi.hpe


simple batch script

Here is a simple pbs job script:

File: Job.hi.hpe.pbs
#!/bin/bash

#PBS -N Hi_Thomas
#PBS -l select=16:mpiprocs=64
#PBS -l walltime=00:20:00
 
module load mpt
mpirun ./hi.hpe


To submit the job script execute

qsub Job.hi.hpe.pbs