Add build command for benchmark/acl (#974)
author김용섭/동작제어Lab(SR)/Engineer/삼성전자 <yons.kim@samsung.com>
Mon, 30 Apr 2018 07:55:23 +0000 (16:55 +0900)
committer서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 <sangmin7.seo@samsung.com>
Mon, 30 Apr 2018 07:55:23 +0000 (16:55 +0900)
Now `BENCHMARK_ACL_BUILD=1 make build` runs building benchmark/acl.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
Makefile
benchmark/acl/CMakeLists.txt

index 60b8bc9..564d1ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ HOST_OS?=linux
 NPROCS:=1
 OBS_BUILD?=0
 COVERAGE_BUILD?=0
+BENCHMARK_ACL_BUILD?=0
 OPTIONS?=
 
 # make TARGET and TYPE to lowercase
@@ -50,6 +51,10 @@ else
        OPTIONS+= -DCOVERAGE_BUILD=0
 endif
 
+ifeq ($(BENCHMARK_ACL_BUILD),1)
+       OPTIONS+= -DBUILD_BENCHMARK_ACL=1
+endif
+
 # Get number of processors (linux only for now)
 ifeq ($(HOST_OS),linux)
        NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
index b5c4aad..700f258 100644 (file)
@@ -1,6 +1,8 @@
 add_library(arm_compute_benchmark SHARED "Benchmark.cpp")
 target_include_directories(arm_compute_benchmark PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(arm_compute_benchmark arm_compute_graph)
+target_include_directories(arm_compute_benchmark PUBLIC ${NNFW_ACL_INCLUDES})
+target_link_libraries(arm_compute_benchmark ${NNFW_ACL_LIBS})
+install(TARGETS arm_compute_benchmark DESTINATION lib)
 
 # GoogLeNet benchmark
 add_executable(benchmark_googlenet "benchmark_googlenet.cpp")
@@ -13,3 +15,5 @@ target_link_libraries(benchmark_inception_v3 arm_compute_benchmark)
 # MobileNet benchmark
 add_executable(benchmark_mobilenet "benchmark_mobilenet.cpp")
 target_link_libraries(benchmark_mobilenet arm_compute_benchmark)
+
+install(TARGETS benchmark_googlenet benchmark_inception_v3 benchmark_mobilenet DESTINATION bin)