Skip to content
Discussion options

You must be logged in to vote

I don't know much about OpenGL specifically. If you use the CUDA (or HIP, or OpenCL) backends you can create a Futhark array directly from a "raw" CUDA/OpenCL/HIP pointer. Since those APIs can interoperate with OpenGL, then you can pass GPU data to Futhark. This is not a particularly well-exercised feature (I think we may have no unit tests for it at all), but I have seen people do it before.

A similar, but simpler question, would be to ask if a Futhark-implemented raytracer can output directly to the framebuffer.

This is not possible, and generally it is not possible to make Futhark put anything in specific memory without paying the cost of copying it there. You can easily enough write…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by finegeometer
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