HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

5.11  aligned Clause

Name: aligned

Properties: data-environment attribute, post-modified

Arguments

Name

Type

Properties

list

list of variable list item type

default

Modifiers

Name

Modifies

Type

Properties

alignment

list

OpenMP integer expression

positive, region invariant, ultimate, unique

Directives

declare simd, simd

Semantics

The aligned clause declares that the object to which each list item points is aligned to the number of bytes expressed in alignment.
The aligned clause declares that the target of each list item is aligned to the number of bytes expressed in alignment.

The alignment modifier specifies the alignment that the program ensures related to the list items. If the alignment modifier is not specified, implementation-defined default alignments for SIMD instructions on the target platforms are assumed.

Restrictions

Restrictions to the aligned clause are as follows:

The type of list items must be array or pointer.
The type of list items must be array, pointer, reference to array, or reference to pointer.
Each list item must have C_PTR or Cray pointer type or have the POINTER or ALLOCATABLE attribute. Cray pointer support has been deprecated. If a list item has the ALLOCATABLE attribute, the allocation status must be allocated. If a list item has the POINTER attribute, the association status must be associated. If the type of a list item is either C_PTR or Cray pointer, it must be defined. Cray pointer support has been deprecated.

Cross References