- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page