* How can I allocate a dataarray in Cache?
@ 1995-02-08 21:38 Devitech I/S
1995-02-18 12:22 ` John L. Henning
0 siblings, 1 reply; 2+ messages in thread
From: Devitech I/S @ 1995-02-08 21:38 UTC (permalink / raw)
Hi folks!
I have a problem concerning speed optimisation of C++ code. I have to process
large arrays (images typically 256x256 bytes and larger) and wonder if I
somehow could speed up my code. Currently my host is a AlphaAXP PCI33 with
WinNT OS and i'm using a DEC C++ compiler.
When I perform processing on the Image dataarray, I currently have to fetch
data from the outermost RAM storage (70ns). So I thought if I somehow could
either:
1)split up my processing into processing on smaller subarrays. This I thought
could be done by copying a small pieces of the large array into the internal
cache ,do the processing, copy data back to the external memory and load the
next subarray etc. But is it possible to reserve/allocate a part of the
internal cache, so it is reserved only for data processed by a specific
routine???
2) Another possibility I thought might be relevant, was to store and Lock
the whole dataarray in the secondary cache, until my processing is done, and
then afterwards move data to the outermost ram. Also it would be preferable
if I could use the DMA controller to move data meanwhile processing on another
data block.
If anyone have any suggestion how to solve my cache allocation problem or
knows any use able literature describing this, please reply -100x Thanks in
advance.
Cheers-
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How can I allocate a dataarray in Cache?
1995-02-08 21:38 How can I allocate a dataarray in Cache? Devitech I/S
@ 1995-02-18 12:22 ` John L. Henning
0 siblings, 0 replies; 2+ messages in thread
From: John L. Henning @ 1995-02-18 12:22 UTC (permalink / raw)
In article <devitech.22.00381172@novi.auc.dk>, devitech@novi.auc.dk
(Devitech I/S) writes...
>When I perform processing on the Image dataarray, I currently have to fetch
>data from the outermost RAM storage (70ns). So I thought if I somehow could
>either:
>
>1)split up my processing into processing on smaller subarrays. This I thought
>could be done by copying a small pieces of the large array into the internal
>cache ,do the processing, copy data back to the external memory and load the
You're on the right track. But rather than "reserving" a section of the
cache, you want to use a technique called "blocking". This is very well
described in High Performance Computing, by Kevin Dowd, published by
O'Reilly and Associates, chapter 11.
/john henning
csg performance group
digital
henning@i4get.enet.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-18 12:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-08 21:38 How can I allocate a dataarray in Cache? Devitech I/S
1995-02-18 12:22 ` John L. Henning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox