Quantcast
Channel: Fortran
Viewing all articles
Browse latest Browse all 3108

How to quickly use remote data collection for VTune(TM) Amplifier XE?

$
0
0

Background
VTune™ Amplifier XE provides data collector, command line, Graphic User Interface components. Some systems have no GUI supported (no GNU* X11 libraries installed, may act as target device with customized operation system, etc), so only data collector and command line of VTune Amplifier XE are installed in these systems. In such case, the user can use amplxe-cl to collect performance data on the target then manually copy result directory to the host for analyzing, but it is inconvenient. Remote data collection of VTune Amplifier supports to collect data on the target from the host (which automatically transfers the result directory to the host), and analyze the result quickly.

What should we do on the target (Linux)?
1.    Install VTune Amplifier XE on the target, except GUI component.
2.    Ensure vtune drivers are up, check “lsmod sep | pax | vtsspp”. If not, go to $VTune_Amplifier_XE/sepdk/src, build/install vtune drivers
3.    Use “ssh-keygen –t rsa” to create two files: id_rsa, id_rsa.pub under $user/.ssh
4.    >cat $user/.ssh/id_rsa.pub >>  $user/.ssh/authorized_keys   

What should we do if you work on the host (Linux)?
(Importance: if you have existing id_rsa, id_rsa.pub, authorized_keys under $user/.ssh, please erase them to avoid conflicting!)
1.    Do “scp target_machine:/$user/.ssh/id_rsa $user/.ssh”
2.    Verify, if you can ssh target_machine without password prompt.
3.    Now you can run an application on the target from the hosts
> ssh $user@hsw-ep01 /home/peter/problem_report/primes (hsw-ep01 is my target machine)
/home/peter/problem_report/primes: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
The reason is that user has to set right environment on the target. In this case, compiler’s shared library named libiomp5.so cannot be found because the application runs OpenMP* library. Use primes.sh script –
#!/bin/sh
source /opt/intel/compilers_and_libraries_2016/linux/bin/compilervars.sh intel64
/home/peter/problem_report/primes

There is no problem run application on the target from the host.
>ssh $user@hsw-ep01 /home/peter/problem_report/primes.sh
4.    Now we can run VTune with application on the target from the host, for example:
> amplxe-cl -target-system=ssh:$user@hsw-ep01 -c advanced-hotspots -knob collection-detail=stack-and-callcount -- /home/peter/problem_report/primes.sh
And, you can use “amplxe-cl –R hotspots” to view result on the host.

What should we do if you work on the host (Windows)?
1.    Run puttygen.exe, use all default settings to click “Generate” button. Then click on “Save private key”. For example, save private key in file c:\putty\peter.ppk
2.    Copy the public key (contents), and paste (append) to $user/.ssh/authorized_keys on the target.
3.    Run putty.exe, create a new session for specific Host Name(IP) for the target, click on \Connection\SSH\Auth to add .ppk file in “Private key file for authentication:” (here my file is c:\putty\peter.ppk). Save these changes in this session. Now we can try to connect to the target by using putty, if there is no password prompt, it means we succeeded of using private key to access the target which saved public key of the host.
4.    Same as Linux host, we can connect to the target to collect data in cmd, for example:
C:\temp>amplxe-cl -target-system=ssh:root@hsw-ep01 -target-install-dir=/opt/inte
l/vtune_amplifier_xe_2016 -c advanced-hotspots -knob collection-detail=stack-and
-callcount -- /home/peter/problem_report/primes.sh

Notice: VTune Amplifier XE should have same version both on the target and the host.

  • VTune Amplifier Remote Data Collection
  • Image de l’icône: 

  • Intel® VTune™ Amplifier
  • C/C++
  • Fortran
  • PC portable
  • Serveur
  • Bureau
  • Professionnel
  • Étudiants
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8.x
  • Inclure dans RSS: 

    1
  • Débutant
  • Intermédiaire

  • Viewing all articles
    Browse latest Browse all 3108

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>