Skip to content

Expose call_argv_fast from Callable #7314

@twesterhout

Description

@twesterhout

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions