Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.arch |
| Subject | Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations |
| Date | 2016-01-03 15:34 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2016Jan3.163427@mips.complang.tuwien.ac.at> (permalink) |
| References | <99749576-6d5c-4df7-b5d2-c6836024a787@googlegroups.com> <cd815b09-b95d-484b-9841-e4c762d2a98c@googlegroups.com> <ef116e33-a68a-433d-a200-12b209cb2ae4@googlegroups.com> <ac8afa0f-cadc-4cc3-8a0d-fff64b6de129@googlegroups.com> |
MitchAlsup <MitchAlsup@aol.com> writes: >On Saturday, January 2, 2016 at 1:21:34 PM UTC-6, Rick C. Hodgin wrote: >> On Thursday, December 31, 2015 at 11:08:25 AM UTC-5, MitchAlsup wrote: >> > On Wednesday, December 30, 2015 at 11:21:45 AM UTC-6, Rick C. Hodgin wrote: >> > > Consider: >> > > >> > > extern int a[1000000]; >> > > extern int b[1000000]; >> > > >> > > for (int i = 0; i < 1000000; i++) >> > > a[i] += b[i]; >> > > >> > > In this example, the cache would not do well. >> > >> > The above code "strip mines" memory. >> >> What do you mean by "strip mines" memory? > >You read a[0], b[0], a[1], b[1] ... a[1000000], b[1000000], >never reusing a single item. > >This is why vector machines did not have caches, and much of the codes >they were really good at "strip mined memory". This kind of memory reference >pattern is not amenable to caching as it displays no temporal or spatial >reuse. What is "spatial reuse"? This memory reference pattern exhibits spatial locality and benefits from caching: The first access to each cache line is a miss, but the other accesses happen with 0 or 1 intervening accesses, so they will hit the cache; and this loop accesses all the data in the cache line. - anton -- M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html
Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-30 09:21 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations Quadibloc <jsavard@ecn.ab.ca> - 2015-12-30 09:38 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations EricP <ThatWouldBeTelling@thevillage.com> - 2015-12-30 13:06 -0500
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations MitchAlsup <MitchAlsup@aol.com> - 2015-12-31 08:08 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations Quadibloc <jsavard@ecn.ab.ca> - 2015-12-31 08:18 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 08:19 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations Anonymous <no_email@invalid.invalid> - 2016-01-01 01:00 +0000
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 17:23 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations Anonymous <no_email@invalid.invalid> - 2016-01-01 01:33 +0000
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-01 11:30 +0100
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 08:23 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 08:29 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations Quadibloc <jsavard@ecn.ab.ca> - 2015-12-31 11:33 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 11:21 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations MitchAlsup <MitchAlsup@aol.com> - 2016-01-02 12:04 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 12:24 -0800
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-03 15:34 +0000
Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations MitchAlsup <MitchAlsup@aol.com> - 2016-01-03 14:33 -0800
csiph-web