Stream: ideas

Topic: running code on GPUs


view this post on Zulip Luke Boswell (Jul 31 2024 at 02:23):

The goal here is to able to load a dll that can run compute on the gpu for example.

Spawning a new thread...

I almost brought this up earlier.

When I was running a graphics experiment a while ago, I was researching WebGPU and specifically learning wgpu.

The thought occured to me that it's basically just a bunch of tasks to setup buffers and graphics infrastructure, load data into buffers, send instructions to the GPU (shaders), and the load data out of buffers.

This all felt like something really natural to work with and I thought it could live inside roc pretty seamlessly.

I haven't really explored the thought much beyond that. But maybe it's a related consideration for the other discussions about FFI? if we had a nice GPU compute/graphics capability for platforms that supported it, would this help with the idea of providing a roc-ml package?

view this post on Zulip Matthieu Pizenberg (Jul 31 2024 at 16:36):

wgpu in roc would be a banger! I played a bit with wgpu in rust a few months ago and tried to make very simple examples with it. With my code being very functional-style rust so I think approachable to people here: https://github.com/mpizenberg/wgpu-tutorial


Last updated: Jun 16 2026 at 16:19 UTC