rm mpi dep

This commit is contained in:
tqchen 2014-12-22 01:25:06 -08:00
parent bb2ecc6ad5
commit dd8d9646c4
2 changed files with 7 additions and 5 deletions

View File

@ -9,18 +9,20 @@ BIN = kmeans.rabit
# objectives that makes up rabit library
OBJ = kmeans.o
MPIBIN = kmeans.mpi
.PHONY: clean all lib
.PHONY: clean all lib libmpi
all: $(BIN)
all: $(BIN)
lib:
cd ..;make;cd -
cd ..;make lib/librabit.a;cd -
libmpi:
cd ..;make lib/librabit_mpi.a;cd -
kmeans.o: kmeans.cpp ../src/*.h
# we can link against MPI version to get use MPI
kmeans.rabit: kmeans.o lib
kmeans.mpi: kmeans.o lib
kmeans.mpi: kmeans.o libmpi
$(BIN) :
$(CXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c %.cc, $^) $(LDFLAGS) -lrabit

View File

@ -6,4 +6,4 @@ then
fi
#set path to hadoop streaming jar here
STREAMING_JAR=
python ../rabit_hadoop.py -hs $STREAMING_JAR -s $1 -i $2 -m kmeans.rabit --args "stdin "$3" "$4" stdout" -o $5
python ../tracker/rabit_hadoop.py -hs $STREAMING_JAR -s $1 -i $2 -m kmeans.rabit --args "stdin "$3" "$4" stdout" -o $5