Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | EricP <ThatWouldBeTelling@thevillage.com> |
|---|---|
| Newsgroups | comp.arch |
| Subject | Re: CLU (clamping logic unit) -- An idea to aid in prefetch operations |
| References | <99749576-6d5c-4df7-b5d2-c6836024a787@googlegroups.com> |
| Message-ID | <Y3Vgy.26013$dB4.23592@fx18.iad> (permalink) |
| Date | 2015-12-30 13:06 -0500 |
Rick C. Hodgin wrote: > In working with my CAlive compiler design, and my Arxoda CPU hardware > design, I had a thought about one aspect of data processing. This idea > relates to hardware prefetching and may already exist, but it occurred > to me independently as by looking at the needs of the compiler, and the > offerings of the CPU, and I wanted to get some feedback on its concept > and implementation. > > Please consider responding if you are interested. Thank you in advance. > > ----- > 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. Successive accesses > would almost consistently stall because the cache is being traversed > sequentially and the CPU has no way of knowing that without the > injection of some compiler-hints, or explicit code which would > prefetch data that's needed for upcoming use. You could of course test this assumption with a quick Google search for various permutations of "cache sequential hardware prefetch". Eric
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