Mojo: MLIR-Based Performance-Portable HPC Science Kernels on GPUs for the Python Ecosystem
arxiv.org·5h·
Discuss: Lobsters
Flag this post

We explore the performance and portability of the novel Mojo language for scientific computing workloads on GPUs. As the first language based on the LLVM’s Multi-Level Intermediate Representation (MLIR) compiler infrastructure, Mojo aims to close performance and productivity gaps by combining Python’s interoperability and CUDA-like syntax for compile-time portable GPU programming. We target four scientific workloads: a seven-point stencil (memory-bound), BabelStream (memory-bound), miniBUDE (compute-bound), and Hartree–Fock (compute-bound with atomic operations); and compare their performance against vendor baselines on NVIDIA H100 and AMD MI300A GPUs. We show that Mojo’s performance is competitive with CUDA and HIP for memorybound kernels, whereas gaps exist on AMD GPUs for atomic oper...

Similar Posts

Loading similar posts...