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
I would like to find a way to describe kernel & subkernel that take as input, Func or Buffer or GeneratorInput (with Expr?). Which abstract properly to have "clean" c_source or/and schedule.
Is it safe to send Func, Expr, Var by ref or do we need a copy (in the intention of apply a autoschedule)?
I would like to have those Kernel: Dot, Total, WeightedArithmeticMean to be called independently or as a sub-step in a larger AST.
This discussion was converted from issue #5422 on November 03, 2020 20:53.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can I properly architecture a code that uses Halide around a collection of kernels to be able to benefit a proper autoschedule.
Let say I want to implement various reusable kernel:
Toy example for 1D Buffer:
Dot, WeightedArithemeticMean, Total:
And for example for the autoschedule I do:
Statistics_WeightedArithmeticMean members':
Here the scheduler give me not inlined results with bunch of func:
I would like to find a way to describe kernel & subkernel that take as input, Func or Buffer or GeneratorInput (with Expr?). Which abstract properly to have "clean" c_source or/and schedule.
Is it safe to send Func, Expr, Var by ref or do we need a copy (in the intention of apply a autoschedule)?
I would like to have those Kernel: Dot, Total, WeightedArithmeticMean to be called independently or as a sub-step in a larger AST.
Beta Was this translation helpful? Give feedback.
All reactions