From 990d20ffb1aab3cba310c1749fbd2063c630705d Mon Sep 17 00:00:00 2001 From: Cheng Li Date: Sun, 1 Apr 2018 22:50:02 -0500 Subject: [PATCH 1/4] work on background --- .vscode/c_cpp_properties.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 1a8af9ebb..67e9f10df 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -25,7 +25,10 @@ "macFrameworkPath": [ "/System/Library/Frameworks", "/Library/Frameworks" - ] + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "c11", + "cppStandard": "c++17" } ], "version": 3 From ffd91b238f0cd787514853334a8650a512bf5153 Mon Sep 17 00:00:00 2001 From: Abdul Dakkak Date: Mon, 2 Apr 2018 00:22:51 -0500 Subject: [PATCH 2/4] update tcmalloc --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 629a40d24..398413728 100644 --- a/Makefile +++ b/Makefile @@ -204,7 +204,10 @@ ifeq ($(USE_GPERFTOOLS), 1) ifeq (,$(FIND_LIBFILE)) FIND_LIBFILE=$(wildcard /usr/local/lib/lib$(FIND_LIBNAME).$(FIND_LIBFILEEXT)) ifeq (,$(FIND_LIBFILE)) - USE_GPERFTOOLS=0 + FIND_LIBFILE=$(wildcard /usr/lib64/lib$(FIND_LIBNAME).$(FIND_LIBFILEEXT)) + ifeq (,$(FIND_LIBFILE)) + USE_GPERFTOOLS=0 + endif endif endif endif From ad03098aa3258b9634227fa6e2bbfc715af8f7ba Mon Sep 17 00:00:00 2001 From: Abdul Dakkak Date: Mon, 2 Apr 2018 00:24:09 -0500 Subject: [PATCH 3/4] updates --- config.mk | 6 +++--- .../predict-cpp/image-classification-predict.cc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.mk b/config.mk index de9264264..60c1702a3 100644 --- a/config.mk +++ b/config.mk @@ -45,7 +45,7 @@ export NVCC = nvcc DEV = 0 # whether compile with debug -DEBUG = 0 +0EBUG = 0 # whether compile with profiler USE_PROFILER = @@ -225,8 +225,8 @@ USE_PROFILER=1 # whether compile with options for MXNet developer DEV = 0 -DEBUG = 1 -USE_GLOG=1 +DEBUG = 0 +USE_GLOG=0 USE_OPERATOR_TUNING = 0 USE_OPENMP = 0 USE_SSE=0 diff --git a/example/image-classification/predict-cpp/image-classification-predict.cc b/example/image-classification/predict-cpp/image-classification-predict.cc index ffd6877f0..1e09ced5a 100644 --- a/example/image-classification/predict-cpp/image-classification-predict.cc +++ b/example/image-classification/predict-cpp/image-classification-predict.cc @@ -282,10 +282,10 @@ int main(int argc, char *argv[]) { MXSetProfilerState(0); // // Synset path for your model, you have to modify it - std::vector synset = LoadSynset(synset_file); + // std::vector synset = LoadSynset(synset_file); // // Print Output Data - PrintOutputResult(data, size, synset); + // PrintOutputResult(data, size, synset); return 0; } From 9ed96951ed283d06cf49a901c9814c08ec6f5ec7 Mon Sep 17 00:00:00 2001 From: Abdul Dakkak Date: Mon, 2 Apr 2018 00:57:59 -0500 Subject: [PATCH 4/4] use glog --- config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 60c1702a3..ec171eed2 100644 --- a/config.mk +++ b/config.mk @@ -226,7 +226,7 @@ USE_PROFILER=1 DEV = 0 DEBUG = 0 -USE_GLOG=0 +USE_GLOG=1 USE_OPERATOR_TUNING = 0 USE_OPENMP = 0 USE_SSE=0