MasterJH5574 opened a new pull request, #16775:
URL: https://github.com/apache/tvm/pull/16775

   This PR fixes an issue in the dlight GeMV rule and the low-batch GeMV rule. 
The issue happens when the inner spatial loop has small length (e.g., in the 
MoE gate layer, this length is usually 8).
   
   The error is because the GeMV scheduling does not make sure that each TIR 
block reads/writes the same number of local registers, and this inconsistency 
leads to wrong generated code. For example, in the schedule (prior to this 
fix), the first TIR block was scheduled to assign each thread 2 local 
registers, while the second block was scheduled to assign each thread 1 local 
register, which is incorrect. Unfortunately, this error only shows up when the 
spatial loop has small length.
   
   One regression test is added.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to