Repeated name #7826
Unanswered
immortalsalomon
asked this question in
Q&A
Repeated name
#7826
Replies: 1 comment 1 reply
-
I'm not sure what might be going wrong. Is it possible to post a full self-contained Halide program that reproduces the error? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am writing because I keep having a problem when compiling the scheduling for a programme. The problem occurs during the Halide simplification phase. The problem or error is the following:
Simplify_Let.cpp:68 triggered by user code at : Condition failed: !var_info.contains(op->name): Simplify only works on code where every name is unique. Repeated name: inputBuffer_im._1
Where input buffer is defined as follows:
Input<Buffer<float, 2>> inputBuffer{"inputBuffer"};
The basic structure of the schedule compiler is the same as in the following tutorial:
https://halide-lang.org/tutorials/tutorial_lesson_21_auto_scheduler_generate.html
To solve the problem, I assigned the buffer to a function and defined in the schedule to compute the function to
.compute_root()
andstore_root()
. However, this caused the problem to be inherited by the function using the buffer wrapper function. As shown by the new error:Simplify_Let.cpp:68 triggered by user code at : Condition failed: !var_info.contains(op->name): Simplify only works on code where every name is unique. Repeated name: getVectorFunction<2>(inputBuffer_im).y
Below is how this function is constructed:
Note that inputBuffer is converted into a const Halide::Func
const auto wrapped = Vector2::wrapFunction(x, y, inputBuffer);
Does anyone have any ideas how to solve the problem? I hope I have given enough information, in case please ask for more details.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions