Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding CMake support for testing Hexagon benchmark. #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prasmish
Copy link
Owner

@prasmish prasmish commented Sep 20, 2023

Pre-requisite to run the halide benchmark:

To make sure we are using the upstream build LLVM

$export LLVM_ROOT=/local/mnt/workspace/build/community_halide/llvm-install
$export LLVM_CONFIG=/local/mnt/workspace/build/community_halide/llvm-install/bin/llvm-config

To build the example

$cmake -DHalide_TARGET=host-hvx-hvx_v65 -DCMAKE_PREFIX_PATH=/local/mnt/workspace/build/community_halide/Halide/install .
$make all

To run this test, we need HL_HEXAGON_SIM_REMOTE and LD_LIBRARY_PATH to be set appropriately

$export ROOT_DIR=/local/mnt/workspace/build/community_halide/Halide
$export HL_HEXAGON_SIM_REMOTE=$ROOT_DIR/src/runtime/hexagon_remote/bin/v65/hexagon_sim_remote
$export HL_HEXAGON_TOOLS=/local/mnt/workspace/Qualcomm/Hexagon_SDK/5.2.0.0/tools/HEXAGON_Tools/8.7.0/Tools/
$export LD_LIBRARY_PATH=$HL_HEXAGON_TOOLS/lib/iss:$ROOT_DIR/src/runtime/hexagon_remote/:$LD_LIBRARY_PATH

To run this test

$ctest -R hexagon_benchmark_app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant