24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Level-2 cache or the table lookaside buffer (TLB) if the machine has<br />

no level-2 cache<br />

3 TLB in a machine that does have a level-2 cache<br />

Other levels are possible but are currently undefined. If a system has more<br />

than one level of cache, use a separate -qcache option to describe each<br />

level.<br />

line=bytes<br />

Specifies the line size of the cache.<br />

size=Kbytes<br />

Specifies the total size of this cache.<br />

type={C|c| D|d|I|i}<br />

Specifies the type of cache that the settings apply to, as follows:<br />

v C or c <strong>for</strong> a combined data and instruction cache<br />

v D or d <strong>for</strong> the data cache<br />

v I or i <strong>for</strong> the instruction cache<br />

Restrictions<br />

If you specify the wrong values <strong>for</strong> the cache configuration or run the program on<br />

a machine with a different configuration, the program may not be as fast as<br />

possible but will still work correctly. Remember, if you are not sure of the exact<br />

values <strong>for</strong> cache sizes, use a conservative estimate.<br />

Currently, the -qcache option only has an effect when you also specify the -qhot<br />

option.<br />

Examples<br />

To tune per<strong>for</strong>mance <strong>for</strong> a system with a combined instruction and data level-1<br />

cache where the cache is two-way associative, 8 KB in size, and has 64-byte cache<br />

lines:<br />

xlf95 -O3 -qhot -qcache=type=c:level=1:size=8:line=64:assoc=2 file.f<br />

To tune per<strong>for</strong>mance <strong>for</strong> a system with two levels of data cache, use two -qcache<br />

options:<br />

xlf95 -O3 -qhot -qcache=type=D:level=1:size=256:line=256:assoc=4 \<br />

-qcache=type=D:level=2:size=512:line=256:assoc=2 file.f<br />

To tune per<strong>for</strong>mance <strong>for</strong> a system with two types of cache, again use two -qcache<br />

options:<br />

xlf95 -O3 -qhot -qcache=type=D:level=1:size=256:line=256:assoc=4 \<br />

-qcache=type=I:level=1:size=512:line=256:assoc=2 file.f<br />

Related In<strong>for</strong>mation<br />

See “-qtune Option” on page 251, “-qarch Option” on page 127, and “-qhot<br />

Option” on page 171.<br />

138 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!