set -x #set environment export OSU_VERSION=5.5 export FFLAGS="-w -fallow-argument-mismatch -O2" export prefix_build=/home/dwd/software #install some necessary stuff for mvapich apt-get update apt-get install -y \ autoconf \ libtool \ automake \ gettext \ make \ build-essential \ gfortran \ bison \ libibverbs1 \ librdmacm* \ wget #clean up apt-get clean rm -rf /var/lib/apt/lists/* /var/tmp/* mkdir -p ${prefix_build}/mvapich mkdir /temp #get cd /temp wget https://mvapich.cse.ohio-state.edu/download/mvapich/mv2/${mvapich}.tar.gz tar xvf ${mvapich}.tar.gz wget --no-check-certificate http://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-${OSU_VERSION}.tar.gz tar xvzf osu-micro-benchmarks-${OSU_VERSION}.tar.gz #Compile cd /temp/${mvapich} # all: /temp/${mvapich}/configure --with-device=ch3:mrail --with-rdma=gen2 --with-device=ch3:sock --with-device=ch3:nemesis --with-device=ch3:nemesis:tcp --prefix=${prefix_build}/mvapich #/temp/${mvapich}/configure --with-device=ch3:mrail --with-rdma=gen2 --with-device=ch3:sock --with-device=ch3:nemesis --prefix=${prefix_build}/mvapich #/temp/${mvapich}/configure --with-device=ch3:mrail --with-rdma=gen2 --with-device=ch3:nemesis --prefix=${prefix_build}/mvapich /temp/${mvapich}/configure --with-device=ch3:nemesis --prefix=${prefix_build}/mvapich #/temp/${mvapich}/configure --with-device=ch3:mrail --with-rdma=gen2 --with-device=ch3:nemesis:ib,tcp --prefix=${prefix_build}/mvapich does not compile # standard: #/temp/${mvapich}/configure --with-device=ch3:mrail --with-rdma=gen2 does not work #/temp/${mvapich}/configure --with-device=ch3:mrail --with-rdma=gen2 --with-device=ch3:sock --prefix=${prefix_build}/mvapich does not work #/temp/${mvapich}/configure --enable-g=all --prefix=${prefix_build}/mvapich does not work make -i -j4 && make install #osu-bm cd /temp/osu-micro-benchmarks-${OSU_VERSION} /temp/osu-micro-benchmarks-${OSU_VERSION}/configure \ CC=mpicc CXX=mpicxx \ CFLAGS=-I$(pwd)/../osu-micro-benchmarks-${OSU_VERSION}/util \ --prefix=${prefix_build}/mvapich make -j && make install #delete source cd / && rm -rf /temp ${prefix_build}/mvapich/share