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

Last change on this file since 21692 was 21692, checked in by Mathieu Morlighem, 8 years ago

CHG: added some installation scripts

  • Property svn:executable set to *
File size: 828 bytes
Line 
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
9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/mpich-3.2.tar.gz' 'mpich-3.2.tar.gz'
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
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
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.