Article View: comp.arch
Article #594Re: vector length CSR?
From: Robert Finch
Date: Sun, 08 Nov 2026 18:59
Date: Sun, 08 Nov 2026 18:59
44 lines
3067 bytes
3067 bytes
On 2026-11-08 1:20 p.m., MitchAlsup wrote: > Robert Finch <robfi680@gmail.com> posted: > >> I tried asking the web-browser this and it returned a bunch of links to >> introduction to vectors. >> >> Am I right in thinking that the vector length and element size are >> basically stable throughout an application? > > Consider Gaussian Elimination, the length of the loop goes down > by 1 every loop. > okay >> If so, they can be stored in >> a config register. Otherwise, if they need to be changeable on a dynamic >> basis they would have to be processed like a GPR with renaming etc. > > Get ready to change them every entry to top-of-loop. > Most CRAY-like vector units have a length-this-time register that > is decremented by vector-register-length every vector-iteration. > On the last iteration, it is used to create a mask of elements > that are not going to be calculated. > I think this may be okay handled with a mask. The Q+ vector registers are not super wide. The max is 512 bits. The length could be decremented, then a mask shifted right if the length is less than the number of registers in use. There would be basically NOP operations on the last iteration. -> could add an instruction to conditionally shift right if a < b. >> Updating a CSR is rather slow as updates do not take place until commit >> time. >> >> ATM the config is just wired directly into the micro-op translate stage >> which would have really poor performance if things need to be modified >> on the fly. >> >> I looked at the RISCV vector extension model and they have it just as a >> CSR. Makes me think that is an acceptable solution. > > It can be, so long as it performs decrement-by-vector-length all > by itself ...
Technical Details
Message-ID:
<11cqgr1$k4qi$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cpqih$acf5$1@dont-email.me> <1794162004-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Robert Finch <robfi680@gmail.com> Newsgroups: comp.arch Subject: Re: vector length CSR? Date: Sun, 8 Nov 2026 13:59:43 -0500 Organization: A noiseless patient Spider Lines: 44 Message-ID: <11cqgr1$k4qi$1@dont-email.me> References: <11cpqih$acf5$1@dont-email.me> <1794162004-5857@newsgrouper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 08 Nov 2026 18:59:46 +0000 (UTC) Injection-Info: dont-email.me; logging-data="660306"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2V817nY+giGN/Uv4B7wKFKXsRScHwQoY="; posting-host="8056d61dab7af1222809f624b61edb2f" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:6vzjSz8Ub6CtbRseZ1mwLrRoaqo= sha256:3oieQEgT0lDCdTKcm25epMLjxnIBk0nWotsu90vIfRw= sha1:XD3MsuqpdvXXzcRBFuKydKpsnQ4= sha256:fD5UC1uRSflAXjGVT9y7sD0XhsWj36MibNTmF1yEE6U= Content-Language: en-US In-Reply-To: <1794162004-5857@newsgrouper.org>