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

VTune fails with data file corrupted msg when started paused

AONym
New Contributor II
1,402 Views

I have lengthy C++ code, and I want profiling for just one part. I have

// CODE-takes several minutes

__itt_resume();

// CODE TO BE PROFILED

__itt_pause();

// MORE CODE

I start VTune with data collection paused. Almost immediately I get the message shown in the attached. Collection stops well before the code to be profiled has been reached.

What do I need to do to get my code profiled?

64-bit Windows 10, VS2022. Project is native C++, 64-bit release build.

 

 

0 Kudos
5 Replies
RemyaP_Intel
Employee
1,343 Views

Hi,

 

Thank you for posting in Intel communities. 

 

We recommend increasing application execution time (i.e. make it run longer) or specifying a lower sampling rate in your project settings

 

Also, you can refer to the solution in the troubleshooting guide here.

And, you can find some configuration guides here and here

 

Please try out the above-suggested methods. If you are still facing issues, kindly get back to us with the below details:

 

1. Processor details

 

2. Sample reproducer code(A code similar to your code that replicates the issue) on which you are performing the analysis.

 

3. The exact steps you followed and the type of analysis you are performing.

 

4. The output of the self-checker logs. This can be obtained by running the below command:

In Linux:

 

<VTune_installation_directory>\bin64\vtune-self-checker.sh

 

   example: /opt/intel/oneapi/vtune/2023.0.0/bin64/vtune-self-checker.sh

In Windows:

 

<VTune_installation_directory>\bin64\vtune-self-checker.bat

 

 

Otherwise, if this resolves your issue, please make sure to accept this as a solution. This would help others with similar issues. Thank you!

 

 

Regards,

Remya Premdas

 

0 Kudos
AONym
New Contributor II
1,315 Views

I have created a sample app based on the code sample I showed (solution attached). I started data collection delayed. It produces the following Collection log ( (( )) are my annotations):

Data collection is completed with warnings

Aug 18 2023 11:36:22 The result file 'C:\Users\Goedel\source\repos\VTune delayed start test\Intel® VTune™ Profiler Results\VTune delayed start test\r001hs\r001hs.vtune' is created and added to the project . Please see warning messages for details.

((ERROR 1))Pause command is not supported for managed code profiling. Runtime overhead is still possible. Data size limit may be exceeded.
 
 

Finalization completed with warnings

Aug 18 2023 11:36:27 Result finalization has completed with warnings that may affect the representation of the analysis data. Please see details below.

((ERROR 2))Cannot locate debugging information for file `C:\Program Files (x86)\Intel\oneAPI\vtune\2023.2.0\bin64\runtime\ittnotify_collector.dll'.
((ERROR 1)) I am not using managed code. I don't know of what relevance ((ERROR 2)) is. The summary says "No data to show. The collected data is not sufficient", and the other pages (Bottom-up, etc) are all empty.
 

Your command for self-checker does not work on a Windows system. Instead, I used

"C:\Program Files (x86)\Intel\oneAPI\vtune\2023.2.0\bin64\vtune-self-checker.bat"

The result of this is attached.

 

Processor is Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz, 3001 Mhz, 18 Core(s), 36 Logical Processor(s), 256 GB RAM. Using Visual Studio 2022 Version 17.6.5.

0 Kudos
RemyaP_Intel
Employee
1,261 Views

Hi,

 

We were unable to reproduce the issue from our end for the sample which you have shared. 

 

Have you opened VTune in administrator mode for running the analysis? If not, we suggest you open VTune as an administrator (right-click on Intel VTune> Run as administrator) and run the same analysis for the same sample and see if you are getting this error

 

Also, from the self_checker_logs shared, we see that most of the HW event-based analyses are failing. This could be because you are not running the command in admin mode. In order to do this, 

  • open a command prompt in admin mode(right click on command prompt> Run as administrator)

RemyaP_Intel_0-1692884161743.png

  • Source the oneAPI variables using the below command:

C:\Program Files (x86)\Intel\oneAPI>setvars.bat --force

RemyaP_Intel_3-1692885135917.png

  • check if the drivers are loaded correctly, using the below commands:

C:\Program Files (x86)\Intel\oneAPI\vtune\latest\bin64>amplxe-sepreg.exe -s

C:\Program Files (x86)\Intel\oneAPI\vtune\latest\bin64>amplxe-sepreg.exe -i

RemyaP_Intel_2-1692884395115.png

(No errors would be present if the drivers are loaded correctly)

  • Run the command for getting the self-checker logs

 

"C:\Program Files (x86)\Intel\oneAPI\vtune\2023.2.0\bin64\vtune-self-checker.bat"

 

 

If running the analysis in VTune admin mode is still throwing errors, then please share with us the self-checker logs by following the above steps.

 

Otherwise, If this resolves your issue, make sure to accept this as a solution. This would help others with similar issues. Thank you!

 

Regards,

Remya Premdas

0 Kudos
RemyaP_Intel
Employee
1,187 Views

Hi,


We haven't heard back from you. Is your issue resolved?


Regards,

Remya Premdas


0 Kudos
RemyaP_Intel
Employee
1,140 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel


Regards,

Remya Premdas


0 Kudos
Reply