Replies: 4 comments
-
One approach would be to include the generated header file in your generator source, and call that function like so at the end of your generate() method.
|
Beta Was this translation helpful? Give feedback.
-
I see how I can get a target for example Halide::get_target_from_environment() (or variation), but my question is how can I get a pipeline? Is it generated? I do my autoschedule with -e static_library,h,schedule. |
Beta Was this translation helpful? Give feedback.
-
get_pipeline() and get_target() are methods on Generator. If you paste the code I wrote at the end of your generate() and include the generated header with your generator source, it should work. Note that this requires recompiling the generator that was used to make the schedule in the first place. |
Beta Was this translation helpful? Give feedback.
-
I see, last question about this (I hope).
Others attempt:
But I keep to have the same error: |
Beta Was this translation helpful? Give feedback.
-
A toy example of for a Halide::Generator:
Generate a scheduling like:
I wasn't able to find a example which allow me to execute this for a give buffer x ; how can I execute this generated scheduler?
Beta Was this translation helpful? Give feedback.
All reactions