[mpi] add engine_mpi travis build (#83)
This commit is contained in:
parent
ed06e0c6af
commit
785d7e54d3
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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/*~
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user