fix stdin input

This commit is contained in:
tqchen
2015-03-08 12:22:11 -07:00
parent 3258bcf531
commit 2fbda812bc
5 changed files with 16 additions and 14 deletions

View File

@@ -1,12 +1,12 @@
# this is the common build script for rabit programs
# you do not have to use it
export LDFLAGS= -pthread -lm -L../../lib -lrt
export LDFLAGS= -L../../lib -pthread -lm -lrt
export CFLAGS = -Wall -msse2 -Wno-unknown-pragmas -fPIC -I../../include
# setup opencv
ifeq ($(USE_HDFS),1)
CFLAGS+= -DRABIT_USE_HDFS=1 -I$(LIBHDFS_INCLUDE) -I$(JAVA_HOME)/include
LDFLAGS+= -L$(HDFS_HOME)/lib/native -lhdfs
CFLAGS+= -DRABIT_USE_HDFS=1 -I$(HADOOP_HDFS_HOME)/include -I$(JAVA_HOME)/include
LDFLAGS+= -L$(HADOOP_HDFS_HOME)/lib/native -L$(LIBJVM) -lhdfs -ljvm
else
CFLAGS+= -DRABIT_USE_HDFS=0
endif

View File

@@ -17,5 +17,5 @@ export MPICXX = mpicxx
# whether use HDFS support during compile
USE_HDFS = 1
# home of hadoop
HDFS_HOME = $(HADOOP_HDFS_HOME)
# path to libjvm.so
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server