You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/09/29 13:48:20 UTC

[GitHub] [tvm] Lunderberg commented on issue #12907: [Bug] Metaschedule ThreadedTraceApply::Apply failed with error ScheduleError: An error occurred in the schedule primitive 'parallel'

Lunderberg commented on issue #12907:
URL: https://github.com/apache/tvm/issues/12907#issuecomment-1262311429

   This looks like it might be a good case for `T.assume`.  If I make an init block that assumes the `C` has already been zeroed out, then the `meta_schedule.tune_tir` call passes successfully.
   
   ```python
   @T.prim_func
   def matmul(
       A: T.Buffer[(512, 512), "float32"],
       B: T.Buffer[(512, 512), "float32"],
       C: T.Buffer[(512, 512), "float32"],
   ) -> None:
       for i in range(512):
           for j in range(512):
               for k in range(512):
                   with T.block("update"):
                       with T.init():
                           T.assume(C[i, j] == 0.0)
                       C[i, j] = C[i, j] + A[i, k] * B[j, k]
   ```


-- 
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-unsubscribe@tvm.apache.org

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