Allocating Memory Aligned To Cache Lines
It would be beneficial to allocate memory aligned to cache lines. If an array is partitioned for more than one thread to operate on, having the sub-array boundaries unaligned to cache lines could lead to performance degradation. Here is an example to allocate memory (double array of size 10) aligned to cache of 64 bytes.
#includeRead more about this topic: Data Structure Alignment
Famous quotes containing the words memory and/or lines:
“Everybodys an artist. Everybodys God. Its just that theyre inhibited. I believe in people so much that if the whole of civilization is burned so we dont have any memory of it, even then people will start to build their own art. It is a necessitya function. We dont need history.”
—Yoko Ono (b. 1933)
“I am so tired of taking to others
translating my life for the deaf, the blind,
the I really want to know what your life is like without giving up any of my privileges
to live it white women
the I want to live my white life with Third World womens style and keep my skin
class privileges dykes”
—Lorraine Bethel, African American lesbian feminist poet. What Chou Mean We, White Girl? Lines 49-54 (1979)