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

Problems with VTune

runborg
Beginner
434 Views

I am trying to identify some slow spots in my code. I am trying to get VTune working but keep running into problems. I am trying the matrix multiplication sample until I can do something more useful. I have tried running as admin without success.

 

Running on Version Windows 11 10.0.26100 Build 26100

 

With the GUI, the program jsut seems to hang. With CLI, I am getting:

```

vtune -collect hotspots -- matrix.exe
vtune: Collection started. To stop the collection, either press CTRL-C or enter from another console window: vtune -r C:\Users\jer-admin\Documents\VTune\Samples\matrix\r000hs -command stop.
vtune: Error: [Instrumentation Engine]: [tid:52700] SYSCALL_INSPECTOR: NTDLL module is rebased C:\tmp_proj\pinjen\workspace\pypl-pin-nightly\GitPin\Source\pin\base_w\ipc_server_windows.cpp: LEVEL_BASE::StartServer: 1283: assertion failed: res == TRUE
vtune: Collection failed.
vtune: Internal Error

```

The self-checker never seems to complete. It just hangs here:

```

"C:\Program Files (x86)\intel\oneAPI\vtune\latest\bin64\vtune-self-checker.bat"
Intel(R) VTune(TM) Profiler Self Check Utility
Copyright (C) 2009 Intel Corporation. All rights reserved.
Build Number: 625246

HW event-based analysis (counting mode) (Intel driver)
Example of analysis types: Performance Snapshot
Collection: Ok
Finalization: Ok...
Report: Ok

Instrumentation based analysis check...

```

Labels (1)
0 Kudos
3 Replies
yuzhang3_intel
Moderator
407 Views

From the log, instrumentation failed, you can try the latest VTune release or use hardware event-based sampling mode instead:

vtune -collect hotspots -knob sampling-mode=hw -- your application

 

vtune: Error: [Instrumentation Engine]: [tid:52700] SYSCALL_INSPECTOR: NTDLL module is rebased C:\tmp_proj\pinjen\workspace\pypl-pin-nightly\GitPin\Source\pin\base_w\ipc_server_windows.cpp: LEVEL_BASE::StartServer: 1283: assertion failed: res == TRUE

runborg
Beginner
282 Views

I got it working with hardware event-based sampling, but the call stack is just memory addresses which is useless...is there a way to use this tool and get useful profiling information?

runborg_0-1743034663020.png

 

0 Kudos
yuzhang3_intel
Moderator
273 Views

First, you need to add some options in your command line, and the application should be a debug version.

$ vtune -collect hotspots -knob sampling-mode=hw  -knob enable-stack-collection=true  -- your application

 

Second, specify the binary and source directories:

https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2025-1/dialog-box-binary-symbol-search.html

https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2025-1/dialog-box-source-search.html

 

0 Kudos
Reply