From: Carl Sandström on 28 Mar 2010 14:14 Hi! I am currently investigating the accelerator in Matlab as a part of an assignment in a course. I wanted to see the difference in time consumed for some calculation with and without the accelerator. So, using google I found out that one should be able to turn the accelerator off using "feature ('JIT',0)" and on using "feature ('JIT',1)". However, I also found that one could use the command "feature ('accel', 'off')" and "feature ('accel', 'on')". The results when using these commands are somewhat puzzling as they generate different times. When using "feature ('accel', 'off')", my small test program takes 4.7s both with and without the JIT accelerator. When I use the "feature ('accel', 'on')", the test program takes 0.309171s to finish with the JIT accelerator and when the JIT accelerator is on, 0.018668s. Thus, one can conclude that there are more than one accelerator working, and "feature ('accel', 'off')" turns them all off, whereas when 'accel' is set to 'on', the user can specify which accelerators are user. Consequently, my question is; what other accelerators can I turn on/off using the feature command? I am using Matlab R2008a. /Carl
|
Pages: 1 Prev: LHS of variable length in mex function Next: XLSWrite on a Mac--writing to next empty cell? |