AIfES 2  2.0.0
Tutorial to include the CMSIS DSP Library in an Arduino Project

Arduino_CMSIS-DSP library is optional for ARM Microprocessors. It needs to be installed via the library manager. It includes the arm_math.h for AIfES on ARM CPUs.

The CMSIS functions are particularly effective for large and deep neural networks with the ReLU function. For small neural networks, the AIfES loops are already very well optimized by the compiler.

You may want to check out the Arduino port of CMSIS 5 for further assistance.

Activate CMSIS for your Sketch

The activation of CMSIS in AIfES is a bit more complicated, because you need to uncomment the define "AIFES_WITH_CMSIS" in the file "aifes.h"

  • Look for the "aifes.h" file in your Arduino IDE in the libraries folder
  • Uncomment #define AIFES_WITH_CMSIS
  • Save your changes
  • CMSIS in AIfES is now activated for all ARM controllers
  • Now you have to add the "#include <arm_math.h>" in all AIfES sketches to avoid error messages or just comment the define out again