# Gauss-Seidel is 5x slower than Jacobi — and loop unrolling alone won't fix it

Original title: Measuring Gauss-Seidel loop-carried dependency and fixing it via loop unrolling

> Hacker News story 49710201 · language: en · submitted 2026-09-15
> Web version: https://zeli.app/story/49710201
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 28 · by [loiseaujc](<https://news.ycombinator.com/user?id=loiseaujc>) · 💬 22
[original](<https://loiseaujc.github.io/posts/blog-title/make_gauss_seidel_great_again.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49710201>)

## Summary

Gauss-Seidel converges in half the iterations of Jacobi, yet runs 4–5 times slower because its in-place update creates a loop-carried dependency that blocks vectorization. Using OSACA on compiled assembly, the author measures a 12-cycle latency bound per element versus Jacobi's 1-cycle dependency and 3-cycle throughput floor. Naive unrolling fails because the dependency is mathematical, not a compiler oversight. The post explores how to rewrite the dependency away to recover Gauss-Seidel's convergence advantage without sacrificing hardware efficiency.

## Key quote

> Gauss-Seidel's faster convergence is bought entirely at the price of a serialized, 12-cycle-per-element dependency chain that the compiler simply cannot break on its own.

## HN discussion (22 comments)

### [mota7](<https://news.ycombinator.com/item?id=49730813>)

> "... and this is the whole ballgame: ", "jump out immediately", "... and the idea is disarmingly simple", etc etc.
>
> Written by Claude AI. Which is a problem because Claude text is riddled with engagement bait and filler, making it exhausting to read.

### [hwita](<https://news.ycombinator.com/item?id=49733046>)

> It looks like this analysis extends to the successive over-relaxation (SOR) method. Does it extend to the symmetric successive over-relaxation method?

### [sheafification](<https://news.ycombinator.com/item?id=49730968>)

> I doubt outside of a few exceptional cases that one is going to do better on CPU-bound problems than a well-written LAPACK implementation built for the architecture you intend to run on.
>
> Maybe pedagogy was the point? I didn’t really get that from the article, maybe some intention was lost by filtering it through AI.

---

## Cite

- Page: https://zeli.app/story/49710201
- Date: 2026-09-15
- Source: loiseaujc.github.io (https://loiseaujc.github.io/posts/blog-title/make_gauss_seidel_great_again.html)
- Hacker News: https://news.ycombinator.com/item?id=49710201

## Other languages

- zh: https://zeli.app/zh/story/49710201 · markdown: https://zeli.app/zh/story/49710201.md
- ja: https://zeli.app/ja/story/49710201 · markdown: https://zeli.app/ja/story/49710201.md
- ko: https://zeli.app/ko/story/49710201 · markdown: https://zeli.app/ko/story/49710201.md
- de: https://zeli.app/de/story/49710201 · markdown: https://zeli.app/de/story/49710201.md
- es: https://zeli.app/es/story/49710201 · markdown: https://zeli.app/es/story/49710201.md
- ru: https://zeli.app/ru/story/49710201 · markdown: https://zeli.app/ru/story/49710201.md
