Re:Matmul on Blackwell: Part 2 – Using Hardware Features to ...
by smilekzs on Saturday September 06, 2025 @09:49PM
(#45154650)
Not OP but I think this could be an instance of leaky abstraction at work. Most of the time you hand-write an accelerator kernel hoping to optimize for runtime performance. If the abstraction/compiler does not fully insulate you from micro-architectural details affecting performance in non-trivial ways (e.g. memory bank conflict as mentioned in the article) then you end up still having per-vendor implementations, or compile-time if-else blocks all over the place. This is less than ideal, but still arguably better than working with separate vendor APIs, or worse, completely separate toolchains.
[ Parent
| on HN ]
Re:Matmul on Blackwell: Part 2 – Using Hardware Features to ...
by whimsicalism on Saturday September 06, 2025 @10:38PM
(#45154893)
Yes, it looks like they have some sort of metaprogramming setup (nicer than C++) for doing this: https://www.modular.com/mojo
Re:Matmul on Blackwell: Part 2 – Using Hardware Features to ...
by totalperspectiv on Sunday September 07, 2025 @10:59AM
(#45158770)
I can confirm, it’s quite nice.
Re:Matmul on Blackwell: Part 2 – Using Hardware Features to ...
by whimsicalism on Sunday September 07, 2025 @01:56PM
(#45160567)
jw: why do you use mojo here over triton or the new pythonic cute/cutlass?
Re:Matmul on Blackwell: Part 2 – Using Hardware Features to ...
by totalperspectiv on Monday September 08, 2025 @09:22AM
(#45167931)
Because I was originally writing some very CPU intensive SIMD stuff, which Mojo is also fantastic for. Once I got that working and running nicely I decided to try getting the same algo running on GPU since, at the time, they had just open sourced the GPU parts of the stdlib. It was really easy to get going with.
I have not used Triton/Cute/Cutlass though, so I can't compare against anything other than Cuda really.