POV-Ray : Newsgroups : povray.unix : GCC 3.1.1 Athlon Optimized Build Server Time
23 Dec 2024 19:37:50 EST (-0500)
  GCC 3.1.1 Athlon Optimized Build (Message 1 to 9 of 9)  
From: Ken Cecka
Subject: GCC 3.1.1 Athlon Optimized Build
Date: 3 Aug 2002 22:21:27
Message: <3d4c8fa7@news.povray.org>
Coming in on the heels of everyone else's compiling woes and optimized 
builds, I just got around to doing my own, and thought I'd post my results.  
I don't have the official linux build or the windows build installed to do 
comparisons with, but I did a default build and an optimized build, and 
have results for each on my system:

povray.unopt +a0.3 +w320 +h240 +v +D +ibenchmark.pov
Time For Parse:    0 hours  0 minutes   6.0 seconds (6 seconds)
Time For Photon:   0 hours  3 minutes   2.0 seconds (182 seconds)
Time For Trace:    1 hours  4 minutes  41.0 seconds (3881 seconds)
    Total Time:    1 hours  7 minutes  49.0 seconds (4069 seconds)

povray +a0.3 +w320 +h240 +v +D +ibenchmark.pov
Time For Parse:    0 hours  0 minutes   4.0 seconds (4 seconds)
Time For Photon:   0 hours  1 minutes  30.0 seconds (90 seconds)
Time For Trace:    0 hours 34 minutes  54.0 seconds (2094 seconds)
    Total Time:    0 hours 36 minutes  28.0 seconds (2188 seconds)

Quite a significant improvement!  OK, so this sucks compared to you Athlon 
XP 1900 people, but I'm quite happy with it on my Athlon tbird 1.1 GHz.  
Some notes on the build:
- Hadn't read the thread on the min/max problem, so I ended up changing all 
calls to min/max to fmin/fmax, and calls to min3/max3 to 
fmin(fmin(),)/fmax(fmax(),).
- Configured as follows based on random suggestions scattered across usenet: 
CXX='/usr/local/gcc-3.1.1/bin/g++ -O3 -march=athlon-tbird 
-mcpu=athlon-tbird -fomit-frame-pointer -falign-functions=6 -funroll-loops 
-ffast-math -malign-double -m3dnow -mmmx' LDFLAGS='-static' ./configure

Note that I linked this as a static binary so if anyone else wants to give 
it a try, I can put it up for download - just let me know.

Ken

Oh, for reference:

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon(tm) Processor
stepping        : 2
cpu MHz         : 1109.921
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov 
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 2215.11

$ cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  261648384 247451648 14196736  1597440 33746944 153714688
Swap: 388575232 92811264 295763968
MemTotal:       255516 kB
MemFree:         13864 kB
MemShared:        1560 kB
Buffers:         32956 kB
Cached:         132836 kB
SwapCached:      17276 kB
Active:         110336 kB
Inact_dirty:     70904 kB
Inact_clean:      3388 kB
Inact_target:        4 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255516 kB
LowFree:         13864 kB
SwapTotal:      379468 kB
SwapFree:       288832 kB
NrSwapPages:     72208 pages


Post a reply to this message

From: Fabien
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 4 Aug 2002 06:48:33
Message: <3D4D05D3.6060503@caramail.com>
Your flags do not mention SSE instructions. My Duron does not either.
I sometimes get an error with Micha'compile (which includes SSE 
instructions).
I'd like to get my hand on your version to give it a try.


Thanks

Fabien HENON




Ken Cecka wrote:
> Coming in on the heels of everyone else's compiling woes and optimized 
> builds, I just got around to doing my own, and thought I'd post my results.  
> I don't have the official linux build or the windows build installed to do 
> comparisons with, but I did a default build and an optimized build, and 
> have results for each on my system:
> 
> povray.unopt +a0.3 +w320 +h240 +v +D +ibenchmark.pov
> Time For Parse:    0 hours  0 minutes   6.0 seconds (6 seconds)
> Time For Photon:   0 hours  3 minutes   2.0 seconds (182 seconds)
> Time For Trace:    1 hours  4 minutes  41.0 seconds (3881 seconds)
>     Total Time:    1 hours  7 minutes  49.0 seconds (4069 seconds)
> 
> povray +a0.3 +w320 +h240 +v +D +ibenchmark.pov
> Time For Parse:    0 hours  0 minutes   4.0 seconds (4 seconds)
> Time For Photon:   0 hours  1 minutes  30.0 seconds (90 seconds)
> Time For Trace:    0 hours 34 minutes  54.0 seconds (2094 seconds)
>     Total Time:    0 hours 36 minutes  28.0 seconds (2188 seconds)
> 
> Quite a significant improvement!  OK, so this sucks compared to you Athlon 
> XP 1900 people, but I'm quite happy with it on my Athlon tbird 1.1 GHz.  
> Some notes on the build:
> - Hadn't read the thread on the min/max problem, so I ended up changing all 
> calls to min/max to fmin/fmax, and calls to min3/max3 to 
> fmin(fmin(),)/fmax(fmax(),).
> - Configured as follows based on random suggestions scattered across usenet: 
> CXX='/usr/local/gcc-3.1.1/bin/g++ -O3 -march=athlon-tbird 
> -mcpu=athlon-tbird -fomit-frame-pointer -falign-functions=6 -funroll-loops 
> -ffast-math -malign-double -m3dnow -mmmx' LDFLAGS='-static' ./configure
> 
> Note that I linked this as a static binary so if anyone else wants to give 
> it a try, I can put it up for download - just let me know.
> 
> Ken
> 
> Oh, for reference:
> 
> $ cat /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 6
> model           : 4
> model name      : AMD Athlon(tm) Processor
> stepping        : 2
> cpu MHz         : 1109.921
> cache size      : 256 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov 
> pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
> bogomips        : 2215.11
> 
> $ cat /proc/meminfo
>         total:    used:    free:  shared: buffers:  cached:
> Mem:  261648384 247451648 14196736  1597440 33746944 153714688
> Swap: 388575232 92811264 295763968
> MemTotal:       255516 kB
> MemFree:         13864 kB
> MemShared:        1560 kB
> Buffers:         32956 kB
> Cached:         132836 kB
> SwapCached:      17276 kB
> Active:         110336 kB
> Inact_dirty:     70904 kB
> Inact_clean:      3388 kB
> Inact_target:        4 kB
> HighTotal:           0 kB
> HighFree:            0 kB
> LowTotal:       255516 kB
> LowFree:         13864 kB
> SwapTotal:      379468 kB
> SwapFree:       288832 kB
> NrSwapPages:     72208 pages
>


Post a reply to this message

From: Ken Cecka
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 4 Aug 2002 12:18:25
Message: <3d4d53d0@news.povray.org>
From what I understand, SSE support was not added to the Athlons until the 
MP and XP variants.  I'm pretty sure it's not available in the Thunderbird.  
I've posted my build at http://home.attbi.com/~cecka2/pov35 .  Let me know 
how it works for you.

Ken

Fabien wrote:

> Your flags do not mention SSE instructions. My Duron does not either.
> I sometimes get an error with Micha'compile (which includes SSE
> instructions).
> I'd like to get my hand on your version to give it a try.
> 
> 
> Thanks
> 
> Fabien HENON
> 
> 
> 
> 
> Ken Cecka wrote:
>> Coming in on the heels of everyone else's compiling woes and optimized
>> builds, I just got around to doing my own, and thought I'd post my
>> results. I don't have the official linux build or the windows build
>> installed to do comparisons with, but I did a default build and an
>> optimized build, and have results for each on my system:
>> 
>> povray.unopt +a0.3 +w320 +h240 +v +D +ibenchmark.pov
>> Time For Parse:    0 hours  0 minutes   6.0 seconds (6 seconds)
>> Time For Photon:   0 hours  3 minutes   2.0 seconds (182 seconds)
>> Time For Trace:    1 hours  4 minutes  41.0 seconds (3881 seconds)
>>     Total Time:    1 hours  7 minutes  49.0 seconds (4069 seconds)
>> 
>> povray +a0.3 +w320 +h240 +v +D +ibenchmark.pov
>> Time For Parse:    0 hours  0 minutes   4.0 seconds (4 seconds)
>> Time For Photon:   0 hours  1 minutes  30.0 seconds (90 seconds)
>> Time For Trace:    0 hours 34 minutes  54.0 seconds (2094 seconds)
>>     Total Time:    0 hours 36 minutes  28.0 seconds (2188 seconds)
>> 
>> Quite a significant improvement!  OK, so this sucks compared to you
>> Athlon XP 1900 people, but I'm quite happy with it on my Athlon tbird 1.1
>> GHz. Some notes on the build:
>> - Hadn't read the thread on the min/max problem, so I ended up changing
>> all calls to min/max to fmin/fmax, and calls to min3/max3 to
>> fmin(fmin(),)/fmax(fmax(),).
>> - Configured as follows based on random suggestions scattered across
>> usenet: CXX='/usr/local/gcc-3.1.1/bin/g++ -O3 -march=athlon-tbird
>> -mcpu=athlon-tbird -fomit-frame-pointer -falign-functions=6
>> -funroll-loops -ffast-math -malign-double -m3dnow -mmmx'
>> LDFLAGS='-static' ./configure
>> 
>> Note that I linked this as a static binary so if anyone else wants to
>> give it a try, I can put it up for download - just let me know.
>> 
>> Ken
>> 
>> Oh, for reference:
>> 
>> $ cat /proc/cpuinfo
>> processor       : 0
>> vendor_id       : AuthenticAMD
>> cpu family      : 6
>> model           : 4
>> model name      : AMD Athlon(tm) Processor
>> stepping        : 2
>> cpu MHz         : 1109.921
>> cache size      : 256 KB
>> fdiv_bug        : no
>> hlt_bug         : no
>> f00f_bug        : no
>> coma_bug        : no
>> fpu             : yes
>> fpu_exception   : yes
>> cpuid level     : 1
>> wp              : yes
>> flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
>> cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
>> bogomips        : 2215.11
>> 
>> $ cat /proc/meminfo
>>         total:    used:    free:  shared: buffers:  cached:
>> Mem:  261648384 247451648 14196736  1597440 33746944 153714688
>> Swap: 388575232 92811264 295763968
>> MemTotal:       255516 kB
>> MemFree:         13864 kB
>> MemShared:        1560 kB
>> Buffers:         32956 kB
>> Cached:         132836 kB
>> SwapCached:      17276 kB
>> Active:         110336 kB
>> Inact_dirty:     70904 kB
>> Inact_clean:      3388 kB
>> Inact_target:        4 kB
>> HighTotal:           0 kB
>> HighFree:            0 kB
>> LowTotal:       255516 kB
>> LowFree:         13864 kB
>> SwapTotal:      379468 kB
>> SwapFree:       288832 kB
>> NrSwapPages:     72208 pages
>>


Post a reply to this message

From: John Coppens
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 4 Aug 2002 15:53:12
Message: <20020804165457.0e16a35a.jcoppens@usa.net>
Ken Cecka wrote:
> Coming in on the heels of everyone else's compiling woes and optimized 
> builds, I just got around to doing my own, and thought I'd post my results.  
> I don't have the official linux build or the windows build installed to do 
> comparisons with, but I did a default build and an optimized build, and 
> have results for each on my system:
> 


Hi Ken.

I ran the Athlon version on my machine and got the following error:

Parsing...Scene File Parser Initialization Error: I/O restriction prohibits read
access to file 'benchmark.pov'.
Refer to the platform specific documentation for details.

The only thing I changed was the executable. The original 3.5 version gave:

Time For Parse:    0 hours  0 minutes   6.0 seconds (6 seconds)
Time For Photon:   0 hours  2 minutes  46.0 seconds (166 seconds)
Time For Trace:    1 hours  7 minutes  18.0 seconds (4038 seconds)
    Total Time:    1 hours 10 minutes  10.0 seconds (4210 seconds)

quite similar to your run.

Ideas?

John


Post a reply to this message

From: Ken Cecka
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 4 Aug 2002 16:22:13
Message: <3d4d8cf5@news.povray.org>
This has come up in a couple of threads already - it is a new feature in pov 
3.5 with rather confusing defaults.  Basically, (as I understand it), Pov 
3.5 prevents you from accessing any files outside the directory where you 
perform the render from (or something like that), unless you explicitely 
allow otherwise in your povray.conf.  Here's what I put in my 
/usr/local/etc/povray.conf:

----
[File I/O Security]
none

[Shellout Security]
allowed
----

And in my ~/.povrayrc:

----
Library_Path=/usr/local/share/povray-3.5/include
----

Not quite sure why it worked for you with the official version and not with 
mine (maybe they've changed the defaults in the official binary?).

Ken

John Coppens wrote:

> Ken Cecka wrote:
>> Coming in on the heels of everyone else's compiling woes and optimized
>> builds, I just got around to doing my own, and thought I'd post my
>> results. I don't have the official linux build or the windows build
>> installed to do comparisons with, but I did a default build and an
>> optimized build, and have results for each on my system:
>> 
> 
> 
> Hi Ken.
> 
> I ran the Athlon version on my machine and got the following error:
> 
> Parsing...Scene File Parser Initialization Error: I/O restriction
> prohibits read access to file 'benchmark.pov'. Refer to the platform
> specific documentation for details.
> 
> The only thing I changed was the executable. The original 3.5 version
> gave:
> 
> Time For Parse:    0 hours  0 minutes   6.0 seconds (6 seconds)
> Time For Photon:   0 hours  2 minutes  46.0 seconds (166 seconds)
> Time For Trace:    1 hours  7 minutes  18.0 seconds (4038 seconds)
>     Total Time:    1 hours 10 minutes  10.0 seconds (4210 seconds)
> 
> quite similar to your run.
> 
> Ideas?
> 
> John


Post a reply to this message

From: Fabien
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 4 Aug 2002 18:05:02
Message: <3D4DA45D.6030201@caramail.com>
It works fine. The only problem I had is the one you mentionned.
Thanks for the speed it brought.

Fabien HENON


Post a reply to this message

From: John Coppens
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 4 Aug 2002 23:21:09
Message: <20020805002254.4a650465.jcoppens@usa.net>
That was it, Ken, Thanks!

Results:

Time For Parse:    0 hours  0 minutes   4.0 seconds (4 seconds)
Time For Photon:   0 hours  1 minutes  24.0 seconds (84 seconds)
Time For Trace:    0 hours 33 minutes  12.0 seconds (1992 seconds)
    Total Time:    0 hours 34 minutes  40.0 seconds (2080 seconds)

Just under 50% of the unoptimized version... Amazing!


Post a reply to this message

From: Warp
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 6 Aug 2002 18:46:49
Message: <3d5051d9@news.povray.org>
Ken Cecka <cec### [at] alumniwashingtonedu> wrote:
> [File I/O Security]
> none

> [Shellout Security]
> allowed

  This is mentioned over and over... But no-one has mentioned which *other*
options you have which you can put there. Perhaps not everyone wants to
allow everything.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Ken Cecka
Subject: Re: GCC 3.1.1 Athlon Optimized Build
Date: 6 Aug 2002 21:14:19
Message: <3d50746b@news.povray.org>
Certainly - it just didn't particularly matter to me, and I haven't taken 
the time to research it yet.  It did occur to me when I read your other 
post on this subject that making everything read-only but not writable 
might be a more sensible default since it's not like PovRay is running as a 
server or in any way revealing data to others.  And this would still 
protect against malicious scripts which try to trample data.  Anyway, just 
my 2 cents.

Ken

Warp wrote:

> Ken Cecka <cec### [at] alumniwashingtonedu> wrote:
>> [File I/O Security]
>> none
> 
>> [Shellout Security]
>> allowed
> 
>   This is mentioned over and over... But no-one has mentioned which
>   *other*
> options you have which you can put there. Perhaps not everyone wants to
> allow everything.
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.