|
xaiefal
|
Xilinx AI engine functional abstraction layer (FAL) provides common user APIs for runtime AI engine tiles resources management.
We use cmake to build the project.
The project uses doxygen for documentation. Follow these instructions to generate documentation.
Use the following cmake commands to configure the build: For Linux to run on target:
After running cmake to configure the build, can go to the build directory to compile:
If excludes building libxaiengine library, user will need to provide where libxaiengine is as this library depends on the AI engine driver library. For Linux to run on target:
After running cmake to configure the build, can go to the build directory to compile:
We use CppUTest for unit testing. Use CMake option -DWITH_TESTS=ON to turn on building the unit testing.
You can specify to use your external cpputest directory with the following option -DWITH_TESTS=ON -DCPPUTEST_DIR=<compiled_cpputest_dir>
Here is the repo for cpputest: https://github.com/cpputest/cpputest.git
The testing executable will be in <BUILD_DIR>/tests/. It will not run the tests by default during build. If you want to run the tests in the end of the build, you can use CMake option -DWITH_TESTS_EXEC=ON.
Add the following cmake options along with -DWITH_TESTS=ON -DWITH_TESTS_EXEC=ON: -DCMAKE_BUILD_TYPE=Debug -DCODE_COVERAGE=on to enable coverage.
The generated coverage information file will be in: <build_dir>/tests/utests/.
Copyright (C) 2022 Xilinx, Inc. All rights reserved. SPDX-License-Identifier: MIT