* -fno-emulate-complex
@ 1998-11-07 5:00 C.Simmendinger
1998-11-07 5:00 ` -fno-emulate-complex C.Simmendinger
0 siblings, 1 reply; 4+ messages in thread
From: C.Simmendinger @ 1998-11-07 5:00 UTC (permalink / raw)
Hi ;-)
Well, this is a hint for all those,
which make use of g77 and complex numbers:
You'll need to do all calculations in double complex.
(No problem, since the alpha is 64 bit anyway)
I haven't found a bug in the actual results yet.
But i stumbled across a cute bug in the code generation:
With -fno-emulate-complex the compiler (egcs-1.1b)
crashes on
write(*,*) some_double_complex_number
So you'll need a workaround for this.
Having done that and having enabled
-fno-emulate-complex
you get a speedup of a factor 3-4 on complex
code.
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -fno-emulate-complex
1998-11-07 5:00 -fno-emulate-complex C.Simmendinger
@ 1998-11-07 5:00 ` C.Simmendinger
1998-11-07 5:00 ` -fno-emulate-complex Toon Moene
0 siblings, 1 reply; 4+ messages in thread
From: C.Simmendinger @ 1998-11-07 5:00 UTC (permalink / raw)
C.Simmendinger wrote:
> With -fno-emulate-complex the compiler (egcs-1.1b)
> crashes on
>
> write(*,*) some_double_complex_number
>
Hm, more specifically:
(*,*) = (some_unit,some_format)
Let's have it this way :
If the thing crashes it's on that statement.
I'm definitely too lazy to check that in more detail ;-)
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -fno-emulate-complex
1998-11-07 5:00 ` -fno-emulate-complex C.Simmendinger
@ 1998-11-07 5:00 ` Toon Moene
1998-11-07 5:00 ` -fno-emulate-complex C.Simmendinger
0 siblings, 1 reply; 4+ messages in thread
From: Toon Moene @ 1998-11-07 5:00 UTC (permalink / raw)
"C.Simmendinger" <chrisi@theo1.physik.uni-stuttgart.de> wrote:
> C.Simmendinger wrote:
> > With -fno-emulate-complex the compiler (egcs-1.1b)
> > crashes on
> > write(*,*) some_double_complex_number
> Hm, more specifically:
> (*,*) = (some_unit,some_format)
> Let's have it this way :
> If the thing crashes it's on that statement.
> I'm definitely too lazy to check that in more detail ;-)
Nevertheless, I do hope you did send a complete (compilable) example to
egcs-bugs@cygnus.com - that's the only way to get it fixed ...
--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.org; egcs: mailto:egcs-bugs@cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -fno-emulate-complex
1998-11-07 5:00 ` -fno-emulate-complex Toon Moene
@ 1998-11-07 5:00 ` C.Simmendinger
0 siblings, 0 replies; 4+ messages in thread
From: C.Simmendinger @ 1998-11-07 5:00 UTC (permalink / raw)
Toon Moene wrote:
>
> Nevertheless, I do hope you did send a complete (compilable) example to
> egcs-bugs@cygnus.com - that's the only way to get it fixed ...
I have to apologize.
The bug has been fixed in egcs-1.1b
I note that having several versions of gcc/egcs on your machine
isn't always helpful :-)
> double complex c
> c=dcmplx(1.,1.)
> write(6,fmt='(f10.3,f10.3)') c
>
To save my butt:
The above caused the crash with -O -fno-emulate-complex
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-11-07 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-07 5:00 -fno-emulate-complex C.Simmendinger
1998-11-07 5:00 ` -fno-emulate-complex C.Simmendinger
1998-11-07 5:00 ` -fno-emulate-complex Toon Moene
1998-11-07 5:00 ` -fno-emulate-complex C.Simmendinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox