Re: user-defined alignment in gfortran



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".
.



Relevant Pages

  • Re: user-defined alignment in gfortran
    ... This is necessary on the Cell BE architecture for being able ... How can I do that with gfortran? ... sense that eight byte alignment would be good enough. ...
    (comp.lang.fortran)
  • Understanding the Cell Microprocessor [VERY LONG]
    ... Understanding the Cell Microprocessor ... multi-core CPU designs in the works, and they made that very clear at IDF. ... Before getting into the architecture of Cell, let's talk a bit about the ...
    (comp.os.linux.powerpc)
  • Cell Documents
    ... I think you have to register, ... The following papers define the Cell specification and will be posted to the IBM Semiconductor Solutions Technical Library in September. ... Cell Broadband Engine Architecture V1.0 ... Somewhere between a general-purpose processor and special-purpose hardware lies the Cell SPU: designed to provide leadership performance in game, media, and broadband applications, this document describes the Application Binary Interface of the Synergistic Processor Unit. ...
    (comp.arch)
  • Re: strange formatting of text
    ... not in text box or cell. ... have Text Boundaries ... >> to the newsgroup so ...
    (microsoft.public.word.newusers)
  • Re: [PATCH 02/14] spufs: fix local store page refcounting
    ... >> spufs will never have any use for platforms other than cell, ... > The point is that people making changes to the filesystem interfaces ... > fact that it's only used on one architecture is irrelevant - you ...
    (Linux-Kernel)