public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Melson <tobias.melson@mpcdf.mpg.de>
To: fortran@gcc.gnu.org
Subject: Alignment of arrays
Date: Wed, 21 Dec 2022 09:40:57 +0100	[thread overview]
Message-ID: <429718a5-5f63-5bd2-7416-69690a334f8a@mpcdf.mpg.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

Dear all,

I am wondering about alignment of allocatable arrays: Does the gfortran 
compiler in its latest version automatically align arrays to the 64 byte 
boundary? For comparison, the Intel compiler has a flag "-align 
array64byte", which forces alignment of all arrays (except for the ones 
in COMMON). I did not find something similar in the gfortran documentation.

Background of my question: I would like to use statements like
"!$OMP SIMD ALIGNED(foobar:64)"
in my code, however, this is only appropriate if the compiler indeed 
alignes arrays.

Thank you!
Best regards from Munich
Tobias

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5785 bytes --]

             reply	other threads:[~2022-12-21  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-21  8:40 Tobias Melson [this message]
2022-12-21  9:26 ` Tobias Burnus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=429718a5-5f63-5bd2-7416-69690a334f8a@mpcdf.mpg.de \
    --to=tobias.melson@mpcdf.mpg.de \
    --cc=fortran@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).