This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Speed Problem with GSL VC Version
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: "Liu, Li" <qin_li at swbell dot net>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sun, 17 Mar 2002 11:46:17 +0000 (GMT)
- Subject: Re: Speed Problem with GSL VC Version
- References: <BFEALMFOEJGPJDMGMJHMKENLCAAA.qin_li@swbell.net>
Liu, Li writes:
> Hi:
> I have implemented a matrix multiplication program with some GSL Matrix
> functions.
> My Matrix' size is 500 * 500.
> At Linux, it takes only 0.8 seconds, and SAS takes 3.1 seconds.
> At PC, SAS still takes 3.1 seconds, but my program takes 3.7 seconds!
> I already modified the result with the different CPU speeds of two machines.
> Is there so huge difference for GSL between Unix and Win32?
I expect the difference is due to different compilation options.
You didn't mention what function you used to multiply the matrices
though, so I can't say which options are involved, but it is probably
those for inlining and runtime range-checking.
The recommended matrix-multiply function in GSL is the BLAS function
gsl_blas_dgemm -- it can be replaced by the high-performance ATLAS
library if it's not fast enough.
regards,
Brian