Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5142 Discussions

Re: Re:Profiling FPGA code with Vtune

Mickleman
New Contributor I
3,041 Views

Many thanks Stas

That works perfectly.  I can now run my FPGA application through Vtune on a local Linux browser.  I will try the VS Code route later.  I look forward to reading your cookbook.

My next problem is that the application fails at kernel launch if I select AOCL Profiler (it works for OpenCL Profiling API but gives no details on the kernel performance).  The application is compiled with -Xsprofile.  The error logged is:

acl_profiler.cpp:831 int acl_process_profiler_scan_chain(acl_device_op_t*): Assertion '0' failed.
aocl Error: The execution failed with an error.
aocl Returned status: 6

What am I doing wrong?

Kind regards
Marcus

 

 

0 Kudos
12 Replies
Dmitry_R_Intel1
Employee
2,996 Views

This looks like a known bug which is planned to be fixed in next releases. As for workaround passing “-no-mem-transfers" option to aocl profile should help. This corresponds to 'FPGA no memory transfers' option in VTune analysis configuration. This does mean that memory transfer information between device and host will not be present in the final VTune report though.

0 Kudos
RaeesaM_Intel
Moderator
2,964 Views

Hi ,


Did you try the solution provided by Dmitry. Is your issue resolved ?

Please let us know the updates.


Raeesa


0 Kudos
Mickleman
New Contributor I
2,954 Views

Hi Raeesa and thanks Dimitry.

Yes this work-around works.  But I still don't see any detailed performance figures within the FPGA kernel - what information should I expect to see?

Marcus

0 Kudos
RaeesaM_Intel
Moderator
2,943 Views

Hi Marcus,


Glad to know that work-around worked for you.

Please refer the following link for details regarding FPGA analysis and viewpoints :

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/analyze-performance/accelerators-group/cpu-fpga-interaction-analysis/cpu-fpga-interaction-view.html#cpu-fpga-interaction-view_FPGA

Hope this helps.


Thanks and Regards,

Raeesa


0 Kudos
Mickleman
New Contributor I
2,934 Views

Hi Raeesa,

I'm afraid I am still struggling to see any FPGA results.  The documentation you refer to says to look at the 'FPGA Top Compute Tasks' section of the Summary.  But this does not exist.  Neither does the 'Bottom-up' window.

In the Configuration I have chosen 'CPU/FPGA Interaction', left everything as default except for ticking the 'FPGA no memory transfers' as instructed.   Is there something else I need to do?

I attach the collection log which contains warnings in case there is a clue there.

Kind regards
Marcus

 

0 Kudos
Dmitry_R_Intel1
Employee
2,929 Views

Could you please archive and share the VTune result folder (e.g. the r010fi one)? If you can't do this please share at least the log and config folders from it (e.g. r010fi/log and r010fi/config). 

0 Kudos
Mickleman
New Contributor I
2,926 Views

Hi Dmitry

Here is result folder.

Marcus

0 Kudos
Dmitry_R_Intel1
Employee
2,903 Views

The error from logs is essentially saying that the compiler produced a profiler config file but did it wrong – a bug we haven’t seen before. If you can provide the application binary (target-forward.fpga) it would be a huge help in debugging. Feel free to contact me by mail Dmitry.Ryabtsev@intel.com if you prefer to do it privately.

0 Kudos
Dmitry_R_Intel1
Employee
2,889 Views

We've got the binary and will continue the investigation. Meanwhile you can try the following things:

1) Run the design using “aocl profile /home/u57941/target-forward/target-forward.fpga” and see if it also produce the same errors

2) Recompile the design using the -Xsprofile option in case their design executable (target-forward.fpga) is corrupt in some way and then run step 1)

0 Kudos
Dmitry_R_Intel1
Employee
2,876 Views

After some investigation we discovered a bug in the compiler that was resulting in a debug location having a line number of 0. This caused the profiler post processor to fail while trying to parse the line number. We plan to fix it in next versions of compiler. 

0 Kudos
DMITRY_T_Intel
Employee
2,781 Views

Hi Marcus,

This issue escalated to development. I will let you know as soon as I get any information.

Thank you!


0 Kudos
DMITRY_T_Intel
Employee
2,539 Views

Hi Marcus,

This issue was fixed in oneAPI 2021.4 release which will be available for download soon. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

Thank you very much!


0 Kudos
Reply