Skip to content
Discussion options

You must be logged in to vote

Thanks for the questions!

For your first question, the host_callback mechanism is indeed inefficient and is being revised. So I guess I'd say yes it's expected, but temporary. Ultimately its overheads should be made low (or the overheads of the API that replaces it). But that doesn't help you now!

For the second question, writing a Primitive isn't necessarily an alternative; IIUC you'd still need a way for, say, a jit-compiled GPU program to call back onto the host to run your extern_func. So your Primitive's translation rule would need to solve the same problem that host_callback's machinery needs to solve. That's what I mean by it's not really an alternative: we still have the question …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@lukepfister
Comment options

Answer selected by lukepfister
Comment options

You must be logged in to vote
6 replies
@nickmcgreivy
Comment options

@sharadmv
Comment options

@nickmcgreivy
Comment options

@sharadmv
Comment options

@sharadmv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants