Created
November 3, 2020 18:13
-
-
Save chiroptical/3bdfd75b8f1b70900f71bcbf85d4753b to your computer and use it in GitHub Desktop.
Installing mpi4py and hdf5 [parallel] on H2P
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The installation below expects that HDF5 is compiled with shared and parallel capabilities | |
# 1. Load python and mpi libraries | |
module purge | |
module load python/3.7.0 venv/wrap openmpi/3.1.4 hdf5/1.10.7 | |
# 2. Make a new virtual environment (or load an existing one) | |
mkvirtualenv test | |
workon test | |
# 3. Install mpi4py | |
OMPI_CC=/usr/bin/gcc pip install mpi4py | |
# Install Parallel HDF5 | |
OMPI_CC=/usr/bin/gcc CC=$(which mpicc) HDF5_DIR=$HDF5_ROOT HDF5_MPI="ON" pip install --no-binary=h5py h5py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment