Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: gt9271a@prism.gatech.edu (William Steve Shepard)
Subject: F77, Errors when Optimizing on Alpha
Date: 1995/08/11	[thread overview]
Message-ID: <40g89i$h27@acmex.gatech.edu> (raw)


We are using several codes that read and write data (to the disk) numerous
times so that a set of original data can be reused.  We are experiencing an
interesting problem with these codes.

If the code is compiled using the standard F77 command, the results
obtained when runing the program are NOT ALWAYS CORRECT.  In one code, the
results are correct with one loop of execution and incorrect on the next
loop.  In this same code, the results are repeatable.  That is,  the Nth
loop always gives the same, incorrect, answer.

If the code is compiled with OPTIMIZATION OFF (using -g option), the
results obtained when running the program are ALWAYS CORRECT.

To check this problem further, another code (written by a different person)
was even separated into a mathematical section and a read/write section.
When run together, the codes gave the correct answer only when the
read/write section was NOT optimized.   Optimizing the mathematical section
did not affect the results.

So, it appears that when the optimized code is used, the read/write 
statements are not always executing.

We are currently running:
          Dec Fortran for OSF/1 v3.6
on an Alpha machine.

Has anyone else experienced this problem?

Does anyone have any ideas what could be happening?

Please send replies to: shepard@lab11.me.gatech.edu

Cross-Posted in:
  comp.lang.fortran
  comp.sys.dec

Thanks in Advance!
Steve Shepard



-- 
*********************************************************
Steve Shepard              shepard@lab11.me.gatech.edu
A Ramblin' Wreck from Georgia Tech
And a Helluva Engineer  



             reply	other threads:[~1995-08-11  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-11  4:00 William Steve Shepard [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-08-12  4:00 F77, Errors when Optimizing on Alpha Steve Lionel
read-only archive

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