Intel® Fortran Compiler 18.0 Developer Guide and Reference
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. |
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.
CACHESIZE(1) returns 16 for a processor with a 16KB first level memory cache.