public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [Help-gsl] Speed problem
       [not found] <42944CB0.8030106@paolo.zavarise.name>
@ 2005-05-25 21:09 ` Jochen Küpper
  2005-05-26  0:38   ` Dirk Eddelbuettel
  2005-05-30 14:59   ` C J Kenneth Tan -- OptimaNumerics
  0 siblings, 2 replies; 3+ messages in thread
From: Jochen Küpper @ 2005-05-25 21:09 UTC (permalink / raw)
  To: gsl-discuss

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

Paolo Zavarise <physics@paolo.zavarise.name> writes:

> GSL 1.6 compiled by myself is five/ten time slower than GSL included in 
> ubuntu (1.5.90, same one I think). I've compiled with configure/make, no 
> options, and installed in a non-default dir.

Did you compile with optimizations? If not, try setting CFLAGS, i.e. 
,----
| export CFLAGS="-g -O2 -pipe -Wall"
`----
Best would be to look at the GCC manual...

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Help-gsl] Speed problem
  2005-05-25 21:09 ` [Help-gsl] Speed problem Jochen Küpper
@ 2005-05-26  0:38   ` Dirk Eddelbuettel
  2005-05-30 14:59   ` C J Kenneth Tan -- OptimaNumerics
  1 sibling, 0 replies; 3+ messages in thread
From: Dirk Eddelbuettel @ 2005-05-26  0:38 UTC (permalink / raw)
  To: Jochen Küpper; +Cc: gsl-discuss


On 25 May 2005 at 23:09, Jochen Küpper wrote:
| Paolo Zavarise <physics@paolo.zavarise.name> writes:
| 
| > GSL 1.6 compiled by myself is five/ten time slower than GSL included in 
| > ubuntu (1.5.90, same one I think). I've compiled with configure/make, no 
| > options, and installed in a non-default dir.

Is that a recompiled Ubuntu version, or the "straight" Debian package I
maintain?  In that case, the flags we use are 

DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
endif
[...]
compilerflags	= "-O2 -D_REENTRANT"
[...]
	./configure 	--prefix=/usr 		\
			--enable-shared 	\
			--enable-static 	\
			--with-gnu-ld 		\
			$(CONFARGS)
[...]
	$(MAKE)		CFLAGS=$(compilerflags)			

i.e. it is basically just doing a regular -O2. (-D_REENTRANT is mandated by
Debian Policy as it should make multi-threaded apps behave better, as I
recall, as has no performance implications.)

| Did you compile with optimizations? If not, try setting CFLAGS, i.e. 
| ,----
| | export CFLAGS="-g -O2 -pipe -Wall"
| `----
| Best would be to look at the GCC manual...

Also, what are you using as the benchmark, and how are you comparing this?
On a dual-boot system where you may have Atlas under Ubuntu but not on the
second system? Just a thought.

Dirk

-- 
Statistics: The (futile) attempt to offer certainty about uncertainty.
         -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Help-gsl] Speed problem
  2005-05-25 21:09 ` [Help-gsl] Speed problem Jochen Küpper
  2005-05-26  0:38   ` Dirk Eddelbuettel
@ 2005-05-30 14:59   ` C J Kenneth Tan -- OptimaNumerics
  1 sibling, 0 replies; 3+ messages in thread
From: C J Kenneth Tan -- OptimaNumerics @ 2005-05-30 14:59 UTC (permalink / raw)
  To: Paolo Zavarise; +Cc: Jochen K�pper, gsl-discuss

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1611 bytes --]

Paolo,

What are the operations/functions/routines that you are using?  How
are you measuring performance?  Which platform is this?  


Kenneth Tan
--------------------------------------------------------------------------
News: OptimaNumerics Libraries: Increase Performance on Solaris 10
--------------------------------------------------------------------------
C. J. Kenneth Tan, Ph.D.
OptimaNumerics Ltd.                   Telephone: +44 798 941 7838
E-mail: cjtan@OptimaNumerics.com      Telephone: +44 871 504 3328
Web: http://www.OptimaNumerics.com    Facsimile: +44 289 066 3015 
--------------------------------------------------------------------------


On 2005-05-25 23:09 +0200 Jochen Küpper (jochen@fhi-berlin.mpg.de) wrote:

> Date: Wed, 25 May 2005 23:09:27 +0200
> From: "[iso-8859-1] Jochen Küpper" <jochen@fhi-berlin.mpg.de>
> To: gsl-discuss@sources.redhat.com
> Subject: Re: [Help-gsl] Speed problem
> 
> Paolo Zavarise <physics@paolo.zavarise.name> writes:
> 
> > GSL 1.6 compiled by myself is five/ten time slower than GSL included in 
> > ubuntu (1.5.90, same one I think). I've compiled with configure/make, no 
> > options, and installed in a non-default dir.
> 
> Did you compile with optimizations? If not, try setting CFLAGS, i.e. 
> ,----
> | export CFLAGS="-g -O2 -pipe -Wall"
> `----
> Best would be to look at the GCC manual...
> 
> Greetings,
> Jochen
> -- 
> Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
>     Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
>         (Part 3 you find in my messages before fall 2003.)
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-30 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <42944CB0.8030106@paolo.zavarise.name>
2005-05-25 21:09 ` [Help-gsl] Speed problem Jochen Küpper
2005-05-26  0:38   ` Dirk Eddelbuettel
2005-05-30 14:59   ` C J Kenneth Tan -- OptimaNumerics

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).