install_MPI.sh 807 Bytes
Newer Older
incardon's avatar
incardon committed
1
2
#!/bin/bash 

incardon's avatar
incardon committed
3
# check if the directory $1/MPI exist
incardon's avatar
incardon committed
4

incardon's avatar
incardon committed
5
if [ -d "$1/MPI" ]; then
incardon's avatar
incardon committed
6
7
8
  echo "MPI already installed"
  exit 0
fi
Pietro Incardona's avatar
Pietro Incardona committed
9
10
11
12
13
rm -rf openmpi-1.10.2
rm openmpi-1.10.2.tar.bz2
wget http://ppmcore.mpi-cbg.de/upload/openmpi-1.10.2.tar.bz2
tar -xvf openmpi-1.10.2.tar.bz2
cd openmpi-1.10.2
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#
#                  --disable-mca-dso \
#                 --disable-sysv-shmem \
#                 --enable-cxx-exceptions \
#                 --with-threads=posix \
#                 --without-cs-fs \
#                 --with-mpi-param_check=always \
#                 --enable-contrib-no-build=vt,libompitrace \
#
#--enable-mca-no-build=paffinity,installdirs-windows,timer-windows,shmem-sysv
#
#

Pietro Incardona's avatar
Pietro Incardona committed
28
./configure --prefix=$1/MPI --enable-mpi-fortran=yes
incardon's avatar
incardon committed
29
make -j 4
incardon's avatar
incardon committed
30
make install
Pietro Incardona's avatar
Pietro Incardona committed
31
32
33
34

# Mark the installation
echo 1 > $1/MPI/version