@@ -28,7 +28,7 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
2828list (APPEND CMAKE_MESSAGE_CONTEXT ArmCompute)
2929project (
3030 ArmCompute
31- VERSION 28 .0.8
31+ VERSION 31 .0.1
3232 DESCRIPTION
3333 "The Arm Compute Library is a collection of low-level machine learning functions optimized for Arm® Cortex®-A CPU and Arm® Mali™ GPU architectures"
3434 LANGUAGES C CXX ASM)
@@ -185,13 +185,13 @@ target_include_directories(
185185# ---------------------------------------------------------------------
186186# Core Library
187187
188- add_library (arm_compute_core "" )
189- target_compile_options (arm_compute_core PRIVATE "-march=armv8.2-a+fp16 " )
190- target_compile_definitions (arm_compute_core PRIVATE ARM_COMPUTE_ENABLE_BF16)
191- target_compile_definitions (arm_compute_core PRIVATE ENABLE_SVE)
192- target_compile_definitions (arm_compute_core PRIVATE ARM_COMPUTE_ENABLE_SVE)
188+ add_library (arm_compute "" )
189+ target_compile_options (arm_compute PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
190+ target_compile_definitions (arm_compute PRIVATE ARM_COMPUTE_ENABLE_BF16)
191+ target_compile_definitions (arm_compute PRIVATE ENABLE_SVE)
192+ target_compile_definitions (arm_compute PRIVATE ARM_COMPUTE_ENABLE_SVE)
193193target_include_directories (
194- arm_compute_core
194+ arm_compute
195195 PUBLIC $<INSTALL_INTERFACE:include >
196196 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
197197 ${CMAKE_CURRENT_SOURCE_DIR}
@@ -201,17 +201,17 @@ target_include_directories(
201201 src/core/NEON/kernels/convolution/common
202202 src/core/NEON/kernels/arm_conv/depthwise
203203 src/core/NEON/kernels/convolution/winograd)
204- target_compile_options (arm_compute_core PUBLIC ${COMMON_CXX_FLAGS} )
204+ target_compile_options (arm_compute PUBLIC ${COMMON_CXX_FLAGS} )
205205
206- add_library (ArmCompute::Core ALIAS arm_compute_core )
206+ add_library (ArmCompute::Core ALIAS arm_compute )
207207target_link_libraries (
208- arm_compute_core PUBLIC arm_compute_sve arm_compute_sve2)
208+ arm_compute PUBLIC arm_compute_sve arm_compute_sve2)
209209
210210# ---------------------------------------------------------------------
211211# Graph Library
212212
213213add_library (arm_compute_graph "" )
214- target_compile_options (arm_compute_graph PRIVATE "-march=armv8.2-a+fp16 " )
214+ target_compile_options (arm_compute_graph PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
215215target_compile_definitions (arm_compute_graph PRIVATE ENABLE_SVE)
216216target_compile_definitions (arm_compute_graph PRIVATE ARM_COMPUTE_ENABLE_SVE)
217217# add_subdirectory(src/graph)
@@ -242,7 +242,7 @@ if(ARM_COMPUTE_BUILD_TESTING)
242242 # target_compile_options(arm_compute_validation_framework PRIVATE
243243 # "-march=armv8.2-a")
244244 target_compile_options (arm_compute_validation_framework
245- PRIVATE "-march=armv8.2-a+fp16 " )
245+ PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
246246
247247 add_subdirectory (tests)
248248 target_include_directories (
@@ -254,13 +254,13 @@ if(ARM_COMPUTE_BUILD_TESTING)
254254 PUBLIC ${COMMON_CXX_FLAGS} )
255255 target_link_libraries (
256256 arm_compute_validation_framework
257- PUBLIC arm_compute_core arm_compute_graph)
257+ PUBLIC arm_compute arm_compute_graph)
258258
259259 # ---------------------------------------------------------------------
260260 # Validation Binary
261261
262262 add_executable (arm_compute_validation "" )
263- target_compile_options (arm_compute_validation PRIVATE "-march=armv8.2-a+fp16 " )
263+ target_compile_options (arm_compute_validation PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
264264 if (ARM_COMPUTE_ENABLE_BF16_VALIDATION)
265265 target_compile_definitions (arm_compute_validation PRIVATE ARM_COMPUTE_ENABLE_BF16)
266266 endif ()
@@ -275,23 +275,23 @@ if(ARM_COMPUTE_BUILD_TESTING)
275275 "${CMAKE_BINARY_DIR} /validation" )
276276 target_link_libraries (
277277 arm_compute_validation
278- PUBLIC arm_compute_core arm_compute_graph arm_compute_validation_framework
278+ PUBLIC arm_compute arm_compute_graph arm_compute_validation_framework
279279 arm_compute_sve)
280280 target_link_directories (arm_compute_validation PUBLIC tests)
281281
282282 # ---------------------------------------------------------------------
283283 # Benchmark Binary
284284
285285 add_executable (arm_compute_benchmark)
286- target_compile_options (arm_compute_benchmark PRIVATE "-march=armv8.2-a+fp16 " )
286+ target_compile_options (arm_compute_benchmark PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
287287
288288 add_subdirectory (tests/benchmark)
289289 target_compile_options (arm_compute_benchmark PUBLIC ${COMMON_CXX_FLAGS} )
290290 set_target_properties (
291291 arm_compute_benchmark PROPERTIES RUNTIME_OUTPUT_DIRECTORY
292292 "${CMAKE_BINARY_DIR} /validation" )
293293 target_link_libraries (
294- arm_compute_benchmark PUBLIC arm_compute_core arm_compute_graph
294+ arm_compute_benchmark PUBLIC arm_compute arm_compute_graph
295295 arm_compute_validation_framework)
296296
297297endif () # ARM_COMPUTE_BUILD_TESTING
@@ -307,22 +307,22 @@ if(ARM_COMPUTE_BUILD_EXAMPLES)
307307 add_executable (
308308 ${test_name} "examples/${test_name} .cpp" utils/Utils.cpp
309309 utils/GraphUtils.cpp utils/CommonGraphOptions.cpp)
310- target_compile_options (${test_name} PRIVATE "-march=armv8.2-a+fp16 " )
310+ target_compile_options (${test_name} PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
311311 set_target_properties (
312312 ${test_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY
313313 "${CMAKE_BINARY_DIR} /examples" )
314- target_link_libraries (${test_name} PUBLIC arm_compute_core
314+ target_link_libraries (${test_name} PUBLIC arm_compute
315315 arm_compute_graph arm_compute_sve)
316316 endforeach ()
317317
318318 # NEON Examples
319319 foreach (test_name ${EXAMPLE_NEON_NAMES} )
320320 add_executable (${test_name} "examples/${test_name} .cpp" utils/Utils.cpp)
321- target_compile_options (${test_name} PRIVATE "-march=armv8.2-a+fp16 " )
321+ target_compile_options (${test_name} PRIVATE "-march=${ARM_COMPUTE_ARCH} " )
322322 set_target_properties (
323323 ${test_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY
324324 "${CMAKE_BINARY_DIR} /examples" )
325- target_link_libraries (${test_name} PUBLIC arm_compute_core )
325+ target_link_libraries (${test_name} PUBLIC arm_compute )
326326 endforeach ()
327327
328328endif () # ARM_COMPUTE_BUILD_EXAMPLES
0 commit comments