source: issm/oecreview/Archive/19101-20495/ISSM-19783-19784.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 1.4 KB
RevLine 
[20498]1Index: ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64-elcapitan.sh
2===================================================================
3--- ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64-elcapitan.sh (revision 0)
4+++ ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64-elcapitan.sh (revision 19784)
5@@ -0,0 +1,38 @@
6+# One way to avoid firewall and host-name issues on El Capitan is
7+# to use gforker, instead of default hydra, process manager.
8+# Note that gforker will only work with a single-node configuration.
9+# https://www.mpich.org/static/downloads/3.0.4/mpich-3.0.4-installguide.pdf
10+
11+#!/bin/bash
12+set -eu
13+
14+#Some cleanup
15+rm -rf src install mpich-3.0.4
16+mkdir src install
17+
18+#Download from ISSM server
19+$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/mpich-3.0.4.tar.gz' 'mpich-3.0.4.tar.gz'
20+
21+#Untar
22+tar -zxvf mpich-3.0.4.tar.gz
23+
24+#Move mpich into src directory
25+mv mpich-3.0.4/* src
26+rm -rf mpich-3.0.4
27+
28+#Configure mpich
29+cd src
30+./configure \
31+ --prefix="$ISSM_DIR/externalpackages/mpich/install" \
32+ --enable-shared \
33+ --with-pm=gforker
34+
35+ #CC=llvm-gcc \
36+
37+#Compile mpich (this new version supports parallel make)
38+if [ $# -eq 0 ]; then
39+ make
40+else
41+ make -j $1
42+fi
43+make install
44
45Property changes on: ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64-elcapitan.sh
46___________________________________________________________________
47Added: svn:executable
48 + *
49
Note: See TracBrowser for help on using the repository browser.