Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

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.