Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Re: Unaligned access
  1994-09-26 23:56 Unaligned access Bela Fazekas
@ 1994-09-26 18:47 ` Charles F Randall
  1994-09-28 17:06 ` Mark Charette
  1 sibling, 0 replies; 3+ messages in thread
From: Charles F Randall @ 1994-09-26 18:47 UTC (permalink / raw)


Bela Fazekas <bela@magfiz.iki.kfki.hu> wrote:
>I look for somebody who can help me to solve the following problem:
>I compiled a fortran program with f77 and when I run the program
>I get the following messages several times:
>Unaligned access pid=2899 <cindy.exe> ...
>How can I suspend these run time messages without rewrite the program?
>In other words is there any switch in the compiler which suspends
>these messages?

You may be paying a massive performance penalty for this unaligned
access. Try re-compiling with some compiler option that will align data
on word (or double-word) boundaries. The option in DEC Fortran under
OSF/1 is either '-align commons' or '-align dcommons'.

For example:

	% f77 -align dcommons -o prog prog.f

See your compiler documentation for the details.

-Randy

Charles F. Randall, IV                      e-mail: cfrandal@iastate.edu
Systems Analyst                             voice : (515) 294-9316
Computation Center                          office: 113 Durham
Iowa State University	        http://www.public.iastate.edu/~cfrandal/



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

* Unaligned access
@ 1994-09-26 23:56 Bela Fazekas
  1994-09-26 18:47 ` Charles F Randall
  1994-09-28 17:06 ` Mark Charette
  0 siblings, 2 replies; 3+ messages in thread
From: Bela Fazekas @ 1994-09-26 23:56 UTC (permalink / raw)




--
I look for somebody who can help me to solve the following problem:
I compiled a fortran program with f77 and when I run the program
I get the following messages several times:
Unaligned access pid=2899 <cindy.exe> ...
How can I suspend these run time messages without rewrite the program?
In other words is there any switch in the compiler which suspends
these messages?
Thanks in advance, Bela
=============================================================================
Bela Fazekas                           | Tel.:    (1) 275-4347
Institute of Isotopes,                 | 
Dept. of Nuclear Physics               | Telefax: (1) 375-4349
H1525 Budapest P.O.B. 77               | 
Budapest, XII., Konkoly Thege u. 29-33 | E-mail: bela@magfiz.iki.kfki.hu
XVII/A. No. 205., HUNGARY              | 



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

* Re: Unaligned access
  1994-09-26 23:56 Unaligned access Bela Fazekas
  1994-09-26 18:47 ` Charles F Randall
@ 1994-09-28 17:06 ` Mark Charette
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Charette @ 1994-09-28 17:06 UTC (permalink / raw)


Bela Fazekas (bela@sunserv.kfki.hu) wrote:


: --
: I look for somebody who can help me to solve the following problem:
: I compiled a fortran program with f77 and when I run the program
: I get the following messages several times:
: Unaligned access pid=2899 <cindy.exe> ...

To turn off the messages programattically:

#include <sys/types.h>
#include <sys/sysinfo.h>

void uac_msg_off(void)
{
   int buf[2];
   /*  Don't print the warning to the user */
   buf[0] = SSIN_UACPROC;
   buf[1] = UAC_NOPRINT;
   setsysinfo(SSI_NVPAIRS,(caddr_t *) buf, 1,(caddr_t) 0, 0);
}

To turn them off at system or process level:
man uac

---------
Mark Charette                          charette@mika.com
MIKA Systems
Livonia, MI



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

end of thread, other threads:[~1994-09-28 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-26 23:56 Unaligned access Bela Fazekas
1994-09-26 18:47 ` Charles F Randall
1994-09-28 17:06 ` Mark Charette

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