99set (TARGET_ARCH ${CMAKE_HOST_SYSTEM_PROCESSOR} )
1010
1111option (TRITON_ENABLE_STATS "Include statistics collections in backend" ON )
12- option (TRITON_ENABLE_MALI_GPU "Enable Arm MALI GPU support in backend utilities" ON )
12+ option (TRITON_ENABLE_MALI_GPU "Enable Arm MALI GPU support in backend utilities" OFF )
1313
1414set (TRITON_BACKEND_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/backend repo" )
1515set (TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo" )
@@ -23,11 +23,12 @@ set(ARMNN_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Set ArmNN build type")
2323option (ARMNN_DELEGATE_ENABLE "Build ArmNN Delegate" ON )
2424
2525# ACL Options
26- set (ACL_TAG "v21.05" CACHE STRING "Tag for ACL repo" )
26+ set (ACL_TAG ${ARMNN_TAG} CACHE STRING "Tag for ACL repo" )
2727set (ACL_DEBUG "0" CACHE STRING "Whether to compile ACL in debug mode" )
28- set (ACL_GCC_COMPILE_STRING "" CACHE STRING "GCC compiler string to use for scons acl build" )
28+ set (ACL_CC_COMPILER ${CMAKE_C_COMPILER} CACHE STRING "CC compiler to use for scons acl build" )
29+ set (ACL_CXX_COMPILER ${CMAKE_CXX_COMPILER} CACHE STRING "CXX compiler to use for scons acl build" )
2930set (ACL_ENABLE_NEON "1" CACHE STRING "Enable Neon Backend in build" )
30- set (ACL_ENABLE_CL "1 " CACHE STRING "Enable OpenCL Backend in build" )
31+ set (ACL_ENABLE_CL "0 " CACHE STRING "Enable OpenCL Backend in build" )
3132
3233set (FLATBUFFERS_VERSION "1.12.0" CACHE STRING "Version of Flatbuffers to use" )
3334set (JOBS "8" CACHE STRING "Number of parallel jobs for builds" )
@@ -36,6 +37,10 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
3637 set (ACL_DEBUG "1" )
3738endif ()
3839
40+ if (TRITON_ENABLE_MALI_GPU)
41+ set (ACL_ENABLE_CL "1" )
42+ endif ()
43+
3944if (${TARGET_ARCH} MATCHES "armv7" )
4045 set (ACL_ARCH "armv7a" )
4146elseif (${TARGET_ARCH} MATCHES "armhf" )
@@ -51,7 +56,8 @@ endif()
5156# ACL before 21.05 compiled with only gcc7
5257if (NOT (ACL_TAG STREQUAL "v21.05" ))
5358 if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7)
54- set (ACL_GCC_COMPILE_STRING "CC=gcc-7 CXX=g++-7" )
59+ set (ACL_CC_COMPILER "gcc-7" )
60+ set (ACL_CXX_COMPILER "g++-7" )
5561 endif ()
5662endif ()
5763
@@ -125,7 +131,7 @@ if (ARMNN_DELEGATE_ENABLE)
125131 GIT_TAG ${ACL_TAG}
126132 GIT_SHALLOW ON
127133 CONFIGURE_COMMAND ""
128- BUILD_COMMAND ${ACL_GCC_COMPILE_STRING } scons -j${JOBS} arch=${ACL_ARCH} debug=${ACL_DEBUG} neon=${ACL_ENABLE_NEON} opencl=${ACL_ENABLE_CL} embed_kernels=1 extra_cxx_flags=-fPIC benchmark_tests=0 build =native validation_tests=0 internal_only=0 examples=0
134+ BUILD_COMMAND CC= ${ACL_CC_COMPILER} CXX= ${ACL_CXX_COMPILER } scons -j${JOBS} arch=${ACL_ARCH} debug=${ACL_DEBUG} neon=${ACL_ENABLE_NEON} opencl=${ACL_ENABLE_CL} embed_kernels=1 extra_cxx_flags=-fPIC benchmark_tests=0 build =native validation_tests=0 internal_only=0 examples=0
129135 BUILD_IN_SOURCE ON
130136 INSTALL_COMMAND ""
131137 )
0 commit comments