Article View: comp.arch
Article #809Re: vector length CSR?
From: Stephen Fuld
Date: Thu, 19 Nov 2026 16:45
Date: Thu, 19 Nov 2026 16:45
30 lines
2703 bytes
2703 bytes
On 11/11/2026 10:53 PM, Thomas Koenig wrote: > Stephen Fuld <sfuld@alumni.cmu.edu.invalid> schrieb: > >> It seems the >> advantage of an SIMD approach is the large set of addressable registers >> that can be used to keep data readily available for future use. > > Plus, you can do wide permutes, and it can also help with reduction. > Having mask for reducing operations also helps (or a length field). > > There is one other thing that VVM does not do natively: Reductions > on commutative operators. Consider the implementation of a simple > SUM intrinsic of FORTRAN. If you write the assembly equivalent of > > s = 0; > for (long int i=0; i<n; i++) > s = s + a[i]; I am certainly not a numerical analyst, so correct me if I am wrong, but if the code above is C, then the reduction is not commutative unless you don't care about intermediate overflow or S is defined as unsigned, e.g. suppose consecutive elements are Max-10, 20, -Max+50 (where Max is the maximum value allowed, either integer or FP). If it is the SUM intrinsic in FORTRAN, then since FORTRAN doesn't care about overflow, then my point is irrelevant. -- - Stephen Fuld (e-mail address disguised to prevent spam)
Technical Details
Message-ID:
<11dn936$2ebc2$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-mailReferences:
<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> <11d3npt$3mmho$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: Stephen Fuld <sfuld@alumni.cmu.edu.invalid> Newsgroups: comp.arch Subject: Re: vector length CSR? Date: Thu, 19 Nov 2026 08:45:24 -0800 Organization: A noiseless patient Spider Lines: 30 Message-ID: <11dn936$2ebc2$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> <11d3npt$3mmho$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 19 Nov 2026 16:45:26 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2567554"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ugeyolL/IEflg57kU2cEvduCxALu7iL4="; posting-host="b60df9889f50627eb745c7e3ad5cb98b" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:WzbvNf9MMIVcvop/F0tmay65znQ= sha256:CrKHjOHQux4Cc0grYk8YXR7F+UT/hR2qoO55ZW/+++Y= sha1:IM/J+VptPY9T2yr9VZP+wL+rsBM= sha256:vpaFMYhNDaOiOc6WyBhn0YJVZheUxgm08iBFl3LY9RA= In-Reply-To: <11d3npt$3mmho$1@dont-email.me> Content-Language: en-US