Skip to content

fix(ci): change assert to warning for ActivationOperation - #11071

Closed
JiaLuo-CAN wants to merge 3 commits into
developfrom
user/jialuo/ck/aiter_fix_aick1967
Closed

JiaLuo-CAN wants to merge 3 commits into
developfrom
user/jialuo/ck/aiter_fix_aick1967

Conversation

@JiaLuo-CAN

@JiaLuo-CAN JiaLuo-CAN commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Motivation

JIRA ID : AICK-1967

Aiter pipeline test test_moe_2stage.py pass ActivationType.Swiglu to gridwise_moe_mx_gemm_bpreshuffle kernel but that kernel only supports activation values gelu_and_mul, silu_and_mul, or gelu_tanh_and_mul.
Recent code change add a strict static_assert check applied on the activation type and it will cause a build error.

The PR relaxes this check to issue warning message and allow Aiter pipeline passing.
This is a workaround and will not affect anything in the test run because "The CK bpreshuffle Swiglu kernel is JIT-built but never actually runs in this test."

Better solution should be on the aiter test side to ask the test not build the kernel with Swiglu or a CK side runtime check.

Technical Details

Test Plan

Test Result

Submission Checklist

@therock-pr-bot

therock-pr-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ⚠️ Warning Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: projects/composablekernel/include/ck/tensor_operation/gpu/grid/gridwise_moe_mx_gemm_bpreshuffle.hpp; no test file found
🔎 pre-commit ✅ Pass
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled
🤖 therock-pr-bot ✅ Pass

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot

therock-pr-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@JiaLuo-CAN
JiaLuo-CAN marked this pull request as ready for review August 21, 2026 18:00
@JiaLuo-CAN
JiaLuo-CAN requested a review from a team as a code owner August 21, 2026 18:00
@JiaLuo-CAN

Copy link
Copy Markdown
Contributor Author

@a-sidorova I relaxed static_assert check applied on ActivationType to address the aiter test "test test_moe_2stage.py" build error. Could you please review the code change? Thanks.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Relaxes unsupported activation compilation checks for the MoE MX bpreshuffle kernel.

Changes:

  • Replaces static assertions with deprecation warnings.
  • Suppresses warnings for stage-2 instances.
Suppressed comments (1)

projects/composablekernel/include/ck/tensor_operation/gpu/grid/gridwise_moe_mx_gemm_bpreshuffle.hpp:43

  • [[deprecated]] does not reliably make this diagnostic non-fatal: the repository's default BUILD_DEV configuration adds -Werror (CMakeLists.txt:836-839), and the Clang branch in cmake/EnableCompilerWarnings.cmake:58-90 does not exempt -Wdeprecated-declarations. Therefore any unsupported instantiation under the standard Clang dev flags still fails to compile, contradicting the intended assert-to-warning relaxation. Use a diagnostic mechanism/configuration that is explicitly non-fatal under the supported warning-as-error builds.
    [[deprecated("gridwise_moe_mx_gemm_bpreshuffle: requested activation is not implemented; "

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +43 to +46
[[deprecated("gridwise_moe_mx_gemm_bpreshuffle: requested activation is not implemented; "
"stage-1 output is left unwritten and results will be wrong")]] __host__
__device__ static constexpr void
check()
@JiaLuo-CAN

Copy link
Copy Markdown
Contributor Author

Already fixed on Aiter side: ROCm/aiter#4620

@JiaLuo-CAN JiaLuo-CAN closed this Aug 28, 2026
@JiaLuo-CAN
JiaLuo-CAN deleted the user/jialuo/ck/aiter_fix_aick1967 branch September 1, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants