![]() |
Blitz Support : |
From: Navneet Dalal (Navneet.Dalal_at_[hidden])
Date: 2004-03-16 13:43:39
First, blitz is heavliy templated class. So it is completely normal for even
modern m/cs to take time to compile.
Second, Since blitz is written with assumption that compiler will optimize
most things out so it is quite normal that Debug version runs 10 time slower
than optimized version.
Now coming to your problem:
Are you sure that you are not doing anything wrong?
The way to check is :
use -DBZ_DEBUG flag at compile time with -g option.
This will enable all bound checking for all array access. Your code will run
even slower. But it will show you where the problem is. By printing array
access indices.
best of luck
navneet
On Tuesday 16 March 2004 16:47, Daniel Brewer wrote:
> Hi there,
> Yeah I thought as much. The optimisations I am using are:
> -Wall -O3 -mcpu=7450 -mtune=7450 -ftemplate-depth-30
>
> I wonder what is going wrong.
>
> Daniel
>
> On 16 Mar 2004, at 1:33 pm, Xavier WARIN(Compte LOCAL) - I23 wrote:
> > Hi Daniel,
> >
> > Of course, it works with optimization.... on linux and windows.
> > I don't use Mac OS but what kind of compiler do you use ?
> > gcc, Code Warrior ?
> > What options did you try for optimization ?
> >
> > Sincerely
> >
> > Xavier Warin
> >
> > Daniel Brewer wrote:
> >> Hi,
> >> First off congratulations on attempting to produce a fast array class
> >> for C++. I am trying to get this to work with on Mac OS X 10.3 with
> >> an equation/embedded RK framework.
> >> Does Blitz work well with optimisation? The reason I ask is that
> >> with out optimisations and -g it takes reasonably long to compile a
> >> minute or so but works fine (if very slow).
> >> With optimisations though:
> >> 1) It takes hours to compile (G5 with 1GB memory)
> >> 2) It crashes out with a segment fault (even though it did not do
> >> this without optimisation)
> >> I am new to this game so perhaps I am doing something terribly wrong.
> >> I am using inheritence so maybe it is that.
> >> Any opinions would be gratefully received.
> >> Thanks
> >> -- Dan Brewer
> >> http://www.brewer.me.uk
> >> LFS ID: 5309
> >> GPG fingerprint:
> >> D2B6 DE30 530B 6C5D C96B 9506 9A6F F054 299E 1B6C
> >> -- _______________________________________________
> >> Blitz-support mailing list
> >> Blitz-support_at_[hidden]
> >> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
> >
> > _______________________________________________
> > Blitz-support mailing list
> > Blitz-support_at_[hidden]
> > http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
-- Navneet DALAL http://www.inrialpes.fr/lear/Dalal INRIA Rhone-Alpes Ph : +33 (0)476 61 54 97 ZIRST-655, av. de l'Europe - 38334 FAX : +33 (0)476 61 54 54 Montbonnot St. Martin, FRANCE Cell : +33 (0)677 54 33 33