User Guide

Contents

Enforce Offloading for Specific Loops

Model performance on a target device for specific loops only even if they are not profitable.
If you want to check offload profitability only for specific loops or if your loop of interest is reported as not recommended for offloading to an accelerator, you can model performance only for these loops.
To do this:
  1. Collect performance data using the
    collect.py
    script or the
    advisor
    command line interface.
  2. Rerun performance modeling using the
    analyze.py
    script with the following options:
    • --select-loops=
      [<file-name1>:<line-number1>,<file-name1>:<line-number2>,<file-name2>:<line-number3>]
      to specify loop(s) of interest in a comma-separated list
    • --enforce-offloads
      to make sure all of them are offloaded
You should see the
Offload Modeling
report that shows performance modeled for the selected loops only.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.