Skip to content

Commit 1f6c843

Browse files
authored
Merge branch 'ENCCS:main' into main
2 parents 626322f + c2444e2 commit 1f6c843

File tree

1 file changed

+56
-12
lines changed

1 file changed

+56
-12
lines changed

content/setup.rst

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
Installation and HPC access
22
===========================
33

4+
45
This page contains instructions for installing the required dependencies on a local computer
56
as well as instructions for logging into a EuroHPC system.
67

8+
79
Local installation
810
------------------
911

10-
If you already have a preferred way to manage Python versions and
11-
libraries, you can stick to that. If not, we recommend that you install
12-
Python3 and all libraries using
13-
`Miniforge <https://conda-forge.org/download/>`__, a free
14-
minimal installer for the package, dependency and environment manager
15-
`conda <https://docs.conda.io/en/latest/index.html>`__.
1612

17-
Please follow the installation instructions on
18-
https://conda-forge.org/download/ to install Miniforge.
13+
If you already have a preferred way to manage Python versions and libraries, you can stick to that. If not, we recommend that you install Python3 and all libraries using `Miniforge <https://conda-forge.org/download/>`__, a free minimal installer for the package, dependency and environment manager `conda <https://docs.conda.io/en/latest/index.html>`__.
14+
15+
Please follow the installation instructions on https://conda-forge.org/download/ to install Miniforge.
1916

2017
Make sure that conda is correctly installed:
2118

@@ -60,9 +57,56 @@ Finally, open Jupyter-Lab in your browser:
6057
LUMI
6158
------------
6259

63-
.. note::
6460

65-
.. todo::
66-
Add Instructions for using this
61+
Login to LUMI cluster
62+
^^^^^^^^^^^^^^^^^^^^^
63+
64+
Follow practical instructions `HERE <https://enccs.se/tutorials/2024/02/log-in-to-lumi-cluster/>`_ to get your access to LUMI cluster.
65+
66+
- On `Step 5 <https://enccs.se/tutorials/2024/02/log-in-to-lumi-cluster/>`_, you can login to LUMI cluster through terminal.
67+
- On `Step 6 <https://enccs.se/tutorials/2024/02/log-in-to-lumi-cluster/>`_, you can login to LUMI cluster from the web-interface.
68+
69+
70+
Running jobs on LUMI cluster
71+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72+
73+
If you want to run an interactive job asking for 1 node, 1 GPU, and 1 hour:
74+
75+
.. code-block:: console
76+
77+
$ salloc -A project_465001310 -N 1 -t 1:00:00 -p standard-g --gpus-per-node=1
78+
$ srun <some-command>
79+
80+
Exit interactive allocation with ``exit``.
81+
82+
Interacive terminal session on compute node:
83+
84+
.. code-block:: console
85+
86+
$ srun --account=project_465001310 --partition=standard-g --nodes=1 --cpus-per-task=1 --ntasks-per-node=1 --gpus-per-node=1 --time=1:00:00 --pty bash
87+
$ <some-command>
88+
89+
90+
You can also submit your job with a batch script ``submit.sh``:
91+
92+
.. code-block:: bash
93+
94+
#!/bin/bash -l
95+
#SBATCH --account=project_465001310
96+
#SBATCH --job-name=example-job
97+
#SBATCH --output=examplejob.o%j
98+
#SBATCH --error=examplejob.e%j
99+
#SBATCH --partition=standard-g
100+
#SBATCH --nodes=1
101+
#SBATCH --gpus-per-node=1
102+
#SBATCH --ntasks-per-node=1
103+
#SBATCH --time=1:00:00
104+
105+
srun <some_command>
106+
107+
108+
Some useful commands are listed below:
67109

68-
Go to LUMI `open OnDemand portal <https://www.lumi.csc.fi/pun/sys/dashboard/>`__
110+
- Submit the job: ``sbatch submit.sh``
111+
- Monitor your job: ``squeue --me``
112+
- Kill job: ``scancel <JOB_ID>``

0 commit comments

Comments
 (0)