~/talk

Mojo + PyTorch: A Simpler, Faster Path To Custom Kernels

links:none on file
slides:none on file

A new workflow uses Mojo to write PyTorch custom kernels without C++, CUDA, or custom build systems and exposes them via a per-op custom op loader or a Max graph API that enables operator fusion via fused tensors. Examples include a grayscale kernel using a parallelizing for_each and a MatMul hand-tuned to match cuBLAS within a few percent, with benchmarks showing 1–15% faster than an equivalent Triton kernel on H100/B200/MI300. A team of ~10 maintains kernels across seven GPU architectures and three vendors and supports CPU, NVIDIA, AMD (Apple silicon in nightlies).

AI-written summary · about

  1. 0:00Introduction
  2. 0:40The case for Mojo
  3. 2:50Performance vs. ergonomics
  4. 3:49The problem with MAX
  5. 7:06Mojo and MAX benefits
  6. 9:23Writing a Mojo kernel
  7. 12:24Performance benchmarks
  8. 14:49Interfacing with PyTorch
  9. 18:23Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.