Skip to content

Commit 0b79be9

Browse files
authored
Merge pull request #43 from calculquebec/h26-rev
H26 révision mineure
2 parents a20e153 + dfb3e15 commit 0b79be9

10 files changed

Lines changed: 242 additions & 242 deletions

File tree

doc/en/monitoring/compute-nodes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ Group exercise
4444

4545
**Objective**
4646

47-
- Understand how to get a list of the compute nodes allocated to a running job.
47+
- Understand how to get a list of the compute nodes allocated to a running job
48+
and connect to that job.
4849

4950
**Instructions**
5051

5152
#. Submit a short job: ``sbatch --wrap='sleep 120'``.
5253
#. Check the id and node list with ``squeue -t running -u $USER``.
5354
#. Also try: ``squeue -j <id> -o %.40N``.
55+
#. Connect to the job with: ``srun --jobid=<id> --pty $SHELL``.

doc/en/monitoring/user-portal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Some clusters offer a portal to monitor your current jobs and even your
77
recently completed jobs. Here they are:
88

99
- **Narval**: https://portail.narval.calculquebec.ca
10+
- **Nibi** : https://portal.nibi.sharcnet.ca
1011
- **Rorqual**: https://metrix.rorqual.calculquebec.ca
1112
- **Trillium and Trillium GPU**: https://my.scinet.utoronto.ca
1213

doc/en/task-types/parallel.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ Exercise
146146

147147
#. Go to the exercise directory with ``cd ~/cip201-main/lab/pi-multi-threaded``.
148148
#. Compile the ``pi`` program with the ``make`` command.
149-
#. Start an interactive job with ``salloc [...] --time=00:10:00``. Replace
150-
``[...]`` by the parallelism options necessary for a multi-threaded job and
151-
ask for 2 CPU cores.
149+
#. Start an interactive job with ``salloc --time=00:10:00 ...``. Replace ``...``
150+
by the parallelism options necessary for a multi-threaded job and ask for 2
151+
CPU cores.
152152
#. Run the program in the background with ``./pi &``.
153153
#. While ``pi`` runs, check its CPU usage with ``top -u $USER`` and ``top -u
154154
$USER -H``.
@@ -316,9 +316,9 @@ Exercise
316316

317317
#. Go to the exercise directory with ``cd ~/cip201-main/lab/pi-mpi``.
318318
#. Compile the ``pi`` program with the ``make`` command.
319-
#. Start an interactive job with ``salloc [...] --time=00:10:00``.
320-
Replace ``[...]`` by the parallelism options necessary for an MPI program
321-
and ask for 1 node and 2 CPU cores.
319+
#. Start an interactive job with ``salloc --time=00:10:00 ...``. Replace ``...``
320+
by the parallelism options necessary for an MPI program and ask for 1 node
321+
and 2 CPU cores.
322322
#. Run the program in the background with ``mpirun ./pi &``.
323323
#. While ``pi`` runs, check its CPU usage with ``top -u $USER`` and ``top -u
324324
$USER -H``.

doc/en/task-types/serial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Exercise
179179

180180
#. While ``fibo`` runs, check its CPU usage in the task manager.
181181

182-
#. Show the task manager with ``top -u $USER -H``.
182+
#. Show the task manager with ``top -u $USER``.
183183
#. Quit the manager with :kbd:`q`.
184184

185185
#. Stop the ``fibo`` program with ``kill %1``.

doc/fr/monitoring/compute-nodes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ Exercice en groupe
4444

4545
**Objectif**
4646

47-
- Savoir trouver la liste des nœuds d'une tâche en cours d'exécution.
47+
- Savoir trouver la liste des nœuds d'une tâche en cours d'exécution et s’y
48+
connecter.
4849

4950
**Instructions**
5051

5152
#. Soumettez une courte tâche : ``sbatch --wrap='sleep 120'``.
5253
#. Voyez l’identifiant et la liste de nœuds dans la sortie de : ``squeue -t
5354
running -u $USER``.
5455
#. Essayez aussi : ``squeue -j <id> -o %.40N``.
56+
#. Connectez-vous à la tâche avec : ``srun --jobid=<id> --pty $SHELL``.

doc/fr/monitoring/user-portal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Certaines grappes de calcul offrent un portail permettant de monitorer vos
77
tâches en cours et même vos tâches récemment terminées. Les voici :
88

99
- **Narval** : https://portail.narval.calculquebec.ca
10+
- **Nibi** : https://portal.nibi.sharcnet.ca
1011
- **Rorqual** : https://metrix.rorqual.calculquebec.ca
1112
- **Trillium et Trillium GPU** : https://my.scinet.utoronto.ca
1213

doc/fr/task-types/parallel.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ Exercice
155155
#. Allez dans le répertoire de l’exercice avec ``cd
156156
~/cip201-main/lab/pi-multi-threaded``.
157157
#. Compilez le programme ``pi`` avec la commande ``make``.
158-
#. Démarrez une tâche interactive avec ``salloc [...] --time=00:10:00``.
159-
Remplacez ``[...]`` par les options de parallélisme nécessaires pour une
160-
tâche multi-fils et demandez 2 cœurs CPU.
158+
#. Démarrez une tâche interactive avec ``salloc --time=00:10:00 ...``. Remplacez
159+
``...`` par les options de parallélisme nécessaires pour une tâche multi-fils
160+
et demandez 2 cœurs CPU.
161161
#. Exécutez le programme en arrière-plan avec ``./pi &``.
162162
#. Pendant que ``pi`` s’exécute, observez sa consommation CPU avec ``top -u
163163
$USER`` et ``top -u $USER -H``.
@@ -334,9 +334,9 @@ Exercice
334334

335335
#. Allez dans le répertoire de l’exercice avec ``cd ~/cip201-main/lab/pi-mpi``.
336336
#. Compilez le programme ``pi`` avec la commande ``make``.
337-
#. Démarrez une tâche interactive avec ``salloc [...] --time=00:10:00``.
338-
Remplacez ``[...]`` par les options de parallélisme nécessaires pour une
339-
tâche MPI et demandez 1 nœud et 2 cœurs CPU.
337+
#. Démarrez une tâche interactive avec ``salloc --time=00:10:00 ...``. Remplacez
338+
``...`` par les options de parallélisme nécessaires pour une tâche MPI et
339+
demandez 1 nœud et 2 cœurs CPU.
340340
#. Exécutez le programme en arrière-plan avec ``mpirun ./pi &``.
341341
#. Pendant que ``pi`` s’exécute, observez sa consommation CPU avec ``top -u
342342
$USER`` et ``top -u $USER -H``.

doc/fr/task-types/serial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Exercice
193193
#. Pendant que ``fibo`` s’exécute, observez sa consommation de CPU dans le
194194
gestionnaire de tâches.
195195

196-
#. Affichez le gestionnaire avec ``top -u $USER -H``.
196+
#. Affichez le gestionnaire avec ``top -u $USER``.
197197
#. Quittez le gestionnaire avec :kbd:`q`.
198198

199199
#. Interrompez le programme ``fibo`` avec ``kill %1``.

doc/images/task-types_en.svg

Lines changed: 93 additions & 95 deletions
Loading

0 commit comments

Comments
 (0)