Skip to content
heliaCORE
API reference
HELIA HUB

arm_nn_build_target.h

The build of ns-cmsis-nn the including translation unit compiles for (RFC #829).

Derived from the compiler’s own macros through the library’s headers, so it describes exactly the build the kernels see. Every ARM_NN_BUILD_* value is a literal 0/1 (or an ARM_NN_ISA_* / ARM_NN_TOOLCHAIN_ID_* value) usable in #if. ARM_NN_BUILD_HAS_* names one feature token of Tests/KernelContracts/kernel_implementations.json each. arm_nn_build_target_check.h compares a plan with this build; the library defines ARM_NN_BUILD_STAMP for its own.

Machine-readable model

macro

ISA with ARMMATHDSP and without ARMMATHMVEI (Cortex-M4/M7/M33); armnnplanisa value.

Include/arm_nn_build_target.h:33

#define ARM_NN_ISA_DSP 1

ISA with ARM_MATH_DSP and without ARM_MATH_MVEI (Cortex-M4/M7/M33); arm_nn_plan_isa value.

macro

Symbol name of the library stamp of a build, such as armnnbuildmveav0sr0gcc.

Include/arm_nn_build_target.h:132

#define ARM_NN_BUILD_STAMP_OF(isa, av, sr, tc) ARM_NN_BUILD_STAMP_EXPANDED(isa, av, sr, tc)

Symbol name of the library stamp of a build, such as arm_nn_build_mve_av0_sr0_gcc.

isa is an ARM_NN_ISA_* value, av and sr are 0 or 1 (autovectorize, single rounding) and tc is an ARM_NN_TOOLCHAIN_ID_* value; each must expand to a bare literal.

Parameters of ARM_NN_BUILD_STAMP_OF
NameDescription
isa
av
sr
tc
macro

Symbol name of this build's stamp, which the library defines in armnnbuildtarget.c.

Include/arm_nn_build_target.h:135

#define ARM_NN_BUILD_STAMP ARM_NN_BUILD_STAMP_OF( \ ARM_NN_BUILD_ISA, ARM_NN_BUILD_HAS_AUTOVECTORIZE, ARM_NN_BUILD_HAS_SINGLE_ROUNDING, ARM_NN_BUILD_TOOLCHAIN)

Symbol name of this build’s stamp, which the library defines in arm_nn_build_target.c.