I am attempting to get VTune Amplifier working to the point where I can collect data on a Linux system and view the results on my windows system. I have VTune installed on my windows box and am able to use it to attach to processes and perform Hotspot analysis. However I am having trouble doing the same on Linux. I have downloaded the trial version of VTune Amplifier XE for linux in order to use the CLI for collecting data. I believe that it is not necessary to have a full Linux license in order to do this, is this correct?
So this is what I have done so far:
1. Written a short program called helloworld in VS2010 that simply runs in a loop for a period of time (a couple of minutes).
2. Compiled this on VS2010 and gcc 4.1.2.
3. Started helloworld from the command line on windows.
4. In the VTune GUI, created a project called HelloWorld and pointed it at the helloworld.exe process. It recognises the process name and attaches no problem.
5. 10 seconds later data collection stops, the results are finalised and displayed on the screen.
Amplifier has no support for gcc on Windows. You would be able to analyze a gcc project only on linux. libgomp from gcc 4.1 may be unsatisfactory. If you are analyzing a "hello world" which requires OpenMP, a more recent gcc should be better. The oldest gcc with any current support is 4.4. You must take care that only one OpenMP library is linked into your application.
Your workflow should be correct (run on Linux w/o license, copy result directory to Windows, open on Windows). (What Tim referred to as not supported is analyzing results where the executable is compiled with gcc on Windows).
What version of Amplifier XE are you using (is the same on Linux and Windows? If the version on Linux is newer the version on Windows, there could possibly be trouble opening the results on Windows) Also, what version of Linux?
You could also try an example w/o OpenMP and see if that works, and/or try launching the executable directly (without attaching): amplxe-cl -collect hotspots -result-dir /tmp/vtune helloworld