Tuesday, 20 December 2016

Steps for installing VTune

a. Go to the Intel VTune amplifier site  https://software.intel.com/en-us/intel-vtune-amplifier-xe 
b.  Click on Join Today button & enter your details to create login. 
c. Download VTune Amplifier tar file & follow the steps below
 
1. Extract the archive to a directory. (using command tar -xvzf vtune_amplifier_xe_2016_update2.tar.gz)
2. Travers upto the directory, run sudo ./install.sh  (root permissions are required).

      i. Press Enter to continue
      ii. Keep pressing Space to scroll to the end of the license agreement, then enter the string 'accept ',  

         then Enter.
      iii. Press 2, then Enter, to select evaluation.

       iv. Press 2, then Enter, to not participate in Intel's   program.     
       v.  Press Enter to continue, wait for it to install.
3. Press Enter to continue. Note down the post install instructions. There should be a line saying
    bash users: source /opt/intel/vtune_amplifier_xe_2016.2.0.444464/amplxevars.sh  `. Version number may  be different . Copy that string from source (for example, source /opt/intel  

      /vtune_amplifier_xe_2016.2.0.444464/amplxe-vars.sh  `).
 4. Open ~/.bashrc in gedit or any text editor. Paste the above line at the end. There should be no    newlines between 'source' and the version, it should be one line. 
5. Run echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
6.. Run amplxe-gui . VTune Amplifier should start. 
7. Select 'New Project'. Enter any project name.
8. There should be two tabs in the right panel – Analysis Target and Analysis Type. 

9. In Analysis Target, in Application, browse for the output file to your program (a.out). 
10. In Analysis Type, select Advanced Hotspots. Hit Start. 
11. Your program will execute. In case it requires input, look at the terminal from which you started VTune and enter it there. After the program executes, you will get a detailed report.

No comments:

Post a Comment