Any Plans for SPIR-V/OpenCL Support?

Are there any plans for a SPIR-V target for Mojo or an OpenCL backend for Max? It would be useful since it would allow leveraging OpenCL compatible hardware instead of whatever Modular can specifically add support for, in particular FPGAs are very good at inference on small models on price/perf when looking at major cloud providers.
1 Reply
Dmitry Salin
Dmitry Salin5mo ago
There is this thing from AMD: https://www.phoronix.com/news/LLVM-19-MLIR-To-SPIR-V I think initiatives like this can help, since Mojo is based on MLIR.
AMD AI Compiler Engineer Lands A Generic MLIR To SPIR-V Pass In LLV...
Merged on Friday to LLVM 19 Git is a generic MLIR to SPIR-V pass for lowering the Multi-Level Intermediate Representation down into SPIR-V as the intermediate representation consumed by OpenGL / OpenCL / Vulkan drivers.
Want results from more Discord servers?
Add your server