Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving Data in Memory




On Oct 18, 2004, at 8:07 AM, Gohara, David wrote:

Thanks to all who replied.

  For the moment I went with the mtrans() function.  If I am following correctly, the section on the developer site regarding matrix transpose is what the mtrans function is doing (and is essentially what Holger had suggested as well). 

  Ian I'm not certain I am following the statement you made (pasted below).  Could you, or someone else, elaborate a bit?

The thing you want to avoid is striding through data at multiples of 64kB. If you are striding vertically (or horizontally in FORTAN) through an array and each row (or column in FORTRAN) is a multiple of 64 kB wide (tall) then you will be striding through data at multiples of 64 kB. To fix this, the number of bytes in each row (or column) of data should not be a multiple of 65536 bytes. If it is, allocate your matrix to be a bit wider (taller) and do not use the extra columns (rows).


Hopefully that is clear (or not). ;-)

Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden

This email sent to email@hidden
References: 
 >RE: Moving Data in Memory (From: "Gohara, David " <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.