Set pureacl runtime to be the main runtime (#1908)
author이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 10 Jul 2018 09:53:33 +0000 (18:53 +0900)
committer박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Tue, 10 Jul 2018 09:53:33 +0000 (18:53 +0900)
0. do not build legacy(nn) runtime into out/lib
   - install legacy(nn) runtime into out/lib/legacy
1. Trigger puracl runtime build on default
2. install pureacl runtime into out/lib

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
CMakeLists.txt
runtimes/nn/CMakeLists.txt
runtimes/pure_arm_compute/CMakeLists.txt

index f3d863b..014500f 100644 (file)
@@ -92,10 +92,10 @@ endforeach()
 # Configuration flags
 #
 option(BUILD_ACL "Build ARM Compute Library" OFF)
-option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" OFF)
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
 option(BUILD_ACL_STATIC_LIB "Build ARM Comput Static Library" OFF)
 option(BUILD_BENCHMARK_ACL "Build ARM Compute Library Benchmarks" OFF)
-option(BUILD_NN_RUNTIME "Build NN Runtime" ON)
+option(BUILD_NN_RUNTIME "Build NN Runtime" OFF)
 option(BUILD_NEW_RUNTIME "Build New Runtime" OFF) #if implementation is done, it would replace nn runtime.
 option(BUILD_LABS "Build lab projects" ON)
 option(BUILD_ANDROID_NN_RUNTIME_TEST "Build Android NN Runtime Test" ON)
index e82a840..2b17ad1 100644 (file)
@@ -20,4 +20,4 @@ endif(TARGET kernelacl)
 set_target_properties(${LIB_RUNTIME} PROPERTIES OUTPUT_NAME neuralnetworks)
 set_target_properties(${LIB_RUNTIME} PROPERTIES CXX_STANDARD 14)
 
-install(TARGETS ${LIB_RUNTIME} DESTINATION lib)
+install(TARGETS ${LIB_RUNTIME} DESTINATION lib/legacy)
index 2b0b6bf..96433ca 100644 (file)
@@ -20,6 +20,7 @@ endif()
 
 set_target_properties(nnapi_pure_arm_compute PROPERTIES OUTPUT_NAME neuralnetworks)
 install(TARGETS nnapi_pure_arm_compute DESTINATION lib/pureacl RENAME neuralnetworks)
+install(TARGETS nnapi_pure_arm_compute DESTINATION lib RENAME neuralnetworks)
 
 # To prevent undefined references
 add_executable(pure_arm_compute_symbolcheck symbolcheck.cpp)