genie-t2t-run Sample Code Tutorial¶
Prerequisite¶
Linux: Building genie-t2t-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-t2t-run
Windows: Building genie-t2t-run.exe is dependent of Genie.lib. Prior to building genie-t2t-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-t2t-run¶
x86
cd ${SDK_ROOT}/examples/Genie/genie-t2t-run
make x86
After executing make as shown above, you should be able to see genie-t2t-run in bin/x86_64-linux-clang
Android
cd ${SDK_ROOT}/examples/Genie/genie-t2t-run
make android
After executing make as shown above, you should be able to see genie-t2t-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-t2t-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-t2t-run.exe in bin/Release
Executing genie-t2t-run¶
You can follow QNN GenAITransformer backend workflow and QNN HTP backend workflow for the instructions to run on CPU and HTP respectively.