- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to use VTune Amplifier XE 2015 to analysis application on Xeon Phi in the native mode. I followed the steps illustrated in the following link: https://software.intel.com/en-us/articles/how-to-analyze-xeon-phi-coprocessor-applications-using-intel-vtune-amplifier-xe-2015. ; Without VTune, the application on Xeon Phi '/tmp/matrix.mic' uses about 30s. With VTune, the elapsed time is almost zero, e.g., 0.193s, and it seems the VTune has not actually run the application. Can anyone help me figure out this problem?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kevin,
I suspect you would have told me this if you had, but did you see any error messages at any time? You might also want to check dmesg on the host - and also /var/log/messages for around the time you were trying to run the program. Also, how are you measuring time?
Two thoughts come to me off the top of my head -
Did you install the Intel® VTune™ Amplifier XE before or after you installed the MPSS? In particular, do you have configuration files in /etc/mpss/conf.d? (amplxe.conf itt.conf sep.conf vtsspp.conf). If not, you will need to reinstall Vtune.
Have you tried making your executable and data files world readable? When you run a program using offload or using micnativeloadex, it runs as micuser, not as you. I'm not sure if Vtune works the same way or if it runs the code as you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
Have you compiled your matrix app with OpenMP and copied libiomp5.so on the card? If so the problem might be in loading the OpenMP library.
I usually write a script that sets correct LD_LIBRARY_PATH to pick up the .so like:
--------
#!/bin/sh
export LD_LIBRARY_PATH=/tmp:$LD_LIBRARY_PATH
cd /tmp
./matrix.mic
----------
and point the script as application to lauch for VTune. Note in this case you should use -target-system=mic-native (CL) or "Intel Xeon Phi coprocessor (native)" (GUI) targets.
Thanks & Regards, Dmitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Frances Roth (Intel) wrote:
Kevin,
I suspect you would have told me this if you had, but did you see any error messages at any time? You might also want to check dmesg on the host - and also /var/log/messages for around the time you were trying to run the program. Also, how are you measuring time?
Two thoughts come to me off the top of my head -
Did you install the Intel® VTune™ Amplifier XE before or after you installed the MPSS? In particular, do you have configuration files in /etc/mpss/conf.d? (amplxe.conf itt.conf sep.conf vtsspp.conf). If not, you will need to reinstall Vtune.
Have you tried making your executable and data files world readable? When you run a program using offload or using micnativeloadex, it runs as micuser, not as you. I'm not sure if Vtune works the same way or if it runs the code as you.
When I used the VTune, there were warnings as: "cannot locate file 'dma_module.ko' "; "cannot locate file '/usr/lib/debug/lib/modules/2.6.38.8+mpss3.4.1/vmlinux' ".
Yes, there are configuration files (amplxe.conf itt.conf sep.conf vtsspp.conf) in /etc/mpss/conf.d.
I do not using offload or micnativeloadex. The way I run the program is compiling the code in host and copying the executable file to Xeon Phi, as is illustrated in the link I provided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dmitry-prohorov (Intel) wrote:
Hello Kevin,
Have you compiled your matrix app with OpenMP and copied libiomp5.so on the card? If so the problem might be in loading the OpenMP library.
I usually write a script that sets correct LD_LIBRARY_PATH to pick up the .so like:
--------
#!/bin/sh
export LD_LIBRARY_PATH=/tmp:$LD_LIBRARY_PATH
cd /tmp
./matrix.mic
----------
and point the script as application to lauch for VTune. Note in this case you should use -target-system=mic-native (CL) or "Intel Xeon Phi coprocessor (native)" (GUI) targets.
Thanks & Regards, Dmitry
The problem should not be the OpenMP library, because the application matrix.mic can run on Phi without VTune, and I actually have copied the library files to Phi and set the LD_LIBRARY_PATH on Phi to point to the library files as you indicated.
Yes, when I use VTune-gui, I have configured Intel Xeon Phi coprocessor (native) target system, just as the link I provided above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if it's the same, but I had something similar happen a while back:
https://software.intel.com/en-us/forums/topic/537382#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kevin,
Do you have any messages in VTune output during the application runtime that can help us to explore on the problem?
Also - could you please check another simple application e.g. /bin/ls on a directory that has files to see that /bin/ls worked fine and there was expected output?
The warnings on cannot locate files for kernel modules or symbols for vmlinux are a kind of expected and not harmful.
Thanks & Regards, Dmitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear ALL.
I have the same question with Kevin. as
amplxe: Warning: Cannot locate debugging symbols for file `/tmp/amplxe-tmp-rthong/modules.mic-native_/ld-2.14.90.so/d09160980072560a4e7ebb0a66dbd2ba/ld-2.14.90.so'.
amplxe: Warning: Cannot locate file `/usr/lib/debug/lib/modules/2.6.38.8+mpss3.4.1/vmlinux'.
if solved could you tell how to do that.
Thanks and Regards

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page