Pipeline builder improvements
kernels/pipeline/pipeline_builder.cpp:
4 warnings/TODOs are issues to address:
-
If two kernels have an identical signature and take the same inputs, they ought to produce the same outputs unless they are nondeterministic.
-
The pipeline ordering should be canonicalized to ensure that when multiple kernels could be scheduled the same one will always be chosen.
-
The builders should detect if there is only one kernel in a pipeline / both branches are equivalent and return the single kernel. Modify addOrDeclareMainFunction.
-
Make a templated compile method to automatically validate and cast the main function to the correct type.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information