Use MPICH from package manager

This commit is contained in:
Paul Romano 2017-07-10 12:41:00 -05:00
parent 42b2999ae4
commit 17a3fbc9a9
2 changed files with 5 additions and 15 deletions

View file

@ -9,9 +9,10 @@ addons:
packages:
- gfortran
- g++
- mpich
- libmpich-dev
cache:
directories:
- $HOME/mpich_install
- $HOME/hdf5_install
- $HOME/phdf5_install
- $HOME/nndc_hdf5
@ -32,10 +33,10 @@ before_install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION six numpy scipy h5py=2.5 pandas
- source activate test-environment
# Install GCC, MPICH, HDF5, PHDF5
# Install GCC, HDF5, PHDF5
- ./tests/travis_install.sh
- export FC=gfortran
- export MPI_DIR=$HOME/mpich_install
- export MPI_DIR=/usr
- export PHDF5_DIR=$HOME/phdf5_install
- export HDF5_DIR=$HOME/hdf5_install

View file

@ -2,24 +2,13 @@
set -ev
# Build MPICH
if [[ ! -e $HOME/mpich_install/bin/mpiexec ]]; then
wget -q http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
tar -xzvf mpich-3.2.tar.gz >/dev/null 2>&1
cd mpich-3.2
./configure --prefix=$HOME/mpich_install -q
make -j 2 &> /dev/null
make install &> /dev/null
cd ..
fi
# Build PHDF5
if [[ ! -e $HOME/phdf5_install/bin/h5pfc ]]; then
wget -q https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/hdf5-1.10.1.tar.bz2
tar -xjf hdf5-1.10.1.tar.bz2
mv hdf5-1.10.1 phdf5-1.10.1
cd phdf5-1.10.1
CC=$HOME/mpich_install/bin/mpicc FC=$HOME/mpich_install/bin/mpif90 \
CC=/usr/bin/mpicc FC=/usr/bin/mpif90 \
./configure --prefix=$HOME/phdf5_install -q \
--enable-fortran --enable-parallel
make -j 2 &> /dev/null