Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-DD3561D5-D72A-4C56-A9AF-A40EEDC0F399
Visible to Intel only — GUID: GUID-DD3561D5-D72A-4C56-A9AF-A40EEDC0F399
CACHESIZE
Inquiry Intrinsic Function (Generic): Returns the size of a level of the memory cache.
result = CACHESIZE (n)
n |
(Input) Must be scalar and of type integer. |
Results
The result type and kind are the same as n. The result value is the number of kilobytes in the level n memory cache.
n = 1 specifies the first level cache; n = 2 specifies the second level cache; etc. If cache level n does not exist, the result value is 0.
Example
CACHESIZE(1) returns 16 for a processor with a 16KB first level memory cache.