| 1 |
# |
| 2 |
# SPDX-FileCopyrightText: Copyright 2025 Arm Limited and/or its affiliates <[email protected]> |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: Apache-2.0 |
| 5 |
# |
| 6 |
|
| 7 |
cmake_minimum_required(VERSION 3.16) |
| 8 |
enable_language(ASM) |
| 9 |
|
| 10 |
project(dwconv_clamp_f32_f32_f32p_planar_sme2) |
| 11 |
|
| 12 |
set(CMAKE_CXX_STANDARD 17) |
| 13 |
set(KAI_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../) |
| 14 |
set(KAI_BUILD ${KAI_PATH}/build) |
| 15 |
|
| 16 |
include_directories(${KAI_PATH}) |
| 17 |
|
| 18 |
# Files requires to build the executable |
| 19 |
add_executable( |
| 20 |
dwconv_clamp_f32_f32_f32p_planar_sme2 dwconv_clamp_f32_f32_f32p_planar_sme2.cpp |
| 21 |
"${KAI_PATH}/kai/ukernels/dwconv/dwconv_f32_f32_f32p/kai_dwconv_clamp_f32_f32_f32p1vlx1b_3x3_s1_4xc_sme2_mla_asm.S" |
| 22 |
"${KAI_PATH}/kai/ukernels/dwconv/dwconv_f32_f32_f32p/kai_dwconv_clamp_f32_f32_f32p1vlx1b_3x3_s1_4xc_sme2_mla.c" |
| 23 |
"${KAI_PATH}/kai/ukernels/dwconv/pack/kai_rhs_dwconv_pack_x32p1vlx1b_x32_x32_sme.c" |
| 24 |
"${KAI_PATH}/kai/kai_common_sme_asm.S" |
| 25 |
) |
| 26 |
|
| 27 |
target_compile_options(dwconv_clamp_f32_f32_f32p_planar_sme2 |
| 28 |
PRIVATE "-march=armv8.2-a+sve+sve2;-fno-tree-vectorize" |
| 29 |
) |
| 30 |
|
| 31 |
target_compile_definitions(dwconv_clamp_f32_f32_f32p_planar_sme2 |
| 32 |
PRIVATE $<$<CONFIG:Debug>:KAI_DEBUG> |
| 33 |
) |