Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* ALPHA Fortran Compilers: newest versions?
@ 1996-01-28  5:00 Rob Hooft
  1996-01-29  5:00 ` Steve Lionel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rob Hooft @ 1996-01-28  5:00 UTC (permalink / raw)


Hello,

My ALPHA workstation is currently running OSF/1 V2.0. I use Fortran
compiler Version 3.3.2. My software runs fine using that compiler even
at the highest (-O4) level of optimization. My experience here is that
whenever the program crashes somewhere at high optimization, I can
locate a bug in my code with help of dbx. The only problem I have
with this compiler is that it does not complain about unused variables
(and yes, I enabled the right compiler flags).

Recently our institute acquired a number of new ALPHA stations. They
are running DigitalUnix 3.2c, and fortran compiler 3.8.0. If I compile
my software on these machines, even at "-O3" (let alone -O4 or -O5)
the program is highly unstable.  Even worse: the program crashes at
different points when it's run under the debugger or outside! I
tried to produce stack traces, but the only thing dbx tells me is
something like "cannot read memory at 0x1". The binary produced on my
own workstation runs absolutely without any problem....

Is 3.8.0 the latest version of the compiler? Are there any known code
generation bugs, or am I running into weird never uncovered bugs of my
own code? I'm tempted to ask the system group not to upgrade the software
on my machine yet, but on the other hand the software must run at other
sites as well!

Regards,
-- 
=== Rob.Hooft@EMBL-Heidelberg.DE   http://www.Sander.EMBL-Heidelberg.DE/rob/ ==
==== In need of protein modeling?  http://www.Sander.EMBL-Heidelberg.DE/whatif/
Validation of protein structures?  http://biotech.EMBL-Heidelberg.DE:8400/ ====
================ Long Live Linux!  Free Software Rules The World! =============



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

* Re: ALPHA Fortran Compilers: newest versions?
  1996-01-28  5:00 ALPHA Fortran Compilers: newest versions? Rob Hooft
@ 1996-01-29  5:00 ` Steve Lionel
  1996-01-30  5:00 ` Rob Hooft
  1996-02-08  5:00 ` Tom Holt
  2 siblings, 0 replies; 5+ messages in thread
From: Steve Lionel @ 1996-01-29  5:00 UTC (permalink / raw)



In article <vzyka2cgr8e.fsf@nu.EMBL-Heidelberg.DE>, hooft@EMBL-Heidelberg.DE 
(Rob Hooft) writes:

|>Recently our institute acquired a number of new ALPHA stations. They
|>are running DigitalUnix 3.2c, and fortran compiler 3.8.0. If I compile
|>my software on these machines, even at "-O3" (let alone -O4 or -O5)
|>the program is highly unstable.  Even worse: the program crashes at
|>different points when it's run under the debugger or outside! I
|>tried to produce stack traces, but the only thing dbx tells me is
|>something like "cannot read memory at 0x1". The binary produced on my
|>own workstation runs absolutely without any problem....
|>
|>Is 3.8.0 the latest version of the compiler? Are there any known code
|>generation bugs, or am I running into weird never uncovered bugs of my
|>own code? I'm tempted to ask the system group not to upgrade the software
|>on my machine yet, but on the other hand the software must run at other
|>sites as well!

Yes, 3.8 is the current version.  The symptoms you are describing suggest
that your program is accessing uninitialized memory, or is corrupting
memory somewhere.  This can be a difficult problem to track down.  3.8
is, we feel, a very stable compiler, but we don't claim it to be bug-free.
That it does not fail when using the older compiler does not necessarily
mean the compiler is at fault - it may mean that a new optimization revealed
a hidden bug in your code. (Or it could be the compiler is in error.)

If you have a reproducible example of the problem, I'd be pleased to look
at it - send me mail.  You should also report problems through your local
Digital software support contact, as this is the way you would be able to
receive any updates.
-- 

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/



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

* Re: ALPHA Fortran Compilers: newest versions?
  1996-01-28  5:00 ALPHA Fortran Compilers: newest versions? Rob Hooft
  1996-01-29  5:00 ` Steve Lionel
@ 1996-01-30  5:00 ` Rob Hooft
  1996-02-08  5:00 ` Tom Holt
  2 siblings, 0 replies; 5+ messages in thread
From: Rob Hooft @ 1996-01-30  5:00 UTC (permalink / raw)
  To: Rob Hooft

A followup to my own post: I wish to thank Steve Lionel from DEC and
Bryan Lally from LANL for their help. I don't know what really made the
difference, but I managed to compile my software without any problems.
The 3.8.0 version of the compiler produced code that is about 15% faster
than 3.3.2 for my application.

Regards,
-- 
=== Rob.Hooft@EMBL-Heidelberg.DE   http://www.Sander.EMBL-Heidelberg.DE/rob/ ==
==== In need of protein modeling?  http://www.Sander.EMBL-Heidelberg.DE/whatif/
Validation of protein structures?  http://biotech.EMBL-Heidelberg.DE:8400/ ====
================ Long Live Linux!  Free Software Rules The World! =============



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

* Re: ALPHA Fortran Compilers: newest versions?
  1996-01-28  5:00 ALPHA Fortran Compilers: newest versions? Rob Hooft
  1996-01-29  5:00 ` Steve Lionel
  1996-01-30  5:00 ` Rob Hooft
@ 1996-02-08  5:00 ` Tom Holt
  1996-02-09  5:00   ` Steve Lionel
  2 siblings, 1 reply; 5+ messages in thread
From: Tom Holt @ 1996-02-08  5:00 UTC (permalink / raw)


In article <vzyka2cgr8e.fsf@nu.EMBL-Heidelberg.DE> hooft@EMBL-Heidelberg.DE (Rob Hooft) writes:

>Recently our institute acquired a number of new ALPHA stations. They
>are running DigitalUnix 3.2c, and fortran compiler 3.8.0. If I compile
>my software on these machines, even at "-O3" (let alone -O4 or -O5)
>the program is highly unstable.  Even worse: the program crashes at
>different points when it's run under the debugger or outside! I
>tried to produce stack traces, but the only thing dbx tells me is
>something like "cannot read memory at 0x1". The binary produced on my
>own workstation runs absolutely without any problem....

>Is 3.8.0 the latest version of the compiler? Are there any known code
>generation bugs, or am I running into weird never uncovered bugs of my
>own code? I'm tempted to ask the system group not to upgrade the software
>on my machine yet, but on the other hand the software must run at other
>sites as well!

I am running the same FORTRAN compiler and the latest FORTRAN 90 compiler 
under DU 3.2c, and have similar problems with both compilers.  Some programs 
run fine with any optimisation, others don't.  All programs run with -O1.  As 
far as I can establish from the error messages, the problem is that the 
support C libraries, included with DU 3.2c, are not fully compatible with the 
latest versions of FORTRAN.   I assumed that we have to either wait for the 
operating system to catch up, or install previous versions of FORTRAN, but 
would be interested to know if I am right or not!

Tom



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

* Re: ALPHA Fortran Compilers: newest versions?
  1996-02-08  5:00 ` Tom Holt
@ 1996-02-09  5:00   ` Steve Lionel
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Lionel @ 1996-02-09  5:00 UTC (permalink / raw)



In article <t.holt.259.001190CA@uea.ac.uk>, t.holt@uea.ac.uk (Tom Holt) writes:

|>I am running the same FORTRAN compiler and the latest FORTRAN 90 compiler 
|>under DU 3.2c, and have similar problems with both compilers.  Some programs 
|>run fine with any optimisation, others don't.  All programs run with -O1.  As 
|>far as I can establish from the error messages, the problem is that the 
|>support C libraries, included with DU 3.2c, are not fully compatible with the 
|>latest versions of FORTRAN.   I assumed that we have to either wait for the 
|>operating system to catch up, or install previous versions of FORTRAN, but 
|>would be interested to know if I am right or not!

As Rob Hooft wrote in a followup, it appeared that there were some source
changes made (perhaps to fix latent program bugs) and now his application
runs faster using the most recent compiler.

DEC Fortran and DEC Fortran 90 are certainly compatible with Digital UNIX
3.2c.  If you are having problems with either compiler, please let us know!
Don't just wait and see if things sort themselves out!

In many cases, programs which fail at higher optimization levels have
errors in their programming which are revealed by optimization.  (And yes,
the compilers do sometimes have bugs as well.)  But we believe that the
default -O4 optimization is highly reliable.

If you are having problems, please send us an example.  If you have a support
contract, you can contact your local Digital support organization - this is
the way you could get fixes fastest.   However, I would encourage you to
send the example to fortran@digital.com (that goes to me) as well so we can
look at it and tell you what we find.  We are not mind-readers.  If you
are having a problem with our compilers, please tell us!  It is our #1 
priority to fix compiler bugs.
-- 

Steve Lionel                      Mail: lionel@quark.enet.dec.com
Fortran Development               WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on Digital Fortran 90, see http://www.digital.com/info/hpc/f90/



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

end of thread, other threads:[~1996-02-09  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-28  5:00 ALPHA Fortran Compilers: newest versions? Rob Hooft
1996-01-29  5:00 ` Steve Lionel
1996-01-30  5:00 ` Rob Hooft
1996-02-08  5:00 ` Tom Holt
1996-02-09  5:00   ` Steve Lionel

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