Re: user-defined alignment in gfortran
- From: "Dr Ivan D. Reid" <Ivan.Reid@xxxxxxxxxxxx>
- Date: Tue, 29 May 2007 00:36:34 +0000 (UTC)
On Tue, 29 May 2007 00:22:30 +0000 (UTC), Timo Schneider
<timos@xxxxxxxxxxxxxxxxxx>
wrote in <slrnf5ms51.2q2.timos@xxxxxxxxxxxxxxxx>:
How do I tell gfortran to allign a complex*16 array at 16 byte
boundaries? This is necessary on the Cell BE architecture for being able
to do DMA transfer. In C I can write __attribute__((aligned(16))) and
it works. How can I do that with gfortran?
I wouldn't think you'd have to. I'd expect it to happen
automagically. ...or are you trying to align things up within a derived
type? Usual advice in that case is to assign your type/structure from
the largest elements down to the smallest, with character*? at the end.
--
Ivan Reid, School of Engineering & Design, _____________ CMS Collaboration,
Brunel University. Ivan.Reid@[brunel.ac.uk|cern.ch] Room 40-1-B12, CERN
KotPT -- "for stupidity above and beyond the call of duty".
.
- Follow-Ups:
- Re: user-defined alignment in gfortran
- From: glen herrmannsfeldt
- Re: user-defined alignment in gfortran
- From: Tim Prince
- Re: user-defined alignment in gfortran
- References:
- user-defined alignment in gfortran
- From: Timo Schneider
- user-defined alignment in gfortran
- Prev by Date: user-defined alignment in gfortran
- Next by Date: Re: user-defined alignment in gfortran
- Previous by thread: user-defined alignment in gfortran
- Next by thread: Re: user-defined alignment in gfortran
- Index(es):
Relevant Pages
|