genie-t2e-run Sample Code Tutorial

Prerequisite

Linux: Building genie-t2e-run is independent of libGenie.so and these targets can be built in any order. However, libGenie.so will be required for the successful execution of genie-t2e-run

Windows: Building genie-t2e-run.exe is dependent of Genie.lib. Prior to building genie-t2e-run.exe, we must first copy Genie.lib to the build app’s directory to ensure the linker is able to locate this dependency.

Building genie-t2e-run

x86

cd ${SDK_ROOT}/examples/Genie/genie-t2e-run
make x86

After executing make as shown above, you should be able to see genie-t2e-run in bin/x86_64-linux-clang

Android

cd ${SDK_ROOT}/examples/Genie/genie-t2e-run
make android

After executing make as shown above, you should be able to see genie-t2e-run in bin/aarch64-android

Windows

Open the Developer Command Prompt for Visual Studio and run the following commands:

cd ${SDK_ROOT}/examples/Genie/genie-t2e-run
mkdir build & cd build
cmake ../ -A <x64, ARM64>
cmake --build ./ --config Release

After executing CMake as shown above, you should be able to see genie-t2e-run.exe in bin/Release

Executing genie-t2e-run

You can follow QNN GenAITransformer backend workflow and QNN HTP backend workflow for the instructions to run on CPU and HTP respectively.