Difference between revisions of "BwUniCluster2.0/Batch System Migration Guide"

From bwHPC Wiki
Jump to: navigation, search
(Serial Programs)
(Serial Programs)
Line 2: Line 2:
   
 
* 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'' or ''--ntasks'' (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 ''-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>
  +
'''Example for a serial job'''
  +
<pre>
  +
$ sbatch -p single -t 60 -n 1 -m 96327 ./job.sh
  +
</pre>
  +
A serial program is started running 60 minutes exclusively on a batch node.
  +
<br>
   
  +
=Multithreaded Programs=
Example
 
  +
  +
* 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''). 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'').
  +
<br>
  +
'''Example for a serial job'''
  +
<pre>
  +
$ sbatch -p single -t 60 -n 1 -m 96327 ./job.sh
  +
</pre>
  +
A serial program is started running 60 minutes exclusively on a batch node.

Revision as of 12:11, 13 March 2020

1 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 

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

2 Multithreaded 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). 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.