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.
Is the GPU runtime planned to be open-sourced as well, and if so, roughly when?
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?
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.