Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix][ROCm] Handle tvm_thread_invariant in ROCm backend #16403

Conversation

junrushao
Copy link
Member

PR #16345 introduced a TIR intrinsic tvm_thread_invariant as a no-op intrinsic that indicates that a condition is an invariant across threads. It is a necessary change to support MoE group GEMM operations.

However, we noticed that the LLVM-ROCm backend has been broken since then because this no-op intrinsic hasn't been properly handled in this particular backend. This PR fixes this behavior by checking this no-op in the LLVM backend.

CC: @spectrometerHBH @yzhliu @tqchen

PR apache#16345 introduced a TIR intrinsic `tvm_thread_invariant` as a no-op
intrinsic that indicates that a condition is an invariant across
threads. It is a necessary change to support MoE group GEMM operations.

However, we noticed that the LLVM-ROCm backend has been broken since
then because this no-op intrinsic hasn't been properly handled in this
particular backend. This PR fixes this behavior by checking this no-op
in the LLVM backend.
@junrushao
Copy link
Member Author

Superseded by #16404

@junrushao junrushao closed this Jan 15, 2024
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.

1 participant