Re: user-defined alignment in gfortran
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Tue, 29 May 2007 04:05:34 -0800
Timo Schneider wrote:
glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> schrieb:
(snip)
Since a COMPLEX*16 variable is operated on, as far as Fortran is
concerned, as two eight byte real values it would seem in that
sense that eight byte alignment would be good enough. (It would
be interesting to have a processor with complex operations.)
Mm, why? If I have a COMPLEX*16 variable placed somwhere with eight byte
alignment, there can be two cases: It is 16 Byte aligned or not, in
that case only the second part of the variable falls together wih a 16
bit boundary.
Maybe I didn't say it quite right.
No hardware that I know of has instruction that operate on
complex data. There is no complex add or complex multiply
instruction. Operations are done on separate real and imaginary
parts using ordinary floating point instructions.
Now, there could be some advantage to not crossing cache
blocks, though it isn't so obvious what one can do about that.
If you ask about I/O, this reminds me of LOCATE mode I/O that
PL/I allows for RECORD (UNFORMATTED) I/O.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ibm3lr30/12.4.2
Locate mode I/O allows operating on data directly into the I/O
buffer, reducing the number of copies needed.
READ FILE(IN) SET(P); sets pointer P to point to the data read.
LOCATE FILE(OUT) SET(P); writes any previous buffer and
sets pointer P to point to the next output buffer. The
last is written on CLOSE.
-- glen
.
- Follow-Ups:
- Re: user-defined alignment in gfortran
- From: Timo Schneider
- Re: user-defined alignment in gfortran
- From: Richard Maine
- Re: user-defined alignment in gfortran
- From: Tim Prince
- Re: user-defined alignment in gfortran
- References:
- user-defined alignment in gfortran
- From: Timo Schneider
- Re: user-defined alignment in gfortran
- From: Dr Ivan D. Reid
- Re: user-defined alignment in gfortran
- From: glen herrmannsfeldt
- Re: user-defined alignment in gfortran
- From: Timo Schneider
- user-defined alignment in gfortran
- Prev by Date: Re: user-defined alignment in gfortran
- Next by Date: Re: user-defined alignment in gfortran
- Previous by thread: Re: user-defined alignment in gfortran
- Next by thread: Re: user-defined alignment in gfortran
- Index(es):
Relevant Pages
|