Wednesday, December 17, 2008

Installing Intel ICC on Gentoo x86_64

  1. Go to http://www.intel.com/cd/software/products/asmo-na/eng/compilers/284264.htm, ask for evaluation.
  2. Download compiler package. It is ~600MB (!). Get email from intel with license, save it.
  3. Unpack huge package file. Now I don't remember how I did it, I think it was tar.gz.
  4. Whatever I did, I was not able to install it with install.sh. It coud not recognize my 32bit libstc++.so.5. I am sure it was fine. Even test inside install.sh:
/sbin/ldconfig -p | grep libstdc++.so.5 | grep x86-64

recognized it. But there was also some binary which did not.

I was able to do this installing rpm file directly. So (on gentoo), emerge rpm package. Then do:
rpm -i --nodeps intel-cproc110074e-11.0-1.x86_64.rpm

Almost done. copy license file into
/opt/intel/Compiler/11.0/074/bin/intel64/

Executable bin/icc won't work - it is just shall wrapper with unexpanded macros. Don't warry, binary bin/iccbin know all needed pathes. I just renmaed iccbin to icc.

Last step: add bin dir to your PATH:
PATH+=:/opt/intel/Compiler/11.0/074/bin/intel64

Version 11 is greate, total time of benchmark of my app went from 116s on ICC-10 to 66s ICC-11. GCC 63s.