Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* WinNT compiler performance versus Linux
@ 1998-12-15  5:00 Peter Doering
  1998-12-15  5:00 ` Robert Harley
  1998-12-16  5:00 ` Joachim Wesner
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Doering @ 1998-12-15  5:00 UTC (permalink / raw)


Hi Folks,

even though it is an often diskussed topic, I thought this results might
be interesting for some people. I should mention, that I of course do
not want to diskuss the performance of the compilers itself, but the
performance of the compiled executables, generated with the compilers.

The operating systems I used, are Windows NT 4.0 Workstation, and RH
Linux 5.1. The programm I compiled was POVray 3.01, a very popular, well
known raytracer. As raytracers are serious number crunching
applications, they are the right software to test on an Alpha machine.
I only compiled with GCC (EGCS) under RH 5.1 as there is an compiled
binary for Win NT available for download (The Alpha NT Source at
http://dutlbcz.lr.tudelft.nl/alphant/ ).


Compiler switches used			     execution time for
to compile the source 			|chess.pov	|skyvase.pov
------------------------------------------------------------------------
-O -mieee -funroll-all-loops		|		|		
-fexpensive-optimizations 		|		|
-finline-functions 			|		|	
fastmathlibs: libfm-0.09 libffm-0.28	|	38 sec	|	106 sec
------------------------------------------------------------------------
-O -funroll-all-loops			|		|Floating point
-fexpensive-optimizations 		|		|exception. Core
-finline-functions			|		|dumped.
fastmathlibs: libfm-0.09 libffm-0.28	|	28 sec	|	
------------------------------------------------------------------------
-O -mieee 				|		|		
-fexpensive-optimizations 		|		|
-finline-functions			|		|
fastmathlibs: libfm-0.09 libffm-0.28	|	28 sec	|	100 sec	
------------------------------------------------------------------------
-O 	 				|		|Floating point		
-fexpensive-optimizations 		|		|exception. Core
-finline-functions			|		|dumped.
fastmathlibs: libfm-0.09 libffm-0.28	|	32 sec	|		
------------------------------------------------------------------------
-O -mieee 				|		|		
-fexpensive-optimizations 		|		|
fastmathlibs: libfm-0.09 libffm-0.28	|	34 sec	|	102 sec	
------------------------------------------------------------------------
-O -mieee -funroll-all-loops		|		|
-fexpensive-optimizations 		|		|
-finline-functions 			|		|	
no fastmathlibs				|	41 sec	|	124 sec
------------------------------------------------------------------------
-O -mieee 				|		|		
-fexpensive-optimizations 		|		|
no fastmathlibs				|	34 sec	|	102 sec	
------------------------------------------------------------------------
Windows NT binary available at 		|		|	
http://dutlbcz.lr.tudelft.nl/alphant/	|	21 sec	|	68 sec
------------------------------------------------------------------------

I  rendered the scene description files with no antialiasing:
x-povray -ifilename.pov +B1000 +D res640

If sombody has is interested in comparing this results with his/hers,
thats the machine I used (and still use, of course ;-):
Alpha PC 21124, 533Mhz, LX motherboard (2MB 3rd level cache), 64 mb
SDRAM

The biggest disadvantage is definitely the -mieee compiler switch, but
even the scene description which could be rendered without it and
without generating  a floating point exception at the same time shows,
that there is still a huge difference between the Linux and the WinNT
executables.
I thought the fastmath libs would help here but that seems not to be the
case. They still speed the things up quite a bit, though.

There might still be some improvements possible by using higher
optimizations, but everything beyond "-O" generated a compiler error
message, similar to the following one:

pf3.c: In function Pickfilt':
pf3.c:285: internal error--unrecognizable insn:
(insn:DI 554 518 534 (clobber (mem:DF
(symbol_ref/u:DI("*$LC20"))))-1(insn_list:REG_DEP_ANTI 23
(insn_list:REG_DEP_ANTI 28 (insn_list:REG_DEP_ANTI 33(nil))))(nil))
egcs: Internal compiler error: program cc1 got fatal signal 6
make: *** [pf3.o] Error 1

This is not some POVray specific error because I tried the same before
with another free available raytracer named RADIANCE. Actually the
displayed error message is from a compilation run with the RADIANCE
sources.
Maybe somebody can tell me what's causing this kind of message and how
to fix it :-)

Another problem with RADIANCE is, that as soon as I try to speed up the
executable by using the above mentioned fastmath libraries, it ALWAYS
crashes with a floating point exception and dumps core. The use of the
fastmath libraries seem to make the things worse in this particular
case.

One thing I really would like to kow is if the use of the BLAS routines,
which have been mentioned in this newsgroup, would speed up a raytracing
application. Even though a big part of raytracing is matrix
multiplication, these matrixes are small or even very small. I would
appreciate some advice.

Thanks, Peter



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

* Re: WinNT compiler performance versus Linux
  1998-12-15  5:00 WinNT compiler performance versus Linux Peter Doering
@ 1998-12-15  5:00 ` Robert Harley
  1998-12-16  5:00 ` Joachim Wesner
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Harley @ 1998-12-15  5:00 UTC (permalink / raw)



Peter Doering <headroom@worldnet.att.net> writes:
>[...]
> There might still be some improvements possible by using higher
> optimizations, but everything beyond "-O" generated a compiler error
> message, similar to the following one:
> 
> pf3.c: In function Pickfilt':
> pf3.c:285: internal error--unrecognizable insn:
> (insn:DI 554 518 534 (clobber (mem:DF
> (symbol_ref/u:DI("*$LC20"))))-1(insn_list:REG_DEP_ANTI 23
> (insn_list:REG_DEP_ANTI 28 (insn_list:REG_DEP_ANTI 33(nil))))(nil))
> egcs: Internal compiler error: program cc1 got fatal signal 6
> make: *** [pf3.o] Error 1
 
I just built it on RedHat 4.2 using egcs 1.1.1 with this in the makefile:

CC = egcs
CFLAGS = -O3 -funroll-loops -fexpensive-optimizations -finline-functions [...]

No problems.

------------------------------------------------------------------------------
> make newxwin
> cd ../..
> time source/unix/x-povray -ipovscn/level2/skyvase.pov +B1000 +D res640 +Linclude
[...]
80.481u [...]
------------------------------------------------------------------------------

(at 500 MHz).

See:
  http://egcs.cygnus.com/
  ftp://egcs.cygnus.com/pub/egcs/releases/index.html

Rob.



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

* Re: WinNT compiler performance versus Linux
  1998-12-15  5:00 WinNT compiler performance versus Linux Peter Doering
  1998-12-15  5:00 ` Robert Harley
@ 1998-12-16  5:00 ` Joachim Wesner
  1 sibling, 0 replies; 3+ messages in thread
From: Joachim Wesner @ 1998-12-16  5:00 UTC (permalink / raw)
  To: headroom

Peter Doering wrote:
> 
> Hi Folks,
> 
> even though it is an often diskussed topic, I thought this results might
> be interesting for some people.
> I thought the fastmath libs would help here but that seems not to be the
> case. They still speed the things up quite a bit, though.
> 


>
> Another problem with RADIANCE is, that as soon as I try to speed up the
> executable by using the above mentioned fastmath libraries, it ALWAYS
> crashes with a floating point exception and dumps core. The use of the
> fastmath libraries seem to make the things worse in this particular
> case.
> 


Could you try to exactly specify the system and compiler and options
and...., you used to compile all that..., I will try isolate the reason
why libffm seems even to increase the chance of trapping (and FIX it,
hopefully). At best, send me/give the location of an executable (at best
compiled with -g) that causes this, so I can compare, if it behaves
different on my system. Or even better, try to give the location (using
gdb) where it chrashed on your system.

Cheers


Joachim



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

end of thread, other threads:[~1998-12-16  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-15  5:00 WinNT compiler performance versus Linux Peter Doering
1998-12-15  5:00 ` Robert Harley
1998-12-16  5:00 ` Joachim Wesner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox