anirudh2290 commented on a change in pull request #16654: Multithreaded Inference Support URL: https://github.com/apache/incubator-mxnet/pull/16654#discussion_r366077644
########## File path: example/multi_threaded_inference/Makefile ########## @@ -0,0 +1,67 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + + +CFLAGS=-std=c++11 -g -Wno-unknown-pragmas -Wall -DMXNET_USE_CUDA=1 -DMXNET_USE_CUDNN=1 -DMXNET_USE_MKLDNN=1 + +export MXNET_ROOT = `pwd`/../.. +export CPP_PACKAGE = $(MXNET_ROOT)/cpp-package + +CFLAGS += `pkg-config --cflags opencv` +LDFLAGS += `pkg-config --libs opencv` + +ifndef USE_CUDA_PATH + export USE_CUDA_PATH = /usr/local/cuda +endif + +ifndef MKLDNN_BUILD_DIR + export MKLDNN_BUILD_DIR = $(MXNET_ROOT)/3rdparty/mkldnn/build + # Cmake build path by default + # Uncomment below line for CMake build + #export MKLDNN_BUILD_DIR = $(MXNET_ROOT)/build/3rdparty/mkldnn +endif + +ifndef MKLDNN_INCLUDE_DIR + export MKLDNN_INCLUDE_DIR = $(MXNET_ROOT)/3rdparty/mkldnn/include + # Cmake build path by default + # Uncomment below line for CMake build + #export MKLDNN_INCLUDE_DIR = $(MXNET_ROOT)/3rdparty/mkldnn/include +endif + +CFLAGS += -I$(MXNET_ROOT)/include -I$(CPP_PACKAGE)/include -I$(USE_CUDA_PATH)/include -I$(MKLDNN_INCLUDE_DIR) -I$(MKLDNN_BUILD_DIR)/include + +# If MXNET_LIB_DIR env variable set use that, otherwise defaults to MXNET_ROOT/build +ifndef MXNET_LIB_DIR + MXNET_LIB_DIR=$(MXNET_ROOT)/lib + # cmake default by default Review comment: hehe, not sure either. will remove it! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
