help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to speed up Octave


From: Trond Eivind Glomsrod
Subject: Re: How to speed up Octave
Date: 20 Jun 2001 22:09:49 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.103

Dmitri A Sergatskov <address@hidden> writes:

> On 20 Jun 2001, Trond Eivind Glomsrod wrote:
> 
> > > | tic;A=rand(20,20000);B=svd(A);toc
> > > | tic;A=rand(2000,2000);B=prod(A);toc
> > > | tic;A=rand(1000,1000);B=inv(A)*A;toc
> > >
> > > I believe all of these operations involve calls to lapack and/or blas
> > > libraries.  If you use a recent development version of Octave linked
> > > with the atlas libraries, then you will probably see some improvement.
> >
> > I just tried this on a Dual PIII 733 system, 256 MB RDRAM with Red Hat 
> > Linux 7.1 and atlas
> > configured for this machine ("make config" run locally, standard options 
> > except don't use
> > -omit-frame-pointer and  add "-march=i386 -mcpu=i686"), gcc 2.96RH.
> >
> > - the first test was on average 14% faster with Atlas. In the second test, 
> > atlas didn't matter.
> > The third test was the only one showing a real gain: Just above 40% faster 
> > with Atlas.
> 
> Did you do timing together with 'rand'? It may give a significant offset.

Yes, but I made 10 runs of each (and apart from the first run of each function, 
the
results were very similar on different runs)

-- 
Trond Eivind Glomsrød
Red Hat, Inc.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]