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
This code will trigger the following internal error under HL_DEBUG_CODEGEN=2
Vectorizing...
Subcontext threw exception. Rethrowing...
Internal Error at /home/xuanda/dev/Serializer/Halide-clean/src/Scope.h:134 triggered by user code at : Name not in Scope: f.s0.y.yo.widened.f.s0.y.yi
{
f.s0.y.yi.base.widened.f.s0.y.yo.yoi.yoii
f.s0.y.yo.widened.f.s0.y.yo.yoi.yoii
}
The text was updated successfully, but these errors were encountered:
TH3CHARLie
changed the title
vectorize loops triggers scope error
vectorize loops triggers name not in scope error
Aug 18, 2023
Note the let of f.s0.y.yo. The RHS depends on some vectorized vars, so it's a vector, but it's defined outside the innermost vectorized loop. vectorized lets are added to a vector_scope with a name determined by the original name + ".widened." + the name of the enclosing vectorized loop var. Lookup under this name fails inside the loop over f.so.y.yi, because the enclosing vectorized loop var is different.
The problem is that I don't understand why the name is tagged with the enclosing vectorized loop var. I think it must be related to the multiple vectorization work done by @vksnk, so maybe he can take a look?
A simple repro:
This code will trigger the following internal error under
HL_DEBUG_CODEGEN=2
The text was updated successfully, but these errors were encountered: