Difference between revisions of "VTune"

From ArchWiki
Jump to: navigation, search
m (Don't recommend 3rd party repositories.)
Line 14: Line 14:
 
* download VTune Amplifier XE 2011 (there is a [http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=13574&lang=eng free version] for non-commercial use on linux)
 
* download VTune Amplifier XE 2011 (there is a [http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=13574&lang=eng free version] for non-commercial use on linux)
 
* unpack the tarball
 
* unpack the tarball
* install libpng12 (either from AUR or from archlinux.fr repo)
+
* install libpng12 from AUR
 
* install libjpeg6 from AUR
 
* install libjpeg6 from AUR
 
* install rpmextract from extra repo
 
* install rpmextract from extra repo

Revision as of 11:20, 6 January 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

VTune Amplifier XE 2011

Starting with update 7 of the VTune Amplifier XE 2011, you can now use it on Linux 3.x and hence on Archlinux, even though the latter is not officially supported. See also: VTune on Archlinux

Installing VTune

using the following HOWTO you "install" VTune locally and can run it. This does not (yet?) include the steps to build the kernel modules. Nevertheless, VTune in user mode is already very powerful and comes with lots of possibilities for profiling. Have fun!

preparation:

  • download VTune Amplifier XE 2011 (there is a free version for non-commercial use on linux)
  • unpack the tarball
  • install libpng12 from AUR
  • install libjpeg6 from AUR
  • install rpmextract from extra repo

now to "install" vtune:

cd vtune_amplifier_xe_2011_update7
find -name "*.rpm" -exec rpmextract.sh {} \;

you can now start vtune:

./opt/intel/vtune_amplifier_xe_2011/bin64/amplxe-gui

for ease-of-use I suggest you move the ./opt/intel/vtune_amplifier_xe_2011 to your homefolder or similar and add a symlink to the amplxe-gui binary to one of your PATH folders or similar.

VTune 9.1

Installing Intel VTune 9.1 on Arch Linux

Installing VTune

  • download VTune
  • download patch
  • unpack VTune and patch its scripts
  • install rpm from AUR/rpm4 or sergej-repo
  • do rpm --initdb
  • run VTune installer

Installing driver

(VTune does not work on my 2.6.31 kernel, so you may be need to install kernel26-lts)

  • download driver patch
  • copy the driver sources from /opt/intel/vtune/vdk/src to a new directory and patch them.
  • do ./configure and make
    • if your build fails with 'the frame size of 1140 bytes is larger than 1024 bytes', append -Wframe-larger-than=2048 to EXTRA_CFLAGS in Makefile
  • cp vtune_drv*.ko /lib/modules/misc/vtune_drv.ko # copy the module to the kernel modules directory
  • depmod -AeF /boot/System.map26 #rebuild module maps and resolve symbols
  • modprobe vtune_drv #activate the module
    • As of kernel 2.6.31 there was an api change, find_task_by_pid_ns() cannot be found. The only recourse is to downgrade your kernel to 2.6.30 or to wait for Intel to update the driver source code. If someone has a patch that resolves the issue you can post it here.