Plans for open-sourcing the GPU runtime (MLRT)?

Hi all,

Thanks for open-sourcing the compiler! While looking into GPU backends, I noticed that DeviceContext still comes as a prebuilt libAsyncRTMojoBindings.so from the max-core wheel. In bazel/api.bzl, //MLRT:Driver/DeviceContext maps to @modular_wheel//:AsyncRTMojoBindings_lib.

  1. Is the GPU runtime planned to be open-sourced as well, and if so, roughly when?
  2. Would you be open to a third-party backend, such as Intel GPUs through Level Zero? Until then, is the AsyncRT_DeviceContext_* C interface stable enough to implement outside your tree?

Thanks,
Andreas

If you’re willing to wait just a little bit, we’ll have more to say on this shortly.

…and here’s what I was alluding to: “MAX is now source available and open to everyone”.

To your specific questions, the source to the GPU backends, runtimes, and more is now available in the main modular/modular repository so you can see how the internals are wired up for the existing GPU backends on AMD, NVIDIA, and Apple silicon GPUs.

I will caution that we are moving to a new plugin-based architecture for enabling accelerator backends, with those three still on our legacy path. We’ll get together better examples and documentation on the best path to hardware bringup soon.

We’re not currently accepting third-party accelerator backends as we get the right mechanisms in place to take those in. You are free to experiment locally on your own hardware, though, in preparation for when we’re ready for this. Additionally, we are welcoming potential hardware partners to look into our alliance program.

Thanks, Brad. I had a look at the new runtime, it looks promising.
It seems my timing was great. Or awful. :slight_smile: