Files
Da Zheng d8984e836e [MXNET-910] Multithreading inference. (#12456)
* add multi-threading inference.

* demo multi-threading inference.

* add new capi.

* make naive engine thread local.

* create an executor inside each thread.

* fix format.

* fix format.

* fix format.

* Revert "make naive engine thread local."

This reverts commit b9d844e46d33f11ad409feb099194e183da9bbda.

* Update CAPI.

* add doc.

* fix lint.

* update example.

* update.

* fix.

* add check.

* fix.

* fix example.

* update name.

* update README.
2018-09-18 17:07:01 -07:00

32 lines
891 B
Makefile

# Special thanks to https://github.com/pertusa for the Makefile
CFLAGS=-std=c++11 -Wno-unknown-pragmas -Wall
# Added for openblas
# export OPENBLAS_ROOT=/usr/local/opt/openblas
# CFLAGS+= -I${OPENBLAS_ROOT}/include
# LDFLAGS=-L${OPENBLAS_ROOT}/lib -lopenblas
# Added for opencv
CFLAGS+= `pkg-config --cflags opencv`
LDFLAGS+=`pkg-config --libs opencv`
# Added for mxnet
export MXNET_ROOT=`pwd`/../../..
CFLAGS+=-Wall -I$(MXNET_ROOT)/include
LDFLAGS+=$(MXNET_ROOT)/lib/libmxnet.so -lpthread
image-classification-predict: image-classification-predict.o
g++ -O3 -o image-classification-predict image-classification-predict.o $(LDFLAGS)
image-classification-predict.o: image-classification-predict.cc
g++ -O3 -c image-classification-predict.cc ${CFLAGS}
clean:
rm image-classification-predict
rm -f *.d *.o
lint:
python ../../../3rdparty/dmlc-core/scripts/lint.py mxnet "cpp" ./