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

6.5  allocate Directive

Name: allocate

Association: none

Category: declarative

Properties: default

Arguments

Name

Type

Properties

list

list of variable list item type

default

Clauses

align

,

allocator

Semantics

The storage for each list item that appears in the allocate directive is provided an allocation through the memory allocator as determined by the allocator clause with an alignment as determined by the align clause. The scope of this allocation is that of the list item in the base language. At the end of the scope for a given list item the memory allocator used to allocate that list item deallocates the storage.

For allocations that arise from this directive the null_fb value of the fallback allocator trait behaves as if the abort_fb had been specified.

Restrictions

Restrictions to the allocate directive are as follows:

Cross References