[rabit harden] Enable all tests (#90)

* include osx in tests
* address `time_wait` on port assignment
* increase submit attempts.
* cleanup tests
This commit is contained in:
Chen Qin
2019-04-24 04:12:11 -07:00
committed by Jiaming Yuan
parent ecd4bf7aae
commit e3d51d3e62
17 changed files with 168 additions and 66 deletions

27
scripts/mpi_build.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
if [ -f mpich/lib/libmpich.so ]; then
echo "libmpich.so found -- nothing to build."
else
echo "Downloading mpich source."
wget http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
tar xfz mpich-3.2.tar.gz
rm mpich-3.2.tar.gz*
echo "configuring and building mpich."
cd mpich-3.2
#CC=gcc CXX=g++ CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64
./configure \
--prefix=`pwd`/../mpich \
--enable-static=false \
--enable-alloca=true \
--disable-long-double \
--enable-threads=single \
--enable-fortran=no \
--enable-fast=all \
--enable-g=none \
--enable-timing=none \
--enable-cxx
make -j4
make install
cd -
fi

View File

@@ -7,3 +7,4 @@ make -f test.mk local_recover_10_10k || exit -1
make -f test.mk lazy_recover_10_10k_die_hard || exit -1
make -f test.mk lazy_recover_10_10k_die_same || exit -1
make -f test.mk ringallreduce_10_10k || exit -1
make -f test.mk pylocal_recover_10_10k || exit -1

View File

@@ -15,6 +15,7 @@ if [ ${TASK} == "build" ]; then
fi
if [ ${TASK} == "mpi-build" ]; then
./scripts/mpi_build.sh
cd test
make mpi && make speed_test.mpi || exit -1
fi