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

Using VTune Profiler with Visual Studio 2019

shekhar__gaurav
Einsteiger
14.460Aufrufe

Hi,

I have installed VTune Profiler recently to profile an OpenCL project on VS2019. I need some help with how can I profile my code with VTune. 

I could not find anything helpful yet. If I can get some document that discusses the step-by-step procedure starting from the welcome page, it would be very helpful for a newbie like me.

 

Thanks,

Gaurav.

0 Kudos
26 Antworten
JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Thank you for reaching out.

Refer the below link to know the step by step procedure.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/launch/microsoft-visual-studio-integration.html

JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Hope we have answered your questions.Could you please give us an update?

shekhar__gaurav
Einsteiger
12.164Aufrufe

Hi,

I followed this document for profiling my OpenCL application, but I am unfortunately getting the error as attached.

  • I selected my output .exe in Application
  • And the relevant parameters in Application Parameters
  • In the analysis type, I selected GPU Offload

I see the following error after I click Start.

Gaurav.

 

 

JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Thanks for the update.

Try the below code sample for GPU offload.If you get any error ,share the screenshot of it so that we could figure out the exact issue.

https://github.com/intel/BaseKit-code-samples/tree/master/VtuneProfiler/matrix_multiply_vtune

 

 

shekhar__gaurav
Einsteiger
12.164Aufrufe

Hi, 

That is working fine. I tried with the sample example that packaged with VTune. I got the following outputs.

JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Thanks for the immediate response.

Seems like your CPU based analysis is working fine.Did you try that code sample for GPU offload?

If not, try that and send the screenshot.

shekhar__gaurav
Einsteiger
12.164Aufrufe

Hi,

I tried that just now and found the same error as my application.

JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Thanks for the update.

This happens when application invokes other processes for which the user does not have read privileges ,so before running GPU offload uncheck the "Analyze child processes" option in the what pane in Vtune GUI.

Let us know if the issue persists.

shekhar__gaurav
Einsteiger
12.164Aufrufe

Hi,

It gives the same error even after trying the suggested.

shekhar__gaurav
Einsteiger
12.165Aufrufe

Hi,

Is there something else that's causing the issue?

JananiC_Intel
Moderator
12.165Aufrufe

Hi,

Try running self checker script in vtune installed directory.Self checker script is to validate whether the appropriate drivers are installed and system is set up properly to collect performance data.You can find vtune-self-checker.sh script in <install-dir>/bin64. After running self checker script you will get a log file.

Also try in a standalone version and check whether you get the same error.

shekhar__gaurav
Einsteiger
12.165Aufrufe

Hi,

I could not find vtune-self-checker.sh on my system. Is something wrong with my installation?

On running in the standalone version, my .exe gave a crash message and I got the error as in the attached snap.

shekhar__gaurav
Einsteiger
12.165Aufrufe

Hi,

Can someone please help me with this? I am getting no clue.

 

JananiC_Intel
Moderator
12.165Aufrufe

Hi,

We have 2021.1-beta06 and we have self checker script in it.May I know your vtune version?

shekhar__gaurav
Einsteiger
12.165Aufrufe

Hi,

The latest I could find on the website is 2020 update 1, as shown in the image attached. 

I am not sure where to find the version you have.

JananiC_Intel
Moderator
12.165Aufrufe

Hi,

Try installing the latest version of  oneapi basekit for windows(https://dynamicinstaller.intel.com/oneapi/toolkits/base-kit/win/).After installing you will find vtune-self-checker.bat in the path intel/inteloneapi/vtune/bin64 .Run that file and let us know the update.

shekhar__gaurav
Einsteiger
12.164Aufrufe

Hi,

Following are my findings after installing oneapi:

  • matrix.exe crashes after running vtune-self-checker.bat
  • It gives some errors at each step. Snaps attached.
JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Thanks for the update.

Kindly follow the procedures mentioned in the below link, also run vtune as well as command prompt with run as admin and let us know the updates.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/windows-targets/installing-the-sampling-drivers-for-windows-targets.html

JananiC_Intel
Moderator
12.164Aufrufe

Hi,

Has this issue been resolved?Could you please give us an update?

shekhar__gaurav
Einsteiger
11.402Aufrufe

Hi,

Sorry for the delay, I have attached my findings here following the above link.

 

Antworten