Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: devitech@novi.auc.dk (Devitech I/S)
Subject: How can I allocate a dataarray in Cache?
Date: Wed, 8 Feb 1995 21:38:36 LOCAL	[thread overview]
Message-ID: <devitech.22.00381172@novi.auc.dk> (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




             reply	other threads:[~1995-02-08 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-08 21:38 Devitech I/S [this message]
1995-02-18 12:22 ` How can I allocate a dataarray in Cache? John L. Henning
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox