Skip to content

Commit 6ff8337

Browse files
committed
Parallel: running the sleep script with srun
1 parent a1b2a11 commit 6ff8337

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/day4/parallel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Parallel computing with Python
5353

5454
.. code-block:: console
5555
56-
$ ml julia/1.9.4-bdist
56+
$ ml julia/1.10.2-bdist
5757
5858
$ pip install JuliaCall
5959
@@ -378,7 +378,7 @@ in Python rather than learning to write those codes.
378378
one can realize how faster the loop can be executed when threads are added:
379379

380380
.. figure:: ../img/parallel-loop.png
381-
:width: 200
381+
:width: 250
382382
:align: center
383383

384384
In the following example ``sleep.py`` the `sleep()` function is called `n` times first in
@@ -434,7 +434,7 @@ in Python rather than learning to write those codes.
434434
435435
print("Time spent parallel: %.2f sec" % (endtime-starttime))
436436
437-
First load the modules ``ml GCCcore/11.2.0 Python/3.9.6`` (on Kebnekaise) and then run the script
437+
First load the modules for Python and dependencies and then run the script
438438
with the command ``srun -A "your-project" -n 1 -c 4 -t 00:05:00 python sleep.py`` to use 4 processes.
439439

440440
Optional flags for ``srun`` for writing output and error files are ``-o output_%j.out -e error_%j.err`` instead

0 commit comments

Comments
 (0)