Skip to content

Skip failing C++ tests and fix mma_debug_utils#59

Merged
demandal25 merged 1 commit intoROCm:amd-integrationfrom
diptorupd:add/skip_tests_to_cmake
Nov 18, 2025
Merged

Skip failing C++ tests and fix mma_debug_utils#59
demandal25 merged 1 commit intoROCm:amd-integrationfrom
diptorupd:add/skip_tests_to_cmake

Conversation

@diptorupd
Copy link
Collaborator

The PR adds a list to tests to skip from the CMake build_tests target. The tests in the skip list can still be individually built.

E.g.

# The `test_batch_prefill.cpp` is currently broken and added to the skip list.
cmake -DFLASHINFER_ENABLE_HIP=ON -DFLASHINFER_UNITTESTS=ON  -GNinja ..
ninja build_tests # does not build the test_batch_prefill.cpp tests
# The test file can still be built individually using
ninja test_batch_prefill_hip

Also added the fix to mma_debug_utils_hip.hpp from #52

Supersedes #52, #57

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a mechanism to skip failing C++ tests from the CMake build_tests target while allowing them to be built individually, and fixes a missing header include in mma_debug_utils_hip.h.

  • Added a SKIPPED_TESTS list in CMake to exclude specific failing tests from the build_tests target and test discovery
  • Fixed missing fastdiv.cuh include in mma_debug_utils_hip.h that provides the uint_fastdiv type

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
libflashinfer/tests/CMakeLists.txt Implements test skipping mechanism by filtering out specified tests from gtest_discover_tests() and build_tests dependencies
libflashinfer/include/gpu_iface/backend/hip/mma_debug_utils_hip.h Adds missing include for fastdiv.cuh to provide uint_fastdiv type used in debug_print_o_from_gmem() function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@demandal25 demandal25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@demandal25 demandal25 merged commit 4390099 into ROCm:amd-integration Nov 18, 2025
7 checks passed
@diptorupd diptorupd deleted the add/skip_tests_to_cmake branch November 18, 2025 18:27
diptorupd pushed a commit that referenced this pull request Dec 5, 2025
This PR adds `kLinear` swizzle option to `permuted_smem`. It also
modifies `get_permuted_offset`, `advance_offset_by_row` and
`advance_offset_by_column` accordingly
diptorupd added a commit that referenced this pull request Dec 5, 2025
The PR adds a list to tests to skip from the CMake `build_tests` target.
The tests in the skip list can still be individually built.

E.g.
```bash
# The `test_batch_prefill.cpp` is currently broken and added to the skip list.
cmake -DFLASHINFER_ENABLE_HIP=ON -DFLASHINFER_UNITTESTS=ON  -GNinja ..
ninja build_tests # does not build the test_batch_prefill.cpp tests
# The test file can still be built individually using
ninja test_batch_prefill_hip
```
Also added the fix to `mma_debug_utils_hip.hpp` from #52

Supersedes #52, #57
zhenhantech pushed a commit to zhenhantech/flashinfer that referenced this pull request Jan 9, 2026
This PR adds `kLinear` swizzle option to `permuted_smem`. It also
modifies `get_permuted_offset`, `advance_offset_by_row` and
`advance_offset_by_column` accordingly
zhenhantech pushed a commit to zhenhantech/flashinfer that referenced this pull request Jan 9, 2026
The PR adds a list to tests to skip from the CMake `build_tests` target.
The tests in the skip list can still be individually built.

E.g.
```bash
# The `test_batch_prefill.cpp` is currently broken and added to the skip list.
cmake -DFLASHINFER_ENABLE_HIP=ON -DFLASHINFER_UNITTESTS=ON  -GNinja ..
ninja build_tests # does not build the test_batch_prefill.cpp tests
# The test file can still be built individually using
ninja test_batch_prefill_hip
```
Also added the fix to `mma_debug_utils_hip.hpp` from ROCm#52

Supersedes ROCm#52, ROCm#57
diptorupd pushed a commit to diptorupd/flashinfer that referenced this pull request Jan 28, 2026
This PR adds `kLinear` swizzle option to `permuted_smem`. It also
modifies `get_permuted_offset`, `advance_offset_by_row` and
`advance_offset_by_column` accordingly
diptorupd added a commit to diptorupd/flashinfer that referenced this pull request Jan 28, 2026
The PR adds a list to tests to skip from the CMake `build_tests` target.
The tests in the skip list can still be individually built.

E.g.
```bash
# The `test_batch_prefill.cpp` is currently broken and added to the skip list.
cmake -DFLASHINFER_ENABLE_HIP=ON -DFLASHINFER_UNITTESTS=ON  -GNinja ..
ninja build_tests # does not build the test_batch_prefill.cpp tests
# The test file can still be built individually using
ninja test_batch_prefill_hip
```
Also added the fix to `mma_debug_utils_hip.hpp` from ROCm#52

Supersedes ROCm#52, ROCm#57
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.

3 participants