Collect loop trip counts data during Trip Counts & FLOP analysis.

GUI Equivalent

Workflow > Trip Counts

Project Properties> Analysis Target> Trip Counts and FLOP Analysis> Collect information about loop trip counts

Syntax

--trip-counts

--no-trip-counts

Default

On (trip-counts)

Actions Modified

collect=tripcounts

Usage

Use the option, which allows you to dynamically identify the number of times loops are invoked and executed, to:

  • Detect loops with too-small trip counts and trip counts that are not a multiple of vector length.

  • Analyze parallelism granularity more deeply.

Disabling can decrease analysis overhead.

Example

Run a Trip Counts & FLOP analysis. Collect trip counts, FLOP, and call stack data.

$ advixe-cl --collect=tripcounts --flop --stacks --project-dir=./advi -- ./bin/myApplication

Run a Trip Counts & FLOP analysis. Collect only FLOP data.

$ advixe-cl --collect=tripcounts --no-trip-counts --project-dir=./advi --search-dir src:=./src -- ./bin/myApplication
Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.