Revise acl cl backend cmake (#6391)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 8 Aug 2019 09:51:29 +0000 (18:51 +0900)
committer이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Thu, 8 Aug 2019 09:51:29 +0000 (18:51 +0900)
- Set strict build option: nnfw_common
- Remove needless link
- Update header include for acl common

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/backend/acl_cl/CMakeLists.txt
runtimes/neurun/backend/acl_cl/KernelGenerator.cc
runtimes/neurun/backend/acl_cl/MemoryManager.h
runtimes/neurun/backend/acl_cl/ShapeFixer.cc
runtimes/neurun/backend/acl_cl/TensorBuilder.h
runtimes/neurun/backend/acl_cl/kernel/ConcatLayer.cc
runtimes/neurun/backend/acl_cl/operand/CLTensor.cc
runtimes/neurun/backend/acl_cl/operand/ICLTensor.h

index 2dd7959..46d90b8 100644 (file)
@@ -11,14 +11,10 @@ file(GLOB_RECURSE SOURCES "*.cc")
 add_library(${LIB_NEURUN_BACKEND_ACL_CL} SHARED ${SOURCES})
 
 target_include_directories(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
-target_include_directories(${LIB_NEURUN_BACKEND_ACL_CL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
-
-target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} arm_compute)
-target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} arm_compute_ex)
-target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} neurun-core)
-target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} ${LIB_NEURUN_BACKEND_ACL_COMMON})
-
-target_compile_options(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE -Wall -Wextra -Werror)
+target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE neurun-core)
+target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE ${LIB_NEURUN_BACKEND_ACL_COMMON})
+target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE nnfw_common)
 
 set_target_properties(${LIB_NEURUN_BACKEND_ACL_CL} PROPERTIES OUTPUT_NAME backend_acl_cl)
+
 install(TARGETS ${LIB_NEURUN_BACKEND_ACL_CL} DESTINATION lib)
index 0eed6a2..41d0ef8 100644 (file)
 #include <arm_compute/runtime/misc/functions/GenericGather.h>
 #include <arm_compute/runtime/misc/functions/GenericReshapeLayer.h>
 
+#include <AclFunction.h>
+#include <Convert.h>
+#include <Swizzle.h>
+
 #include "kernel/ConcatLayer.h"
 #include "model/Index.h"
 #include "model/DataType.h"
@@ -30,9 +34,6 @@
 #include "util/logging.h"
 #include "util/Utils.h"
 #include "util/Padding.h"
-#include "acl_common/AclFunction.h"
-#include "acl_common/Convert.h"
-#include "acl_common/Swizzle.h"
 
 using ::neurun::compiler::IExecutionBuilder;
 
index 540c1db..65338c2 100644 (file)
@@ -23,8 +23,8 @@
 #include <arm_compute/runtime/MemoryManagerOnDemand.h>
 #include <arm_compute/runtime/CL/CLMemoryGroup.h>
 
-#include "acl_common/AclMemoryManager.h"
-#include "acl_common/AclLinearMemoryManager.h"
+#include <AclMemoryManager.h>
+#include <AclLinearMemoryManager.h>
 
 #include "operand/CLTensor.h"
 #include "operand/CLSubTensor.h"
index 5fb2b21..e6744cc 100644 (file)
 #include <arm_compute/runtime/misc/functions/GenericGather.h>
 #include <arm_compute/runtime/misc/functions/GenericReshapeLayer.h>
 
+#include <AclFunction.h>
+#include <Convert.h>
+#include <Swizzle.h>
+
 #include "kernel/ConcatLayer.h"
 #include "model/Index.h"
 #include "model/DataType.h"
@@ -30,9 +34,6 @@
 #include "util/logging.h"
 #include "util/Utils.h"
 #include "util/Padding.h"
-#include "acl_common/AclFunction.h"
-#include "acl_common/Convert.h"
-#include "acl_common/Swizzle.h"
 
 using ::neurun::compiler::IExecutionBuilder;
 
index 160b39a..8ce69a6 100644 (file)
@@ -17,7 +17,8 @@
 #ifndef __NEURUN_BACKEND_ACL_CL_TENSOR_BUILDER_H__
 #define __NEURUN_BACKEND_ACL_CL_TENSOR_BUILDER_H__
 
-#include "acl_common/TemplTensorBuilder.h"
+#include <TemplTensorBuilder.h>
+
 #include "operand/CLTensor.h"
 #include "operand/CLSubTensor.h"
 #include "operand/Object.h"
index 04388ce..bbe97c5 100644 (file)
@@ -18,8 +18,9 @@
 
 #include <arm_compute/runtime/CL/CLScheduler.h>
 
+#include <Swizzle.h>
+
 #include "util/feature/nchw/View.h"
-#include "acl_common/Swizzle.h"
 #include "util/logging.h"
 
 namespace
index 64bc4a1..4c78d31 100644 (file)
  * limitations under the License.
  */
 
+#include "CLTensor.h"
+
 #include <arm_compute/runtime/CL/CLScheduler.h>
 #include <arm_compute/runtime/CL/CLMemory.h>
 #include <arm_compute/runtime/CL/CLMemoryRegion.h>
-#include "CLTensor.h"
 
-#include "acl_common/Convert.h"
+#include <Convert.h>
 
 namespace neurun
 {
index 3c29bba..022cec6 100644 (file)
@@ -18,7 +18,8 @@
 #define __NEURUN_BACKEND_ACL_CL_OPERAND_I_CL_TENSOR_H__
 
 #include <arm_compute/core/CL/ICLTensor.h>
-#include <acl_common/IACLTensor.h>
+
+#include <IACLTensor.h>
 
 namespace neurun
 {