define_extern
#6052
Replies: 1 comment 1 reply
-
Halide needs to know how much input your extern stage needs for a given tile of output in order to be able to compute stuff before the extern stage in your pipeline. It calls the stage with buffers with null host pointers to make these queries. The idea is that the stage is supposed to recognize this, and fill in the buffers appropriately. See here for an example: https://github.com/halide/Halide/blob/master/test/correctness/extern_stage.cpp So the extra calls are what we call "bounds queries". |
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
-
Recently, I tried using the defin_extern method defined by Halide with AOT mode. The description code of the Halide frontend is as follows:
After Unrolling Pass, the IR are as follows:
My question is :
Why is extern_stage called multiple times before extern_stage is generated? Can anyone help me? Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions