mirror of
https://github.com/RustyRaptor/incubator-mxnet.git
synced 2026-12-03 15:55:23 -07:00
* 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.
32 lines
891 B
Makefile
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" ./
|