Slower execution under linux

Asked by Waleed Khedr about 9 hours ago
Latest activity Edited by Waleed Khedr about 4 hours ago

Using Matlab 2012a under Windows 7..I wrote a code which includes one bottle nick at such line ....

%%%
K=zeros(Np,Np);
for i=1:ord
K=K+sparse(t(1:ord,:),repmat(t(i,:),ord,1),double(subs(Kv(:,i),Arg(Kv,1,1,6),Arg(Kv,1,2,6))),Np,Np);
end
%%%%

Note: Kv is symbolic matrix and Arg is a function that provides OLD and NEW and it uses a number of global variables.

Now, using Matlab 2013.. under ubuntu 12.04.. although the amount of memory consumed is much less but the execution time is extremely higher (80seconds became more than an hour)...why?

What am I missing??

0 Comments

Waleed Khedr

1 Answer

Answer by Jan Simon about 6 hours ago

You compare R2012a/Win with R2013a/Linux. Then different timings are expected. Please post, what "extremely higher" means.

1 Comment

Waleed Khedr about 5 hours ago

it is an algorithm .... so in terms of one iteration:

R2012/win: 80 seconds

R2013/Linux: an hour untill now and not finished.

Jan Simon

Contact us