Skip to content

Commit 2049185

Browse files
authored
Fix running gtest on Hexagon hardware (#11257)
1 parent 3be5622 commit 2049185

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

tests/cpp-runtime/hexagon/run_all_tests.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626

2727
#include "../src/support/utils.h"
2828

29+
// Workaround for missing symbol in some QuRT builds
30+
#include "qurt.h"
31+
extern "C" {
32+
__attribute__((weak)) int pthread_key_delete(pthread_key_t key) {
33+
return qurt_tls_delete_key((int)key);
34+
}
35+
}
36+
2937
namespace tvm {
3038
namespace runtime {
3139
namespace hexagon {

tests/scripts/task_build_hexagon_api.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ cmake -DANDROID_ABI=arm64-v8a \
4343
-DUSE_HEXAGON_ARCH=v68 \
4444
-DUSE_HEXAGON_SDK="${HEXAGON_SDK_PATH}" \
4545
-DUSE_HEXAGON_TOOLCHAIN="${HEXAGON_TOOLCHAIN}" \
46-
-DUSE_OUTPUT_BINARY_DIR="${output_binary_directory}" ..
47-
# TODO(hexagon-team): enable this once https://github.com/apache/tvm/issues/11237 is fixed.
48-
# -DUSE_HEXAGON_GTEST="${HEXAGON_SDK_PATH}/utils/googletest/gtest" ..
46+
-DUSE_OUTPUT_BINARY_DIR="${output_binary_directory}" \
47+
-DUSE_HEXAGON_GTEST="${HEXAGON_SDK_PATH}/utils/googletest/gtest" ..
4948

5049
make -j$(nproc)

0 commit comments

Comments
 (0)