public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Alignment of arrays
@ 2022-12-21  8:40 Tobias Melson
  2022-12-21  9:26 ` Tobias Burnus
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Melson @ 2022-12-21  8:40 UTC (permalink / raw)
  To: fortran

[-- 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 --]

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

end of thread, other threads:[~2022-12-21  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-21  8:40 Alignment of arrays Tobias Melson
2022-12-21  9:26 ` Tobias Burnus

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