Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

How can you know the execution status of an offloaded function on asynchronous computation?

Keitaro_O_
Beginner
810 Views

Hi I am trying to measure power on Xeon Phi by using MicGetPowerUsage, which is one of APIs in MicAccessAPI library. I would like to measure the power only while a offloaded function is running on Xeon Phi. So I'm looking for some API that returns whether a offloaded function has been finished executing. Could you please tell me if you know an API to return the execution status of the offloaded function. Thank you, Keitaro

0 Kudos
3 Replies
Kevin_D_Intel
Employee
810 Views

I am not familiar with that library of APIs so hopefully someone who is can chime in with something more helpful.

My sense from your description is this may not suit your interests/needs but I at least wanted to mention that for the program performing the offload the non-blocking _Offload_signaled() API enables determining if a section of offloaded code has completed, and so do the blocking wait clause and offload_wait construct. These are discussed in the compiler’s User Guide under About Asynchronous Computation.

0 Kudos
Keitaro_O_
Beginner
810 Views
Thank you very much. The API is exactly what I'm looking for.
0 Kudos
Kevin_D_Intel
Employee
810 Views

Great! Glad that's what you needed.

0 Kudos
Reply