add no omp flag
This commit is contained in:
parent
7c068cbe46
commit
66ae3a7578
9
Makefile
9
Makefile
@ -1,6 +1,12 @@
|
||||
export CC = gcc
|
||||
export CXX = g++
|
||||
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas
|
||||
export LDFLAGS= -pthread -lm
|
||||
|
||||
ifeq ($(no_omp),1)
|
||||
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas
|
||||
else
|
||||
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp
|
||||
endif
|
||||
|
||||
# specify tensor path
|
||||
BIN = xgboost
|
||||
@ -9,7 +15,6 @@ SLIB = python/libxgboostwrapper.so
|
||||
.PHONY: clean all
|
||||
|
||||
all: $(BIN) $(OBJ) $(SLIB)
|
||||
export LDFLAGS= -pthread -lm
|
||||
|
||||
xgboost: src/xgboost_main.cpp io.o src/data.h src/tree/*.h src/tree/*.hpp src/gbm/*.h src/gbm/*.hpp src/utils/*.h src/learner/*.h src/learner/*.hpp
|
||||
io.o: src/io/io.cpp src/data.h src/utils/*.h
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user