Skip to content

Commit b86267d

Browse files
committed
Fixing some formatting errors2
1 parent 28b40f7 commit b86267d

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

docs/day2/basic_batch_slurm.rst

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,13 @@ Simple example batch script
140140
Type along!
141141

142142
This first example shows how to run a short, serial script. The batch script (named ``run_mmmult.sh``) can be found in the directory:
143+
143144
- If you did ``git clone https://github.com/UPPMAX/HPC-python.git``
144-
- HPC-Python/Exercises/day2/<center>, where <center> is hpc2n, uppmax, lunarc, nsc, pdc, or c3se.
145-
- The Python script is in HPC-Python/Exercises/day2/programs and is named ``mmmult.py``.
145+
- ``HPC-Python/Exercises/day2/<center>``, where <center> is hpc2n, uppmax, lunarc, nsc, pdc, or c3se.
146+
- The Python script is in ``HPC-Python/Exercises/day2/programs`` and is named ``mmmult.py``.
146147
- If you did ``wget https://github.com/UPPMAX/HPC-python/raw/refs/heads/main/exercises.tar.gz`` and then ``tar -xvzf exercises.tar.gz``
147-
- exercises/day2/<center>, where <center> is hpc2n, uppmax, lunarc, nsc, or pdc.
148-
- The Python script is in exercises/day2/programs and is named ``mmmult.py``.
148+
- ``exercises/day2/<center>``, where <center> is hpc2n, uppmax, lunarc, nsc, or pdc.
149+
- The Python script is in ``exercises/day2/programs`` and is named ``mmmult.py``.
149150

150151
1. The batch script is run with ``sbatch run_mmmult.sh``.
151152
2. Try type ``squeue -u <username>`` to see if it is pending or running.
@@ -155,22 +156,22 @@ This first example shows how to run a short, serial script. The batch script (na
155156

156157
.. tab:: UPPMAX
157158

158-
Short serial example script for Pelle. Loading Python 3.12.3 and a compatible SciPy-bundle for Numpy.
159+
Short serial example script for Pelle. Loading Python 3.12.3 and a compatible SciPy-bundle for Numpy.
159160

160-
.. code-block:: bash
161+
.. code-block:: bash
161162
162-
#!/bin/bash -l
163-
#SBATCH -A uppmax2025-2-393 # Change to your own after the course
164-
#SBATCH --time=00:20:00 # Asking for 20 minutes
165-
#SBATCH -n 1 # Asking for 1 core
163+
#!/bin/bash -l
164+
#SBATCH -A uppmax2025-2-393 # Change to your own after the course
165+
#SBATCH --time=00:20:00 # Asking for 20 minutes
166+
#SBATCH -n 1 # Asking for 1 core
166167
167-
# Load any modules you need, here Python 3.12.3
168-
# and a compatible SciPy-bundle for numpy
169-
module load Python/3.12.3-GCCcore-13.3.0
170-
module load SciPy-bundle/2024.05-gfbf-2024a
171-
172-
# Run your Python script
173-
python mmmult.py
168+
# Load any modules you need, here Python 3.12.3
169+
# and a compatible SciPy-bundle for numpy
170+
module load Python/3.12.3-GCCcore-13.3.0
171+
module load SciPy-bundle/2024.05-gfbf-2024a
172+
173+
# Run your Python script
174+
python mmmult.py
174175
175176
176177
.. tab:: HPC2N

0 commit comments

Comments
 (0)