diff --git a/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md b/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md index 7d2453a7197fae446ab390000d099645d348048f..c779670d5542c068d447cc9d32b0719f0412e473 100644 --- a/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md +++ b/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md @@ -36,10 +36,9 @@ For MPI-parallel jobs one typically allocates one core per task that has to be s !!! warning "MPI libraries" There are different MPI libraries on ZIH systems for the different micro architectures. Thus, - you have to compile the binaries specifically for the target architecture of the cluster of interest. Please - refer to the sections [building software](../software/building_software.md) and - [module environments](../software/modules.md#module-environments) for detailed - information. + you have to compile the binaries specifically for the target architecture of the cluster of + interest. Please refer to the sections [building software](../software/building_software.md) and + [module environments](../software/modules.md#module-environments) for detailed information. !!! example "Job file for MPI application" @@ -57,8 +56,8 @@ For MPI-parallel jobs one typically allocates one core per task that has to be s ### Multiple Programs Running Simultaneously in a Job In this short example, our goal is to run four instances of a program concurrently in a **single** -batch script. Of course, we could also start a batch script four times with `sbatch`, but this is not -what we want to do here. However, you can also find an example about +batch script. Of course, we could also start a batch script four times with `sbatch`, but this is +not what we want to do here. However, you can also find an example about [how to run GPU programs simultaneously in a single job](#running-multiple-gpu-applications-simultaneously-in-a-batch-job) below. @@ -169,7 +168,8 @@ srun: error: Unable to allocate resources: Job violates accounting/QOS policy (j ### Running Multiple GPU Applications Simultaneously in a Batch Job Our starting point is a (serial) program that needs a single GPU and four CPU cores to perform its -task (e.g. TensorFlow). The following batch script shows how to run such a job on the cluster `Power9`. +task (e.g. TensorFlow). The following batch script shows how to run such a job on the cluster +`Power9`. !!! example @@ -194,8 +194,8 @@ srun --ntasks=1 --cpus-per-task=4 [...] some-gpu-application ``` Now, our goal is to run four instances of this program concurrently in a single batch script. Of -course we could also start the above script multiple times with `sbatch`, but this is not what we want -to do here. +course we could also start the above script multiple times with `sbatch`, but this is not what we +want to do here. #### Solution