cachesim-sets

Set the cache set size to collect modeling data for CPU cache behavior during Memory Access Patterns analysis.

GUI Equivalent

Project Properties > Analysis Target > Memory Access Patterns Analysis > Advanced > Cache sets

Syntax

--cachesim-sets=<integer>

Arguments

<integer> is in bytes: 256 | 512 | 1024 | 2048 | 4096 | 8192

Default

4096

Actions Modified

collect=map --enable cache-simulation

Usage

Note

Cache simulation modeling applies to the following analyses:

  • Memory Access Patterns - This basic simulation functionality models accurate memory footprints, miss information, and cache line utilization for a downstream Memory Access Patterns report.

  • Trip Counts and FLOP - This enhanced simulation functionality models multiple levels of cache for a downstream GUI Roofline chart or Roofline interactive HTML report. To enable enhanced simulation functionality in a GUI Roofline chart: Set the ADVIXE-EXPERIMENTAL=int_roofline environment variable.

Example

Run a Memory Access Patterns analysis. Model cache misses for 2048-byte cache set size, default cache associativity and cache line size.

$ advixe-cl collect=map --enable-cache-simulation --cachesim-sets=2048 --cachesim-mode=cache-misses --project-dir=./myAdvisorProj -- ./myApp

See Also

Optimization Notice: 
For more complete information about compiler optimizations, see our Optimization Notice.