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

Performance Analysis and Reports

RAror6
New Contributor I
2,242 Views

Hello,

Could I get some help with how to analyze the performance of my code? I know I can make reports for FPGAs, but what do I do for GPUs to analyze my code?

Is there a better way to get performance output other than reports?

Thank you!

0 Kudos
9 Replies
Elena_F_Intel
Employee
2,242 Views

Hello,

Please try this and let us know whether it helps: https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/analyze-performance/code-profiling-scenarios/gpu-application-analysis.html

0 Kudos
RAror6
New Contributor I
2,242 Views

Thank you so much guys for the quick reply! VTune seems like a very helpful tool! Unfortunately, I am unable to run it.

I am programming in DevCloud, and i went to install-dir/vtune/version/env/vars.sh. I sent in the command source vars.sh. After this, I am expecting that it should run the command vtune-gui, but for some reason it isn't. I get the following error:

vtune-gui: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

Could you help me figure this out?

 

Thank you!

0 Kudos
RAror6
New Contributor I
2,242 Views

EDIT: I get this error when i try to run the matrix multiply application. What can I do here?

vtune: Warning: Analysis result will not show the detailed GPU Utilization. See GPU Utilization help topic for more details.
Events for detailed GPU utilization analysis can be collected for Intel GPUs only.
vtune: Error: Cannot collect GPU hardware metrics due to a lack of permissions. Use root privileges (recommended) or re-configure your current permissions to make sure you are a member of the video user group and /proc/sys/dev/i915/perf_stream_paranoid value is set to 0.
vtune: Warning: Access to /proc/kallsyms file is limited. Consider changing /proc/sys/kernel/kptr_restrict to 0 to enable resolution of OS kernel and kernel module symbols.

Thank you!

0 Kudos
AthiraM_Intel
Moderator
2,242 Views

Hi,

For collecting gpu hotspots please use the below syntax

vtune -collect gpu-hotspots [-knob <knobName=knobValue>] -- <target> [target_options]

Please refer the below links for more information.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/running-command-line-analysis/running-gpu-hotspots-analysis-from-the-command-line.html

https://software.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recipes/profiling-dpc-application.html

If you face any further issue please let us know.

Regarding your first query, the Intel(R) DevCloud is a cluster with no windows subsystem. By design GUI applications won't work.

You could use VTune as a web server in addition to the classic desktop usage model. 

Please find the below link for more information.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/launch/web-server-ui.html#web-server-ui

Hope this helps.

 

Thanks

 

0 Kudos
RAror6
New Contributor I
2,242 Views

That was very helpful! Thank you so much!

EDIT: I went over the links, they have the same steps for the matrix multiply code. They want me to run the code: vtune -collect gpu-hotspots -- ./matrix.dpcpp. However, when I run it I get the error of: vtune: Error: Cannot collect GPU hardware metrics due to a lack of permissions. Is there something I can do about this?

0 Kudos
AthiraM_Intel
Moderator
2,242 Views

Hi,

Make sure that you are login into a node with gpu on DevCloud.

You can request a node with GPU on the DevCloud using the below command

qsub -I -l nodes=1:gpu:ppn=2 -d .

Hope this helps. If you face any issue please let us know.

 

Thanks

 

0 Kudos
RAror6
New Contributor I
2,242 Views

Thank you so much! That worked!

0 Kudos
AthiraM_Intel
Moderator
2,242 Views

Hi,

Glad to know that your issue got resolved.

We are closing this thread. Please feel free to open a new thread if you have any further issues.

 

Thanks

0 Kudos
Reply