|
1 | 1 | Installation and HPC access
|
2 | 2 | ===========================
|
3 | 3 |
|
| 4 | + |
4 | 5 | This page contains instructions for installing the required dependencies on a local computer
|
5 | 6 | as well as instructions for logging into a EuroHPC system.
|
6 | 7 |
|
| 8 | + |
7 | 9 | Local installation
|
8 | 10 | ------------------
|
9 | 11 |
|
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>`__. |
16 | 12 |
|
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. |
19 | 16 |
|
20 | 17 | Make sure that conda is correctly installed:
|
21 | 18 |
|
@@ -60,9 +57,56 @@ Finally, open Jupyter-Lab in your browser:
|
60 | 57 | LUMI
|
61 | 58 | ------------
|
62 | 59 |
|
63 |
| -.. note:: |
64 | 60 |
|
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: |
67 | 109 |
|
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