Skip to content

How do I call runtime functions from Halide::Runtime::Buffer? #8464

Answered by abadams
mcourteaux asked this question in Q&A
Discussion options

You must be logged in to vote

The for_each_value stuff, at the time it was written at least, autovectorizes nicely so it's a lot more efficient than it looks.

Are you using Halide as a JIT compiler? If you're using it as an AOT compiler that function should be linked. If it has been dead-stripped, we may be annotating it incorrectly. In general the global runtime functions are only available from JIT via methods on Internal::JITSharedRuntime. Unfortunately this is both in the internal namespace and is just a few memoization cache functions right now.

The device API functions are available from JIT-land via the functions in DeviceInterface.h

Halide::Runtime::Buffer may be used from JIT-land or AOT-land, so unfortunatel…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by alexreinking
Comment options

mcourteaux
Nov 5, 2024
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8462 on November 05, 2024 19:51.