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:
- Collect performance data using thecollect.pyscript or theadvisorcommand line interface.
- Rerun performance modeling using theanalyze.pyscript with the following options:
- --select-loops=to specify loop(s) of interest in a comma-separated list[<file-name1>:<line-number1>,<file-name1>:<line-number2>,<file-name2>:<line-number3>]
- --enforce-offloadsto make sure all of them are offloaded
You should see the
Offload Modeling
report that shows performance modeled for the selected loops only.