commit | 59112ad2123b7382a5ba5632a0fa0f953c305c13 | [log] [tgz] |
---|---|---|
author | Alex Van Damme <atv@google.com> | Fri Aug 11 11:10:33 2023 -0700 |
committer | Alex Van Damme <atv@google.com> | Wed Aug 16 15:11:54 2023 -0700 |
tree | b123fea0c67d1c65680dabcd3ea08ba4e0541913 | |
parent | b7f07b19b15a11504cc4da24c49c2534dc61c519 [diff] |
Add support functions for an optimized Add kernel - Add elementwise_add_s8,s16,s32. s8 and s16 versions operate on quantized inputs, s32 operates on full-range values. These can be used to implement portions of an optimized Add kernel for TFLM. Change-Id: I6508e12761f0ec1ede3c40289bf5fa2dd42e236a
This project contains the BSP to build the SW artifact that can run on the Kelvin core, and integrated as part of the Shodan repository.
The project supports two build systems -- Bazel and CMake -- for OSS integration reasons. Bazel is used by TFLM flow, while CMake is the build system for IREE.
If you get this project from Project Shodan manifest, you are all set. If not, you need to have following projects as well to build the project successfully.
<dir>/cache/toolchain_kelvin
This project needs to be at <dir>/sw/kelvin
.
The project uses Bazel 5.1.1, to align with OpenTitan build system requirements.
bazel build //...
To run the unit tests (with the kelvin_sim ISS) Make sure the Environment variable $ROOTDIR
is set to the root directory of the local repo (or run source build/setup.sh
)
bazel test //...
TODO: Add CMake flow
The binaries can be simulated with the kelvin simulator, located at <dir>/sim/kelvin
.
sim_kelvin <elf location>
Load the generated .bin
binaries to the FPGA emulator/Renode simulator.