Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once

#include "gpu_iface/backend/hip/mma_hip.h"
#include "gpu_iface/fastdiv.cuh"
#include "gpu_iface/gpu_runtime_compat.hpp"

namespace {
Expand Down
11 changes: 9 additions & 2 deletions libflashinfer/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ endif(FLASHINFER_ENABLE_HIP)
# === Test Discovery and Targets ===
message(STATUS "All unit test targets: ${ALL_TEST_TARGETS}")

# A list of tests to skip
set(SKIPPED_TESTS test_batch_prefill_hip test_mfma_fp32_16x16x16fp16_hip)

# Use GoogleTest's discover_tests to find all test cases
foreach(test_target IN LISTS ALL_TEST_TARGETS)
if(TARGET ${test_target})
if(TARGET ${test_target} AND NOT ${test_target} IN_LIST SKIPPED_TESTS)
gtest_discover_tests(${test_target})
endif()
endforeach()

# Create target to build all tests
add_custom_target(build_tests)
add_dependencies(build_tests ${ALL_TEST_TARGETS})
foreach(test_target IN LISTS ALL_TEST_TARGETS)
if(NOT ${test_target} IN_LIST SKIPPED_TESTS)
add_dependencies(build_tests ${test_target})
endif()
endforeach()