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

Library APIs are failing with remote vtune

vishnuvardhan_reddy_
484 Views

Hi, 

I am new to "Intel Vtune Amplifier" tool usage and started with "Intel Vtune Amplifier 2013" to analyse sample application programs with Linux.

I am trying to run sample application program remotely on a target machine using vtune. My host & target machines are Linux based.

My application is failed due to failures of Library APIs(for example "open()" is failing as shown below) , but the application is working fine when I executed locally with vtune. 

Given below the sample application that I am trying to run:

===================================================================

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>

int main()
{
    int fd = -1;
    int i = 0;
   
    if ( (fd = open( "/dev/tty", O_RDWR, 0 )) == -1)
    {
        fprintf(stderr, "open() failed with error: %d\n", errno);
    }
    else
    {
        fprintf(stderr, "open() success , returned with fd: %d\n", fd);
    }
}

========================================================================

When I executed above program remotely with vtune, getting the error as "amplxe: Error: target - open() failed with error: 6".

Pasted below the remote vtune command and its console output:

===============================================================================

#/usr/intel/vtune_amplifier_xe_2015/bin64/amplxe-cl -target-system ssh:root@10.138.222.29 --target-install-dir=/usr/intel/vtune_amplifier_xe_2015.1.1.380310 -collect hotspots -run-pass-thru=--no-altstack  -- /tmp/ex10

amplxe: Using target: ssh:root@10.138.222.29
amplxe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: amplxe-cl -r /usr/intel/vtune_amplifier_xe_2015/bin64/r010hs -command stop.
amplxe: Warning: Can't find 32-bit pin tool. 32-bit processes will not be profiled.


amplxe: Collection stopped.
amplxe: Error: target - open() failed with error: 6
amplxe: Copying result directory from the device
amplxe: Copying collection logs from the device.
amplxe: Using result path `/usr/intel/vtune_amplifier_xe_2015/bin64/r010hs'
amplxe: Executing actions 50 % Generating a report

Collection and Platform Info
----------------------------
Parameter                 r010hs
------------------------  -----------------------------------------------------
Application Command Line  /tmp/ex10
Operating System          2.6.32-279.22.1.el6.x86_64 CentOS release 6.3 (Final)
Computer Name             acme29
Result Size               1671428
Collection start time     09:44:29 25/04/2016 UTC
Collection stop time      09:44:59 25/04/2016 UTC

CPU
---
Parameter          r010hs
-----------------  ----------------------------------------------------
Name               Intel(R) microarchitecture code named Haswell Server
Frequency          2294951998
Logical CPU Count  4

Summary
-------
Elapsed Time:  30.003
CPU Time:
amplxe: Executing actions 100 % done

#

================================================================

It looks like many other library APIs are also failing with remote vtune.  

Please let me know if others faced similar issues and what could be the root cause of these library failures.

Thanks & Regards,

Vishnu

 

0 Kudos
2 Replies
Vitaly_S_Intel
Employee
484 Views

This message

amplxe: Warning: Can't find 32-bit pin tool. 32-bit processes will not be profiled.

means that your VTune installation is incomplete. Please uninstall vtune (run uninstall.sh), in case of rpm-based Linux, make sure that the following command returns nothing:

> rpm -qa | grep vtune

Remove VTune folder from /opt/intel, in case it is present here. Then install it again. I also recommend you to switch to 2016 version.

0 Kudos
vishnuvardhan_reddy_
484 Views

Hi Vitaly,

Thanks for the response. I will try with 2016 version as you suggested. 

Thanks,

Vishnu

 

0 Kudos
Reply