ok
This commit is contained in:
parent
7a35e1a906
commit
b078663982
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ export CC = gcc
|
|||||||
export CXX = g++
|
export CXX = g++
|
||||||
export MPICXX = mpicxx
|
export MPICXX = mpicxx
|
||||||
export LDFLAGS= -Lrabit/lib -pthread -lm
|
export LDFLAGS= -Lrabit/lib -pthread -lm
|
||||||
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fPIC -Irabit/src
|
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fPIC -Irabit/include
|
||||||
|
|
||||||
ifeq ($(no_omp),1)
|
ifeq ($(no_omp),1)
|
||||||
CFLAGS += -DDISABLE_OPENMP
|
CFLAGS += -DDISABLE_OPENMP
|
||||||
|
|||||||
24
multi-node/row-split/machine-row-rabit.sh
Executable file
24
multi-node/row-split/machine-row-rabit.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [[ $# -ne 1 ]]
|
||||||
|
then
|
||||||
|
echo "Usage: nprocess"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf train-machine.row* *.model
|
||||||
|
k=$1
|
||||||
|
# make machine data
|
||||||
|
cd ../../demo/regression/
|
||||||
|
python mapfeat.py
|
||||||
|
python mknfold.py machine.txt 1
|
||||||
|
cd -
|
||||||
|
|
||||||
|
# split the lib svm file into k subfiles
|
||||||
|
python splitrows.py ../../demo/regression/machine.txt.train train-machine $k
|
||||||
|
|
||||||
|
# run xgboost mpi
|
||||||
|
../../rabit/tracker/rabit_mpi.py $k local ../../xgboost machine-row.conf dsplit=row num_round=3
|
||||||
|
|
||||||
|
# run xgboost-mpi save model 0001, continue to run from existing model
|
||||||
|
../../rabit/tracker/rabit_mpi.py $k local ../../xgboost machine-row.conf dsplit=row num_round=1
|
||||||
|
../../rabit/tracker/rabit_mpi.py $k local ../../xgboost machine-row.conf dsplit=row num_round=2 model_in=0001.model
|
||||||
Loading…
x
Reference in New Issue
Block a user