- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try to integrate the ITT API into our application. It works well and the tasks, counters and frames show up if I start the application through VTune. However, when attaching VTune to a running instance of the application, no tasks, counters or frames of ITT show up. I also haven't found any information about this regard on the internet.
A minimal example of how we use the ITT API is shown by the attached main.cpp. The command-line looks as follows:
"<Path/To>/amplxe-cl" -collect-with runss -knob cpu-samples-mode=stack -knob accurate-cpu-time-detection=false -knob signals-mode=stack -knob io-mode=stack -knob enable-user-tasks=true -knob stack-stitching=false --target-process <process>
(Obviously replacing <Path/To> and <process> with the correct values)
The Windows Version I tested this on is Windows 7 Enterprise 64-Bit - Service Pack 1 (Version 6.1.7601) with an Intel Coure i7-4770. Also using VTune 2018 Update 3 (build 559005) with the included version of ITT as well as the version available in https://github.com/intel/IntelSEAPI/tree/master/ittnotify.
Appreciating your help.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bennet,
To collect itt tasks in attach mode, you need to set INTEL_LIBITTNOTIFY
environment variable before the application run. For more information please see: https://software.intel.com/en-us/vtune-amplifier-help-attaching-itt-apis-to-a-launched-application
Do you set it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. That's easy enough.Though I used your sites as I reference, I completly missed this chapter. With the correct environment it works.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page