install_MPI.sh 749 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
9
  echo "MPI already installed"
  exit 0
fi

Pietro Incardona's avatar
Pietro Incardona committed
10
wget http://ppmcore.mpi-cbg.de/upload/openmpi-1.8.7.tar.bz2
incardon's avatar
incardon committed
11
12
tar -xvf openmpi-1.8.7.tar.bz2
cd openmpi-1.8.7
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#
#                  --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
#
#

incardon's avatar
incardon committed
27
sh ./configure --prefix=$1/MPI --enable-opal-multi-threads --enable-mpi-f90 $2 $3
incardon's avatar
incardon committed
28
make -j 4
incardon's avatar
incardon committed
29
mkdir $1/MPI
incardon's avatar
incardon committed
30
make install