Skip to content
Snippets Groups Projects
Commit ea317d70 authored by Jait Dixit's avatar Jait Dixit
Browse files

Install h5py with MPI support

parent c0a6badc
No related branches found
No related tags found
1 merge request!43Install h5py with MPI support
Pipeline #
......@@ -13,7 +13,7 @@ before_script:
- apt-get update
- >
apt-get install -y build-essential python python-pip python-dev git
gfortran autoconf gsl-bin libgsl-dev
gfortran autoconf gsl-bin libgsl-dev wget
- pip install -r ci/requirements_base.txt
- chmod +x ci/*.sh
......@@ -58,9 +58,10 @@ test_mpi_fftw_hdf5:
libfftw3-quad3 libfftw3-single3
- >
apt-get install -y libhdf5-10 libhdf5-dev libhdf5-openmpi-10
libhdf5-openmpi-dev hdf5-tools python-h5py
libhdf5-openmpi-dev hdf5-tools
- pip install astropy healpy mpi4py
- pip install git+https://github.com/mrbell/gfft
- ci/install_h5py.sh
- ci/install_libsharp.sh
- ci/install_pyfftw.sh
- python setup.py build_ext --inplace
......
#!/bin/bash
wget https://api.github.com/repos/h5py/h5py/tags -O - | grep tarball_url | grep -v rc | head -n 1 | cut -d '"' -f 4 | wget -i - -O h5py.tar.gz
tar xzf h5py.tar.gz
cd h5py-h5py*
export CC=mpicc
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi
python setup.py configure --mpi
python setup.py build
python setup.py install
cd ..
rm -r h5py-h5py*
rm h5py.tar.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment