Skip to content

Conversation

@dhernandez0
Copy link
Contributor

@dhernandez0 dhernandez0 commented Nov 24, 2025

Motivation

A bug was introduced in #2088 that makes non-accel tuning fail. Non accel perfConfig has to stay in v3 for now due to the number of params.

Technical Details

Add tests for nonaccel perfConfig and change it back to v3.

Test Plan

All tests pass.

Test Result

All tests pass.

Submission Checklist

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 fixes a bug introduced in PR #2088 where non-accelerated GEMM tuning was incorrectly using v4 perfconfig format instead of v3. Non-accelerated perfconfig must remain at v3 due to having only 9 parameters (vs 12 for v4 used by accelerated operations). The fix updates the version string in GeneralGemmParamsAttr from "v4:" to "v3:" and adds comprehensive unit tests to prevent regression.

  • Changed GeneralGemmParamsAttr perfconfig format from v4 to v3 in RockAttrDefs.td
  • Added unit tests for InitParamsNonAccel deserialization covering positive and negative test cases
  • Updated test expectations in emit-tuning-space.mlir to reflect the correct v3 format

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
mlir/unittests/Dialect/Rock/InitParamsNonAccelTests.cpp New test file with comprehensive tests for v3 perfconfig deserialization including positive cases and negative validation tests
mlir/unittests/Dialect/Rock/CMakeLists.txt Added InitParamsNonAccelTests.cpp to the test build configuration
mlir/test/rocmlir-gen/emit-tuning-space.mlir Updated CHECK-NAVI expectation from v4 to v3 format for non-accelerated GEMM on gfx1100 architecture
mlir/include/mlir/Dialect/Rock/IR/RockAttrDefs.td Fixed GeneralGemmParamsAttr::getPerfConfigStr to output "v3:" instead of "v4:"

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

Comment on lines +1 to +2
//===- InitParamsNonAccelTests.cpp - Tests for InitParamsNonAccel
//--------------===//
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

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

The comment header is split across two lines which is inconsistent with the formatting used in InitParamsAccelTests.cpp. The entire header should be on a single line like:

//===- InitParamsNonAccelTests.cpp - Tests for InitParamsNonAccel -------===//
Suggested change
//===- InitParamsNonAccelTests.cpp - Tests for InitParamsNonAccel
//--------------===//
//===- InitParamsNonAccelTests.cpp - Tests for InitParamsNonAccel -------===//

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.

5 participants