BwUniCluster2.0/Batch System Migration Guide: Difference between revisions

From bwHPC Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=Serial Programs=
=Serial Programs=


* Use the time option '''-t''' or ''--time'' (instead of ''-l walltime''). If only one number is entered behind ''-t'', the default unit is minutes.
* Use the time option '''-t''' or '''--time''' (instead of '''-l walltime'''). If only one number is entered behind '''-t''', the default unit is minutes.
* Use the option ''-n 1'' or ''--ntasks=1'' (instead of ''-l nodes=1,ppn=1'').
* Use the option '''-n 1''' or '''--ntasks=1''' (instead of '''-l nodes=1,ppn=1''').
* Use the option ''-m'' or ''--mem'' (instead of ''-l pmem''). The default unit is MegaByte.
* Use the option '''-m''' or '''--mem''' (instead of '''-l pmem'''). The default unit is MegaByte.
* If you want to use one node exclusively, you must enter the whole memory (''-m 96327'' or ''--mem=96327'').
* If you want to use one node exclusively, you must enter the whole memory ('''-m 96327''' or '''--mem=96327''').
<br>
<br>
'''Example for a serial job'''
'''Example for a serial job'''
Line 14: Line 14:
<br>
<br>
<br>
<br>

=Multithreaded Programs=
=Multithreaded Programs=



Revision as of 12:22, 13 March 2020

Serial Programs

  • Use the time option -t or --time (instead of -l walltime). If only one number is entered behind -t, the default unit is minutes.
  • Use the option -n 1 or --ntasks=1 (instead of -l nodes=1,ppn=1).
  • Use the option -m or --mem (instead of -l pmem). The default unit is MegaByte.
  • If you want to use one node exclusively, you must enter the whole memory (-m 96327 or --mem=96327).


Example for a serial job

$ sbatch -p single -t 60 -n 1 -m 96327 ./job.sh 

The script job.sh (containing the execution of a serial program) is started running 60 minutes exclusively on a batch node.


Multithreaded Programs

  • Use the time option -t or --ime (instead of -l walltime). If only one number is entered behind -t, the default unit is minutes.
  • Use the option -N 1 or --nodes=1 and c (instead of -l nodes=1,ppn=...). A number between 1 and 40 can be entered (because of 40 cores within one node); a number between 41 and 80 can also be entered (because of active hyperthreading).
  • Use the option -m or --mem (instead of -l pmem). The default unit is MegaByte.
  • If you want to use one node exclusively, you must enter the whole memory (-m 96327 or --mem=96327).


Example for a serial job

$ sbatch -p single -t 60 -n 1 -m 96327 ./job.sh 

A serial program is started running 60 minutes exclusively on a batch node.