Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

performance of svd

Bo_Q_
Beginner
442 Views

Hi,

I have a program written with both matlab and fortran. The main component of the program is a loop and in each loop there is a svd and some simple calculations. I profile the matlab program and it tells me majority of the time is spent in the svds.

The fortran program was written in the hope that it can greatly speedup the computation. But to my surprise, the two programs use roughly the same time to finish. They both uses about 80% cpu of the computer.

Has anyone has such experience? Should I recalibrate my expectations about fortran?

Thanks!!!

 

Bo

0 Kudos
1 Reply
mecej4
Honored Contributor III
442 Views

Depending on which versions of Matlab and Fortran you used, it could very well have happened that the SVD calculation was performed inside an MKL DLL, perhaps the same Lapack routine, e.g. DGESVD. If so, since most of the Lapack routines in MKL were written in Fortran, that the timings were similar should not be surprising.

0 Kudos
Reply