Niagara Quickstart: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 420: Line 420:
== Example submission script (OpenMP) == <!--T:87-->
== Example submission script (OpenMP) == <!--T:87-->


<!--T:88-->
Suppose you want to run a single-node, multi-threaded application called <tt>appl_openmp_ex</tt> that uses [[OpenMP]]. The job script could look as follows:
</translate>
</translate>
<source lang="bash">#!/bin/bash
<source lang="bash">#!/bin/bash
Line 443: Line 441:
<translate>
<translate>
<!--T:89-->
<!--T:89-->
Submit this script (if it is called openmp_ex.sh) with the command:
Submit this script with the command:
<source lang="bash">nia-login07:~$ sbatch openmp_ex.sh</source>
<source lang="bash">nia-login07:~$ sbatch openmp_job.sh</source>
* First line indicates that this is a bash script.
* First line indicates that this is a bash script.
* Lines starting with <code>#SBATCH</code> go to SLURM.
* Lines starting with <code>#SBATCH</code> go to SLURM.
cc_staff
290

edits

Navigation menu