Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Help: NAMELIST input on DEC ALPHA produces weird message
@ 1993-06-28 23:02 Paul Ricchiazzi
  1993-06-29 17:31 ` Ken Cowan
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Ricchiazzi @ 1993-06-28 23:02 UTC (permalink / raw)




I'm running a fortran code on a DEC Alpha and getting some weird
warning messages that seem to have something to do with dimensioned
variables read by NAMELIST input.  I am using the standard f77
compiler supplied by DEC.  (Despite the warning messages, the results
from the Alpha agree perfectly with results from a DECstation 5000).
I've been able to recreate the problem with the following small
program:


      parameter (nx=2)
      dimension xx(nx)
      data xx/nx*0./

      namelist /input/ xx

      open(unit=10,file='INPUT',status='unknown')
      write(10,input)
      close(unit=10)

      open(unit=11,file='INPUT',status='old')

      read(11,input)
      close(unit=11)
      write(*,input)
      end
c==============================================================



---------------
output for nx=2
---------------

Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c687c ra=3ff808edd58 type=stq
Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a10 ra=3ff808edd58 type=ldq
Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a1c ra=3ff808edd58 type=stq
 $INPUT
 XX      = 2*0.0000000E+00  
 $END




---------------
output for nx=1
---------------

 $INPUT
 XX      =  0.0000000E+00
 $END


-------------------------------------------------------------------

Does anyone know whats going on here?



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

* Re: Help: NAMELIST input on DEC ALPHA produces weird message
  1993-06-28 23:02 Help: NAMELIST input on DEC ALPHA produces weird message Paul Ricchiazzi
@ 1993-06-29 17:31 ` Ken Cowan
  0 siblings, 0 replies; 2+ messages in thread
From: Ken Cowan @ 1993-06-29 17:31 UTC (permalink / raw)


In article <20nt9i$ei5@agate.berkeley.edu>, paul@toe.CS.Berkeley.EDU (Paul Ricchiazzi) writes:
|>
|>
|>I'm running a fortran code on a DEC Alpha and getting some weird
|>warning messages that seem to have something to do with dimensioned
|>variables read by NAMELIST input. atus='old')

[other info left out]

|>Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c687c ra=3ff808edd58 type=stq
|>Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a10 ra=3ff808edd58 type=ldq
|>Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a1c ra=3ff808edd58 type=stq

Unaligned access messages mean that the system tried an aligned access to memory
that was not naturally aligned.  In your case, the program referenced added 11ffff864
(which is longword but not quadword aligned) using a STQ instruction (which
wants a quadword aligned address).

The system fixed up the unaligned access, printed the message and continued
execution of your program.  It will be a little slower, but it will always produce
correct results.

You can turn off the messages using "uac p 0".  man uac for more info.

And ... I sent this off to the DEC Fortran team to check out.  The idea is that
you never see these messages.
--
Ken Cowan, ZK2-3/Q8				cowan@rtl.enet.dec.com
Digital Equipment Corporation			decwrl!rtl!cowan
110 Spit Brook Rd,
Nashua, NH 03062


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

end of thread, other threads:[~1993-06-29 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-06-28 23:02 Help: NAMELIST input on DEC ALPHA produces weird message Paul Ricchiazzi
1993-06-29 17:31 ` Ken Cowan

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