🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #646

Re: vector length CSR?

#646
From: Terje Mathisen
Date: Wed, 11 Nov 2026 14:04
34 lines
2933 bytes
Stephen Fuld wrote:
> On 11/10/2026 12:00 PM, MitchAlsup wrote:
>> Stephen Fuld <sfuld@alumni.cmu.edu.invalid> posted:
>>> I respect Mitch's abilities such that I can't believe he hasn't thought
>>> about how VVM would handle such a common operation as matrix 
>>> multiplication.
>>
>> Blocking in the DCache.
> 
> So how well does that perform compared to a "typical" SIMD approach?
> 

My guess would be "quite well".

A decade or two ago AMD published benchmark code for a relatively simple 
kernel where the final version ran about 3 x faster than the naive version:

 From memory, they started by prefetching 4KB of data, by actually 
loading and discarding the first byte of each 64-byte cache line (this 
was significatnly faster than using the PREFETCH hint operations), then 
they used load-and-operate on this 4 KB of input data (together with 
some other either local memory or register data), storing the results 
back to a local (cache-resident) 4 KB buffer, before the third and final 
iteration stored the 4KB to the final target, using Non-Temporal stores 
that would bypass the caches since this was data which would not be 
reused shortly.

Omitting/bypassing any of these "extra" steps made the code run slower.

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
Technical Details
Message-ID: <11d1skq$336s1$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cpqih$acf5$1@dont-email.me> <sgu0flpndaqltpdbft40fghmi7vk78q2hs@4ax.com> <11cq2v7$dh5b$1@dont-email.me> <8jk1fl182pskj3fsmp4ju6qf420pgl0htg@4ax.com> <11csull$1ef6e$1@dont-email.me> <2026Nov9.230104@mips.complang.tuwien.ac.at> <11cvcr4$28k7g$1@dont-email.me> <1794340818-5857@newsgrouper.org> <11d0e8k$2kv54$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Terje Mathisen <terje.mathisen@tmsw.no>
Newsgroups: comp.arch
Subject: Re: vector length CSR?
Date: Wed, 11 Nov 2026 15:04:11 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <11d1skq$336s1$1@dont-email.me>
References: <11cpqih$acf5$1@dont-email.me>
 <sgu0flpndaqltpdbft40fghmi7vk78q2hs@4ax.com> <11cq2v7$dh5b$1@dont-email.me>
 <8jk1fl182pskj3fsmp4ju6qf420pgl0htg@4ax.com> <11csull$1ef6e$1@dont-email.me>
 <2026Nov9.230104@mips.complang.tuwien.ac.at> <11cvcr4$28k7g$1@dont-email.me>
 <1794340818-5857@newsgrouper.org> <11d0e8k$2kv54$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Nov 2026 14:04:11 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3251073"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19QhPep6g7yu+DzzqRjqpqiszqLovGCKz84E/KE4j8JWg=="; posting-host="44ebd6016bcf3ecf1773b41602864f91"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:U1cCOSU9lHo/yzNqztF3JkrPqaM= sha256:MaKzDPUKqfaOY2qUalVIGoyKEdlzmjDrCjejYVf6UtA=
	sha1:3uZedkM2Risiq56C06cTYRbSCs4= sha256:UVN6iugEpYEroGUrwOHxfdtvKITP+fcWq25LPtRLa5o=
In-Reply-To: <11d0e8k$2kv54$1@dont-email.me>