🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #643

Re: vector length CSR?

#643
From: Anton Ertl
Date: Wed, 11 Nov 2026 09:37
33 lines
2933 bytes
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> My impression is that VVM can only do what memory-to-memory vector
>> machines could do, but does not have a good story for those tasks
>> where the vector/SIMD registers are used several times.
>
>Presumably caches could be used to get comparable results.

Let's take Zen6 (because its capabilities have just been reported on
<https://chipsandcheese.com/p/amds-zen-6-family-feeding-the-beast>):

It can do 2 512-bit FMAs per cycle, each consuming 3 512-bit inputs
and generating 1 512-bit output, and, e.g. matrix multiplication can
get a good utilization from these units.

So in the worst case, if you need all the inputs from caches and
outputs to caches, you would need to be able to perform 6 512-bit
loads and 2 512-bit stores per cycle.  The actual Zen6 can perform 2
512-bit loads and (?) 1 512-bit store per cycle (and it's unclear from
the graphics whether the 2 loads and 1 store can happen in the same
cycle).

It may be possible to reduce the number of needed load or store ports
a little for matrix multiplication in VVM, e.g., by computing the sum
of several multiplications before storing, and/or by performing
multiplications of a vector with a scalar (SAXPY-style).  Fortunately,
matrix multiplication provides lots of freedoms in rearranging the
computation.  Nevertheless, I would be surprised if one could achieve
the same FPU/LSU ratio with VVM as one can achieve with AVX-512.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Nov11.103708@mips.complang.tuwien.ac.at>
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> <jwvcxscpyy4.fsf-monnier+comp.arch@gnu.org>

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: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: vector length CSR?
Date: Wed, 11 Nov 2026 09:37:08 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 33
Message-ID: <2026Nov11.103708@mips.complang.tuwien.ac.at>
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> <jwvcxscpyy4.fsf-monnier+comp.arch@gnu.org>
Injection-Date: Wed, 11 Nov 2026 09:56:35 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3061386"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX198F8tpvnbsSgCA4QssRrIY"; posting-host="9be58ce66f14ec876e6ac91941122637"
Cancel-Lock: sha1:OHnQBb+XhZTZbqnnaDWwNCkHJkE= sha256:4MUOSBedVqmEiV1rhcCwIsa628NlZ8bkfWKUDq+4a4c=
	sha1:W2phK7u5M1CFEySGMzGx375Dc+w= sha256:YcmGhOZx9ZnDhfS6ALeYmSpSMFjPFA+oBDg4AnluCyo=
X-newsreader: xrn 10.11