Skip to content

Commit

Permalink
Updrade to OpenMPI3 to fix diagnostics error
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaweiZhuang committed Dec 13, 2018
1 parent 288f7db commit 42437d7
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions scripts/build_environment/GCHP/openmpi/install_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
# =========================
sudo apt-get update

# All libraries need for GCHP. f2py and mpich are new libraries in addition to GC-classic.
sudo apt-get install -y bc gcc gfortran \
libnetcdf-dev libnetcdff-dev netcdf-bin \
python-numpy libopenmpi-dev
python-numpy

# Ubuntu AMI has vim and nano but no emacs
sudo apt-get install -y emacs
Expand All @@ -21,6 +20,25 @@ sudo apt-get install -y awscli
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*

# =========================
# OpenMPI 3
# =========================
# https://www.open-mpi.org/software/ompi/v3.1/
wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.3.tar.gz
tar zxf openmpi-3.1.3.tar.gz
cd openmpi-3.1.3
./configure prefix=/usr/local/
make -j4
sudo make install

# Fix library linking
# https://askubuntu.com/a/1100000
sudo ldconfig

cd ..
rm -rf openmpi-3.1.3
# =========================

# =========================
# Additional fixes for GCHP
# =========================
Expand Down

0 comments on commit 42437d7

Please sign in to comment.