timmyd
"Why Mojo?" is now smack bang on the homepage!
Feedback welcome as always and thanks for checking it out! Encourage you to watch ModCon next week for some exciting announcements :)
Boost Game – retro game where terrain is generated by SIMD kernel computation
The Five Eras of KVCache
How to Beat Unsloth's CUDA Kernel Using Mojo–With Zero GPU Experience
Matrix Multiplication on Nvidia's Blackwell: Part 1 – Introduction
Inworld TTS: 20x cheaper, state-of-the-art, text-to-speech
GPU Comic: When GPU programming hurts so much, all we can do is laugh
Scale or Surrender: When watts determine freedom
transpose_naive - Basic implementation with TMA transfers
transpose_swizzle - Adds swizzling optimization for better memory access patterns
transpose_swizzle_batched - Adds thread coarsening (batch processing) on top of swizzling
Performance comparison with CUDA: The Mojo implementations achieve bandwidths of:
transpose_naive: 1056.08 GB/s (32.0025% of max)
transpose_swizzle: 1437.55 GB/s (43.5622% of max)
transpose_swizzle_batched: 2775.49 GB/s (84.1056% of max)
via the GitHub - simveit/efficient_transpose_mojo
Comparing to the CUDA implementations mentioned in the article:
Naive kernel: Mojo achieves 1056.08 GB/s vs CUDA's 875.46 GB/s
Swizzle kernel: Mojo achieves 1437.55 GB/s vs CUDA's 1251.76 GB/s
Batched swizzle kernel: Mojo achieves 2775.49 GB/s vs CUDA's 2771.35 GB/s
So there is highly efficient matrix transpose in Mojo
All three Mojo kernels outperform their CUDA counterparts, with the naive and swizzle kernels showing significant improvements (20.6% and 14.8% faster respectively), while the final optimized kernel achieves essentially identical performance (slightly better by 4.14 GB/s).
The "flag" here seemed innapropriate given that its true this implementation is indeed faster, and certainly the final iteration could be improved on further. It wasn't wrong to say 14% or even 20%.
"This kernel archives 1437.55 GB/s compared to the 1251.76 GB/s we get in CUDA" (14.8%) which is still impressive
Switching to Mojo gave a 14% improvement over CUDA
Fast vector sum without CUDA
Modular Platform 25.3: 450K+ Lines of Open Source Code and Pip Packaging
The Case for a Next-Generation AI Developer Platform
Supportive Confrontation: High Performance Leadership
Uber tries to settle independent contractor case with $100M payout
One of those days 3 – Candide Thovex
https://developers.google.com/apis-explorer/
There's a lot of services that depend on Google and changing all that code overnight is unlikely. Apple doesn't have that kind of 3rd party reach.