Commit 1fdaace8 authored by incardon's avatar incardon

Adding configure and install MPI script

parent 31be4d59
This diff is collapsed.
#!/bin/bash #!/bin/bash
mkdir ${HOME}/MPI # check if the directory $1/MPI exist
tar -xvf openmpi-1.8.7.tar.bz2 if [ -d "$1/MPI" ]; then
cd openmpi-1.8.7 echo "MPI already installed"
sh ./configure --prefix=${HOME}/MPI --enable-opal-multi-threads --enable-mpi-f90 exit 0
make fi
rm -rf openmpi-3.1.1
rm openmpi-3.1.1.tar.gz
tar -xvf openmpi-3.1.1.tar.gz
cd openmpi-3.1.1
# --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 \
if [ x"$6" == x"1" ]; then
echo "Installing MPI with GPU support"
./configure --with-cuda --prefix=$1/MPI --enable-mpi-fortran=yes CC=$3 CXX=$4 F77=$5 FC=$5
echo "Installing MPI without GPU support"
./configure --prefix=$1/MPI --enable-mpi-fortran=yes CC=$3 CXX=$4 F77=$5 FC=$5
make -j $2
make install make install
# Mark the installation
echo 3 > $1/MPI/version
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment