-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Dear Halide team,
Would it be possible to make Halide::Callable::call_argv_fast
public? Since Callable
is currently not used in the tutorials and is not displayed by Doxygen, this change shouldn't affect too many users. And, of course, a big warning could be added to inform users about possible segfaults if call_argv_fast
is invoked with wrong argument types.
Motivation
I'm working on Haskell wrappers for Halide as part of Tweag Open Source Fellowship. Haskell has static typing and very good support for polymorphism, and that means that although I know the types of arguments when invoking the Callable, I can't pass them to C++ as template arguments. So what I'd like to implement is similar to what the Python bindings do in PyCallable
.
If there are other preferred methods of calling Halide pipelines with low overhead when argument types are unknown until the runtime of the program, any pointers will be highly appreciated.
Thanks,
Tom