Skip to content

Conversation

@AviralGoelAMD
Copy link
Collaborator

@AviralGoelAMD AviralGoelAMD commented Jan 26, 2026

Proposed changes

Adds operation-specific umbrella test targets for CK Tile to enable running all tests for a specific operation without running the entire test suite. This improves the development workflow by allowing faster iteration when working on specific operations.

Motivation

Previously, developers working on CK Tile operations could only:

  • Run individual test executables one at a time
  • Run global labels (smoke, regression, check) which test the entire codebase
  • Build all tests for an operation but had no simple way to run them all

This made it cumbersome to validate changes to a specific operation (e.g., GEMM quantization) without either running tests individually or running the entire test suite.

Documentation

  • test/ck_tile/TESTING.md - Comprehensive testing guide with usage examples and implementation details

Usage Examples

Run all GEMM tests with 256 parallel jobs

ninja -j256 ck_tile_gemm_tests

Run all GEMM block scale (quantization) tests

ninja -j256 ck_tile_gemm_block_scale_tests

Run all GEMM StreamK tests

ninja -j256 ck_tile_gemm_streamk_tests

Checklist

Please put an x into the boxes that apply. You can also fill these out after creating the PR. If you're not sure, please don't hesitate to ask.

  • I have added tests relevant to the introduced functionality, and the unit tests are passing locally
  • I have added the test to REGRESSION_TESTS list defined at the top of CMakeLists.txt in tests/CMakeLists.txt, IF the test takes more than 30 seconds to run.
  • I have added inline documentation which enables the maintainers with understanding the motivation
  • I have removed the stale documentation which is no longer relevant after this pull request
  • (If this change is user-facing) I have added release notes which provide the end users with a brief summary of the improvement from this pull request
  • I have run clang-format on all changed files
  • Any dependent changes have been merged

Discussion

If this is a relatively large or complex change, feel free to start a discussion by explaining why you chose the solution you did and what alternatives you considered

Copy link
Contributor

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 operation-specific umbrella test targets for CK Tile to enable running all tests for a specific operation (e.g., GEMM, FMHA, reduce) without running the entire test suite. This improves the development workflow by allowing faster iteration when working on specific operations.

Changes:

  • Added umbrella test targets for six CK Tile operations: GEMM, GEMM block scale, GEMM StreamK, grouped GEMM quantization, FMHA, and reduce
  • Created comprehensive testing documentation in test/ck_tile/README.md
  • Modified existing CMakeLists.txt files to support the new test targets while preserving existing build targets

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/ck_tile/CMakeLists.txt Added documentation header explaining the three-tier test organization system
test/ck_tile/README.md New comprehensive testing guide with usage examples for all test targets
test/ck_tile/gemm/CMakeLists.txt Added ck_tile_gemm_tests umbrella target with test collection and labeling
test/ck_tile/gemm_block_scale/CMakeLists.txt Added ck_tile_gemm_block_scale_tests target and refactored existing test organization
test/ck_tile/gemm_streamk/CMakeLists.txt Added ck_tile_gemm_streamk_tests umbrella target
test/ck_tile/grouped_gemm_quant/CMakeLists.txt Added ck_tile_grouped_gemm_quant_tests umbrella target
test/ck_tile/fmha/CMakeLists.txt Added ck_tile_fmha_tests target and updated test labeling in helper functions
test/ck_tile/reduce/CMakeLists.txt Added ck_tile_reduce_tests umbrella target

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

endforeach()
message(STATUS "FMHA FWD tests: ${all_tests}")
add_custom_target(${test_group} DEPENDS ${all_tests})
set(all_tests ${all_tests} PARENT_SCOPE)
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The all_tests variable is set to PARENT_SCOPE in both add_gtest_fwd and add_gtest_bwd functions, but these will overwrite each other rather than accumulate. The second call will only contain the BWD tests. If the intent is to collect all tests from both functions, you need to accumulate them in the parent scope or handle them differently.

Copilot uses AI. Check for mistakes.
endforeach()
message(STATUS "FMHA BWD tests: ${all_tests}")
add_custom_target(${test_group} DEPENDS ${all_tests})
set(all_tests ${all_tests} PARENT_SCOPE)
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The all_tests variable is set to PARENT_SCOPE in both add_gtest_fwd and add_gtest_bwd functions, but these will overwrite each other rather than accumulate. The second call will only contain the BWD tests. If the intent is to collect all tests from both functions, you need to accumulate them in the parent scope or handle them differently.

Copilot uses AI. Check for mistakes.
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.

2 participants