Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ifc and mkl from science overlay
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mwojc
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2005
Posts: 79
Location: Poland

PostPosted: Thu May 31, 2012 11:46 am    Post subject: ifc and mkl from science overlay Reply with quote

hi!

i installed ifc and mkl for science overlay and now i want to switch to the new mkl libraries. however there's a lot of options under eselect:

Code:

# eselect blas list
Available providers for blas:
  [1]   atlas *
  [2]   atlas-threads
  [3]   eigen
  [4]   mkl32-dynamic
  [5]   mkl32-dynamic-openmp
  [6]   mkl32-gfortran
  [7]   mkl32-gfortran-openmp
  [8]   mkl32-intel
  [9]   mkl32-intel-openmp
  [10]  mkl64-dynamic
  [11]  mkl64-dynamic-openmp
  [12]  mkl64-gfortran
  [13]  mkl64-gfortran-openmp
  [14]  mkl64-int64-dynamic
  [15]  mkl64-int64-dynamic-openmp
  [16]  mkl64-int64-gfortran
  [17]  mkl64-int64-gfortran-openmp
  [18]  mkl64-int64-intel
  [19]  mkl64-int64-intel-openmp
  [20]  mkl64-intel
  [21]  mkl64-intel-openmp


Which mkl should i use? I have 64-bit intel i7 quad core + ht.

thanks,
marek
_________________
gentoo@thinkpad
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Thu May 31, 2012 12:37 pm    Post subject: Reply with quote

Hrmmm... are you sure you WANT to use MKL ?

Well I mean that if you had a good reason for using it, then I think you should know the answer because these choices just match the mkl layered model.

For example : whatever / whatever-openmp refers to the threading layer : Is the choice between the sequential version and the threaded one.
What you should use does not really depends on the fact you get an Intel whatever hyperthreaded.
I depends on what you are going to link the libraries with.
For instance, if you are going to link with object-files built with a non Intel compiler, you might get into troubles with the threading layer.

whatever / whatever-int64 refers to the interface layer : This one will enable very big arrays.

whatever / whatever-dynamic refers to static / dynamic linking.

Once you know everything you need, you can just select the correct association, that is the layers you need to to implement.

MKL is not only Intel specific. It is a very very specific implementation. I would really not recommend it to beginners or to users who just need something to fill a dependency on blas. (No disrespect meant)

The other answer is :

Chose : mkl64-int64-dynamic-openmp !

Then go on and if it does not work then... try mkl64-int64-dynamic... then... try the others... :P
Then... incidentally... come back to Atlas-Thread ! :twisted:
_________________
Back to top
View user's profile Send private message
mwojc
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2005
Posts: 79
Location: Poland

PostPosted: Thu May 31, 2012 6:21 pm    Post subject: Reply with quote

i wanted to compile numpy/scipy against MKL - i found some info that many functions are then faster...

but this is not easy to set up things. switching to mkl profiles allows numpy to compile, but it cannot be imported in python console because of some linking problems. simple setting up LD_LIBRAY_PATH does not help. i found that libiomp5.so should be provided at compiling and linking time. this is not done automatically by numpy ebuild so the ebuild shuold be modified. also, as you said, numpy should be compiled with icc, so again ebuild have to be modified... or, obviously, one can compile everything by hand.

i ended up with *atlas-pthread* profile and recompilation of numpy. it turned out that solving linear system of equations with numpy.linalg.solve is twice as fast as with *atlas* profile. actually i obtained the same speed-up for manually compiled numpy with MKL and icc...

regards
_________________
gentoo@thinkpad
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum