Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C/C++ Matlab compiler vs MKL

Is there a significant performance difference between Matlab numerical routines exposed as a C/C++ dll through Matlab mcc versus equivalent routines found in Math Kernel Library?

I'm particularly interested in the performance of linear least square solvers such as ?gels and fourier transform routines.

like image 896
dave Avatar asked Apr 09 '11 20:04

dave


1 Answers

Matlab adds a layer to anything it calls, fftw, lapack, mkl.

If you compile a special version, of whatever code, it will always run faster without the matlab overhead.

If you don't know what you're doing, use built-in libs, if you're an old f77 hacker like me, I write my own routines and only use the built-in libs when I'm feeling lazy or prototyping an algorithm.

like image 180
painter_landscapes Avatar answered Sep 22 '22 10:09

painter_landscapes