[mpi] add engine_mpi travis build (#83)

This commit is contained in:
Chen Qin 2019-03-15 07:58:47 -07:00 committed by Jiaming Yuan
parent ed06e0c6af
commit 785d7e54d3
3 changed files with 12 additions and 1 deletions

View File

@ -8,6 +8,7 @@ env:
- TASK=lint LINT_LANG=python
- TASK=doc
- TASK=build
- TASK=mpi-build
- TASK=test
# dependent apt packages
@ -24,6 +25,11 @@ addons:
- python-numpy
- gcc-4.8
- g++-4.8
- openmpi-bin
- openmpi-common
- openssh-client
- openssh-server
- libopenmpi-dev
before_install:
- git clone https://github.com/dmlc/dmlc-core

View File

@ -14,6 +14,11 @@ if [ ${TASK} == "build" ]; then
make all || exit -1
fi
if [ ${TASK} == "mpi-build" ]; then
cd test
make mpi && make speed_test.mpi || exit -1
fi
if [ ${TASK} == "test" ]; then
cd test
make all || exit -1

View File

@ -52,7 +52,7 @@ $(OBJ) :
$(CXX) -c $(CFLAGS) -o $@ $(firstword $(filter %.cpp %.c %.cc, $^) )
$(MPIBIN) :
$(MPICXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c %.cc, $^) $(LDFLAGS) -lrabit_mpi
$(MPICXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c %.cc, $^) ../lib/librabit_mpi.so $(LDFLAGS)
clean:
$(RM) $(OBJ) $(BIN) $(MPIBIN) $(MPIOBJ) *~ ../src/*~