|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: OPR-computation-related linear algebra problem
Thanks flameout.
Quote:
Just installed SciLab 5.4.1 with Intel Math Kernel Library 10.3 on a 7-year-old desktop PC:
Code:
-->stacksize(70000000);
-->tic; N=read("N.dat",2509,2509); toc
ans = 1.672
-->d=read("d.dat",2509,1);
-->tic; x=N\d; toc
ans = 1.672
-->tic; Ns=sparse(N); toc
ans = 0.141
-->tic(); xs = umfpack(Ns,'\',d); toc
ans = 0.14
Last edited by Ether : 26-05-2013 at 20:33. |
|
#2
|
|||
|
|||
|
Re: OPR-computation-related linear algebra problem
Quote:
MATLAB R2012b: Code:
>> tic ; N = dlmread('N.dat'); toc
Elapsed time is 3.074810 seconds.
>> tic ; d = dlmread('d.dat'); toc
Elapsed time is 0.006744 seconds.
>> tic ; r = N \ d; toc
Elapsed time is 0.323021 seconds.
>> tic ; dlmwrite('out.dat', r); toc
Elapsed time is 0.124947 seconds.
GNU Octave 3.6.2: Code:
octave:1> tic ; N = dlmread('N.dat'); toc
Elapsed time is 1.87042 seconds.
octave:2> tic ; d = dlmread('d.dat'); toc
Elapsed time is 0.00241804 seconds.
octave:3> tic ; r = N \ d; toc
Elapsed time is 0.528489 seconds.
octave:4> tic ; dlmwrite('out.dat', r); toc
Elapsed time is 0.00820613 seconds.
Scilab 5.3.3: Code:
-->stacksize(70000000);
-->tic; N=read("N.dat", 2509, 2509); toc
ans =
1.21
-->tic; d=read("d.dat", 2509, 1); toc
ans =
0.003
-->tic; x=N\d; toc
ans =
1.052
-->tic; Ns=sparse(N); toc
ans =
0.081
-->tic(); xs = umfpack(Ns,'\',d); toc
ans =
0.081
FreeMat 4.0: Code:
--> tic ; N = dlmread('N.dat'); toc
ans =
2.8630
--> tic ; d = dlmread('d.dat'); toc
ans =
0.0080
--> tic ; r = N \ d; toc
ans =
3.4270
|
|
#3
|
||||
|
||||
|
Re: OPR-computation-related linear algebra problem
Just installed Octave3.6.4_gcc4.6.2_20130408 on this computer. Results: GNU Octave, version 3.6.4 Anybody know why Octave takes so long to load N ? Load N times, all on the same computer: Delphi....0.6 seconds Last edited by Ether : 30-05-2013 at 21:28. |
|
#4
|
|||
|
|||
|
Re: OPR-computation-related linear algebra problem
LV times were on this computer
Win 7 Professional 64-bit Xeon CPU E5-1620 3.6GHz 16G RAM Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: OPR-computation-related linear algebra problem
Is anybody else running Octave on a machine with 32-bit-XP Pro? Are you having the same 30 second delay for Octave to load, and 90 seconds to load the 12MB N.dat file? |
|
#6
|
||||
|
||||
|
Re: OPR-computation-related linear algebra problem
I can check after work in the lab this evening if no one gets to it first, Ether!
|
|
#7
|
||||
|
||||
|
Re: OPR-computation-related linear algebra problem
Quote:
|
|
#8
|
|||
|
|||
|
Re: OPR-computation-related linear algebra problem
Code:
Welcome to RLaB. New users type `help INTRO'
RLaB version 2.1.05 Copyright (C) 1992-97 Ian Searle
RLaB comes with ABSOLUTELY NO WARRANTY; for details type `help warranty'
This is free software, and you are welcome to redistribute it under
certain conditions; type `help conditions' for details
> tic();
> d=readm("d.dat");
> toc()
21.9
> tic();
> N=readm("N.dat");
> toc()
28.8
> tic();
> x = solve(N,d,"S");
> toc()
34.8
>
Xeon 2.93 Ghz cluster. But this code may not be doing any multithreading. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|