You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 28, 2023. It is now read-only.
In particular, only tag reduction updates and only tag them once.
The original code would tag any non-initial write to a tensor
involved in a reduction and it would tag it possibly several times,
once for each reduction on that tensor.
Tag the reduction updates immediately to ensure that
only reduction updates get tagged and that they get tagged exactly once.
Note that the tags are now introduced in the function definitions
rather than only in the lowered statements. The presence of these
intrinsics may hinder some of the analysis passes in Halide's
standard lowering path. If these passer ever need to be used,
then the intrinsic introduction mechanism may need to be revisited.
Multiply tagged expressions cause confusion in TC.
In particular, isSupportedReduction would fail to detect
the reduction and the code generation also assumes
that a reduction update is only tagged once.
Tests by Mathieu Fehr.
0 commit comments