Will upgrading matlab from 2009b to 2015 improve performance of mex Funtions?
Mostrar comentarios más antiguos
I am currently using Matlab 2009b to run optimizations based on mex code. The time spent in numerous calls to mex function is more than 95%. I am currently using cygwin64 compiler on windows machine, which is setup using gnumex.
I want to know if there will be noticeable decrease in optimization time if I upgrade my matlab to 2015.
The release notes at matlab (<http://in.mathworks.com/help/matlab/release-notes.html>) mentions several performance improvements over the course of various release but if somebody can quantify it, it can be useful to make my decision.
1 comentario
Ken Atwell
el 13 de Mayo de 2015
As James states below, the performance of MEX files is determined by your compiler and not MATLAB itself. So I'm guessing you would not see much of a difference.
Out of curiosity, have you tried building your MEX Files with Visual Studio or, if you have access to it, Intel C++? They would at least be worth experimenting with to see if they perform differently.
Respuestas (1)
James Tursa
el 12 de Mayo de 2015
1 voto
The speed of your mex routines will likely depend mostly on the compiler you are using, and not the MATLAB version you are using. So unless your mex routines are making extensive use of callbacks into MATLAB (e.g., mexCallMATLAB) and calling specific functions that have been improved for speed, I would not expect much speedup simply by changing MATLAB versions.
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!