Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to use mpi4py on Piz Daint, you will need to install it using the cray compiler, which will include and link it to the correct cray-mpich header files and libraries.

Step-by-step guide

  1. Create and activate your python virtual enviroment e.g.: as described here: https://user.cscs.ch/tools/interactive/python/#python-virtual-environments
  2. Install mpi4py using a cray compiler by defining the MPICC environment variable:
    MPICC=cc pip install -U mpi4py 

...

Info
Without the correct compiler you will probably get compilation errors when running `pip install mpi4py`, e.g.: 
fatal error: mpi.h: No such file or directory

Content by Label
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("mpi","pythonkb-how-to-article","kb-troubleshooting-articlesoftware") and type = "page" and space = "KB"
labelsmpi python

...