Skip to content
Snippets Groups Projects
Commit b155ccd4 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Update mpi4py-mpi-for-python.md

parent 5eb66135
No related branches found
No related tags found
No related merge requests found
Pipeline #39706 failed
!!!warning
This page has not been updated yet. The page does not reflect the transition from PBS to Slurm.
# MPI4Py (MPI for Python) # MPI4Py (MPI for Python)
## Introduction ## Introduction
...@@ -16,9 +13,10 @@ MPI4Py is available in standard Python modules on the clusters. ...@@ -16,9 +13,10 @@ MPI4Py is available in standard Python modules on the clusters.
MPI4Py is built for OpenMPI or Intel MPI. Before you start with MPI4Py, you need to load the mpi4py module. MPI4Py is built for OpenMPI or Intel MPI. Before you start with MPI4Py, you need to load the mpi4py module.
```console ```console
$ ml av mpi4py $ ml av mpi4py
------------------------------------------------------- /apps/modules/mpi -------------------------------------------------------
mpi4py/3.1.1-gompi-2020b mpi4py/3.1.1-intel-2020b (D) -------------------------------------------------------------------- /apps/modules/lib ---------------------------------------------------------------------
mpi4py/3.1.4-gompi-2022b mpi4py/3.1.4-gompi-2023a mpi4py/3.1.5-gompi-2023b (D)
``` ```
!!! warning "Flavours" !!! warning "Flavours"
...@@ -51,8 +49,8 @@ $ mpirun python hello_world.py ...@@ -51,8 +49,8 @@ $ mpirun python hello_world.py
Execute the above code as: Execute the above code as:
```console ```console
$ qsub -q qprod -l select=4:ncpus=128:mpiprocs=128:ompthreads=1 -I -A PROJECT_ID $ salloc -p qcpu -A PROJECT_ID --nodes=4 --ntasks-per-node=128 --cpus-per-task=1
$ ml mpi4py/3.1.1-intel-2020b # or mpi4py/3.1.1-gompi-2020b $ ml mpi4py/3.1.5-gompi-2023b
``` ```
### Hello World! ### Hello World!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment