Intel® C++ Compiler XE 13.1 User and Reference Guides
Controls printing offload execution time and the amount of data transferred. This function only applies to Intel® MIC Architecture.
__Offload_report(integer)
|
Name |
Type |
Description |
|---|---|---|
|
integer |
integer |
Possible values: 1 or 2. 1 prints the offload computation time, in seconds. 2 prints the offload computation time, in seconds, and the amount of data transferred, in bytes. |
This API enables you to time offload regions and measure the amount of data transferred during their execution.
Using this API is equivalent to setting the environment variable OFFLOAD_REPORT.
Setting __Offload_report(1) prints the offload computation time. For example:
[FILE] filename.c
[LINE] line_no
[CPU-TIME] 0.278886
[MIC-TIME] 0.000177
Setting __Offload_report(2) prints the offload computation time and the amount of data transferred. For example:
[FILE] filename.c
[LINE] line_no
[CPU-TIME] 0.52
[CPU->MIC DATA] 0
[MIC-TIME] 0.000151
[MIC->CPU DATA] 4