ARM Compute architecture
R2026b(To be removed) ARM architecture supported in the target hardware
The coder.ARMNEONConfig object and its ARM Compute
architecture parameter will be removed in a future release. Instead,
you can generate generic C/C++ code that does not depend on any third-party library.
Create a deep learning configuration object by using the coder.DeepLearningConfig function with the target library set to
"none". If you need to deploy to an ARM® device that supports Neon instructions, set the
InstructionSetExtensions property of the code configuration object to
"Neon v7". For example, create a configuration object for a dynamic
library, set the deep learning configuration with no target library dependency, and
enable Neon v7 instructions:
cfg = coder.config("dll"); cfg.DeepLearningConfig = coder.DeepLearningConfig("none"); cfg.InstructionSetExtensions = "Neon v7";
Setting InstructionSetExtensions to "Neon v7"
requires Embedded Coder®. The "none" target library workflow with instruction set
extensions is more capable in MATLAB® and Simulink®, and supports a larger set of layers.
Description
App Configuration Pane: Deep Learning
Configuration Objects: coder.ARMNEONConfig
ARM architecture supported in the target hardware, specified as a character vector or string scalar. The specified architecture must be the same as the architecture for the ARM Compute Library on the target hardware.
ARMArchitecture must be specified for these cases:
You do not use a hardware support package (the
Hardwareproperty of the code generation configuration object is empty).You use a hardware support package, but generate code only.
Dependencies
To enable this parameter, you must set Deep learning
library to ARM Compute.
Settings
armv864-bit Arm Architecture
armv732-bit Arm Architecture
Programmatic Use
Property:
ArmArchitecture |
Values: 'armv8' |
'armv7' |
Default: 'armv8' |