Software Archive
Read-only legacy content
17061 Discussions

How to measure data transfer time for Xeon Phi offloads?

Xiduo_T_
Beginner
754 Views

I'm working with Xeon Phi and I need to measure data transfer time in offload mode. Offload report only contains the execution time and the amount of data transferred. How can I measure data transfer time for Xeon Phi offloads?

0 Kudos
1 Reply
Jeremias_M_
Beginner
754 Views

If you use OFFLOAD_REPORT 2, you will receive the TAG of the transfer with the times in MIC and CPU.

Example:

[Offload] [MIC 0] [Tag]                     Tag 5
[Offload] [HOST]  [Tag 5] [CPU Time]        1.067631(seconds)
[Offload] [MIC 0] [Tag 5] [CPU->MIC Data]   402653192 (bytes)
[Offload] [MIC 0] [Tag 5] [MIC Time]        0.000188(seconds)
[Offload] [MIC 0] [Tag 5] [MIC->CPU Data]   0 (bytes)

In this example, TAG 5 is a transfer CPU to MIC and spend 1.06 seconds.

 

 

0 Kudos
Reply