Files
2026-08-25 16:26:52 -04:00

1.6 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
Stupid hardware question: Why does AMD use several counters instead of one u64 bitmask for memory ops? archive twitter https://x.com/SebAaltonen/status/1898272635277967509 Sebastian Aaltonen SebAaltonen 1898272635277967509 2025-03-08 2026-08-25 false
archive
twitter
SebAaltonen
Stupid hardware question: Why does AMD use several counters instead of one u64 bitmask for memory ops?

Source

Thread

1/ @SebAaltonen ^1898272635277967509

Stupid hardware question: Why does AMD use several counters instead of one u64 bitmask for memory ops? Each load/store would have a bit index and wait would have a bitmask (marked bits need to be set = finished).

Branches: archive/threads/SebAaltonen/2025-03-08-stupid-hardware-question-why-does-amd-use-several/2025-03-08-NOTimothyLottes-actually-this-is-a-super-important-question-imo

2/ @SebAaltonen ^1898272964908359917

I am glad that RDNA4 has separate counters for sampling (long latency) and lower latency raw loads now. That's a good improvement.

3/ @SebAaltonen ^1898280870462554297

Some thoughts: Compiler managed bitfield slot indices would be iffy with loops and branches. One bit per register (big bitfield) would always work, but that would be much more than 64 bits. And wait instructions would be iffy (how to describe a massive bitfield).