Be

Beating cuBLAS in Single-Precision General Matrix Multiplication

Hacker News

Beating cuBLAS in Single-Precision General Matrix Multiplication

This blog post focuses on an SGEMM implementation that outperforms cuBLAS with its (modified?) CUTLASS kernel across a wide range of matrix sizes. The blog delves into benchmarking code on CUDA devices and explains the algorithm's design along with optimization techniques. These include inlined PTX, asynchronous memory copies, double-buffering, avoiding shared memory bank conflicts, and efficient coalesced storage using shared memory. The code is super easy to tweak, so you can customize it for your projects with kernel fusion or just drop it into your libraries as-is. If you have any questions, feel free to comment or send me a direct message - I'd love to hear your feedback and answer any questions you may have!

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: single, using, code · Missing: mac, agents, macos
71%71% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
54%54% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
53%53% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: efficient · Missing: plus, platform, intuitive
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
38%38% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
5%5% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Is
Is This a Matrix?45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Is This a Matrix?

Hacker News3
My
My webkit matrix implementation in 646 bytes51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My webkit matrix implementation in 646 bytes

Hacker News3
A
A general paxos implementation for Java41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A general paxos implementation for Java

Hacker News2
A
A single character turns primitive recursion into general recursion54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A single character turns primitive recursion into general recursion

Hacker News2
Im
Implementing Truncated Matrix Decompositions for Core.Matrix34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Implementing Truncated Matrix Decompositions for Core.Matrix

Hacker News12
Mi
MindForger – Eisenhower matrix, urgency and priority for your notes42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MindForger – Eisenhower matrix, urgency and priority for your notes

Hacker News20
fractional general counsel
fractional general counsel23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Summit General Counsel provides fractional general counsel,

Indie Hackers
Dyson CameraJet
Dyson CameraJet26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Precision-floss between teeth while you brush

Product Hunt+146Health & Fitness
Th
The GitHub Matrix52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The GitHub Matrix

Hacker News4
Th
The GitHub Matrix Screensaver52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The GitHub Matrix Screensaver

Hacker News3