source: issm/trunk-jpl/externalpackages/mpich/install-3.2-macosx64.sh@ 23435

Last change on this file since 23435 was 23435, checked in by jdquinn, 6 years ago

CHG: Renamed download_external_package.bash -> DownloadExternalPackage.sh and updated calls to it in install scripts

  • Property svn:executable set to *
File size: 828 bytes
RevLine 
[21507]1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src install mpich-3.2
6mkdir src install
7
8#Download from ISSM server
[23435]9$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/mpich-3.2.tar.gz' 'mpich-3.2.tar.gz'
[21507]10
11#Untar
12tar -zxvf mpich-3.2.tar.gz
13
14#Move mpich into src directory
15mv mpich-3.2/* src
16rm -rf mpich-3.2
17
[21692]18#patch from http://lists.mpich.org/pipermail/discuss/2016-May/004764.html
19cat src/src/include/mpiimpl.h | sed -e 's/} MPID_Request ATTRIBUTE((__aligned__(32)));/} ATTRIBUTE((__aligned__(32))) MPID_Request;/g' > TEMP
20mv TEMP src/src/include/mpiimpl.h
21
[21507]22#Configure mpich
23cd src
24./configure \
25 --prefix="$ISSM_DIR/externalpackages/mpich/install" \
26 --enable-shared
27
28#Compile mpich (this new version supports parallel make)
29if [ $# -eq 0 ]; then
30 make
31else
32 make -j $1
33fi
34make install
Note: See TracBrowser for help on using the repository browser.