From a6f2aa03b38f3167a8e5e35f9ddbc6464234122f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= <lukas.krupcik@vsb.cz> Date: Wed, 1 Mar 2017 08:22:37 +0100 Subject: [PATCH] RT#8782, @hrb33 --- .../software/mpi/mpi4py-mpi-for-python.md | 20 ++++++++++++++++-- .../software/mpi/mpi4py-mpi-for-python.md | 21 +++++++++++++++++-- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/docs.it4i/anselm/software/mpi/mpi4py-mpi-for-python.md b/docs.it4i/anselm/software/mpi/mpi4py-mpi-for-python.md index eeb15b3d0..4d687dc2f 100644 --- a/docs.it4i/anselm/software/mpi/mpi4py-mpi-for-python.md +++ b/docs.it4i/anselm/software/mpi/mpi4py-mpi-for-python.md @@ -13,10 +13,26 @@ On Anselm MPI4Py is available in standard Python modules. MPI4Py is build for OpenMPI. Before you start with MPI4Py you need to load Python and OpenMPI modules. ```console -$ ml Python -$ ml OpenMPI +$ ml av Python/ +--------------------------------------- /apps/modules/lang ------------------------- + Python/2.7.8-intel-2015b Python/2.7.11-intel-2016a Python/3.5.1-intel-2017.00 + Python/2.7.11-intel-2017a Python/2.7.9-foss-2015b Python/2.7.9-intel-2015b + Python/2.7.11-foss-2016a Python/3.5.2-foss-2016a Python/3.5.1 + Python/2.7.9-foss-2015g Python/3.4.3-intel-2015b Python/2.7.9 + Python/2.7.11-intel-2015b Python/3.5.2 + +$ ml av OpenMPI/ +--------------------------------------- /apps/modules/mpi -------------------------- +OpenMPI/1.8.6-GCC-4.4.7-system OpenMPI/1.8.8-GNU-4.9.3-2.25 OpenMPI/1.10.1-GCC-4.9.3-2.25 +OpenMPI/1.8.6-GNU-5.1.0-2.25 OpenMPI/1.8.8-GNU-5.1.0-2.25 OpenMPI/1.10.1-GNU-4.9.3-2.25 + OpenMPI/1.8.8-iccifort-2015.3.187-GNU-4.9.3-2.25 OpenMPI/2.0.2-GCC-6.3.0-2.27 ``` +!!! Warning "" + * modules Python/x.x.x-intel... - intel MPI + * modules Python/x.x.x-foss... - OpenMPI + * modules Python/x.x.x - without MPI + ## Execution You need to import MPI to your python program. Include the following line to the python script: diff --git a/docs.it4i/salomon/software/mpi/mpi4py-mpi-for-python.md b/docs.it4i/salomon/software/mpi/mpi4py-mpi-for-python.md index 8b2a12823..f957f5c14 100644 --- a/docs.it4i/salomon/software/mpi/mpi4py-mpi-for-python.md +++ b/docs.it4i/salomon/software/mpi/mpi4py-mpi-for-python.md @@ -8,16 +8,33 @@ MPI for Python provides bindings of the Message Passing Interface (MPI) standard This package is constructed on top of the MPI-1/2 specifications and provides an object oriented interface which closely follows MPI-2 C++ bindings. It supports point-to-point (sends, receives) and collective (broadcasts, scatters, gathers) communications of any picklable Python object, as well as optimized communications of Python object exposing the single-segment buffer interface (NumPy arrays, builtin bytes/string/array objects). -On Anselm MPI4Py is available in standard Python modules. +On Salomon MPI4Py is available in standard Python modules. ## Modules MPI4Py is build for OpenMPI. Before you start with MPI4Py you need to load Python and OpenMPI modules. You can use toolchain, that loads Python and OpenMPI at once. ```console -$ ml Python/2.7.9-foss-2015g +$ ml av Python/ +--------------------------------------- /apps/modules/lang ------------------------- + Python/2.7.8-intel-2015b Python/2.7.11-intel-2016a Python/3.5.1-intel-2017.00 + Python/2.7.11-intel-2017a Python/2.7.9-foss-2015b Python/2.7.9-intel-2015b + Python/2.7.11-foss-2016a Python/3.5.2-foss-2016a Python/3.5.1 + Python/2.7.9-foss-2015g Python/3.4.3-intel-2015b Python/2.7.9 + Python/2.7.11-intel-2015b Python/3.5.2 + +$ ml av OpenMPI/ +--------------------------------------- /apps/modules/mpi -------------------------- +OpenMPI/1.8.6-GCC-4.4.7-system OpenMPI/1.8.8-GNU-4.9.3-2.25 OpenMPI/1.10.1-GCC-4.9.3-2.25 +OpenMPI/1.8.6-GNU-5.1.0-2.25 OpenMPI/1.8.8-GNU-5.1.0-2.25 OpenMPI/1.10.1-GNU-4.9.3-2.25 + OpenMPI/1.8.8-iccifort-2015.3.187-GNU-4.9.3-2.25 OpenMPI/2.0.2-GCC-6.3.0-2.27 ``` +!!! Warning "" + * modules Python/x.x.x-intel... - intel MPI + * modules Python/x.x.x-foss... - OpenMPI + * modules Python/x.x.x - without MPI + ## Execution You need to import MPI to your python program. Include the following line to the python script: -- GitLab