|
Last change
on this file since 21692 was 21692, checked in by Mathieu Morlighem, 9 years ago |
|
CHG: added some installation scripts
|
-
Property svn:executable
set to
*
|
|
File size:
828 bytes
|
| Rev | Line | |
|---|
| [21507] | 1 | #!/bin/bash
|
|---|
| 2 | set -eu
|
|---|
| 3 |
|
|---|
| 4 | #Some cleanup
|
|---|
| 5 | rm -rf src install mpich-3.2
|
|---|
| 6 | mkdir 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
|
|---|
| 12 | tar -zxvf mpich-3.2.tar.gz
|
|---|
| 13 |
|
|---|
| 14 | #Move mpich into src directory
|
|---|
| 15 | mv mpich-3.2/* src
|
|---|
| 16 | rm -rf mpich-3.2
|
|---|
| 17 |
|
|---|
| [21692] | 18 | #patch from http://lists.mpich.org/pipermail/discuss/2016-May/004764.html
|
|---|
| 19 | cat src/src/include/mpiimpl.h | sed -e 's/} MPID_Request ATTRIBUTE((__aligned__(32)));/} ATTRIBUTE((__aligned__(32))) MPID_Request;/g' > TEMP
|
|---|
| 20 | mv TEMP src/src/include/mpiimpl.h
|
|---|
| 21 |
|
|---|
| [21507] | 22 | #Configure mpich
|
|---|
| 23 | cd src
|
|---|
| 24 | ./configure \
|
|---|
| 25 | --prefix="$ISSM_DIR/externalpackages/mpich/install" \
|
|---|
| 26 | --enable-shared
|
|---|
| 27 |
|
|---|
| 28 | #Compile mpich (this new version supports parallel make)
|
|---|
| 29 | if [ $# -eq 0 ]; then
|
|---|
| 30 | make
|
|---|
| 31 | else
|
|---|
| 32 | make -j $1
|
|---|
| 33 | fi
|
|---|
| 34 | make install
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.