OpenMP* Contexts

This feature is only available for ifx.

At each point of an OpenMP* program, an OpenMP context exists that describes the following traits: the devices where parts of the program execute, the implementation supported functionality, such as target instruction sets, the active OpenMP constructs, and the available dynamic values.

A number of trait sets exist: construct, dynamic, device, implementation, and target_device. The category of the trait determines the syntax of the context selector used to match the trait.

At minimum, the following traits must be defined for each device and for all target device trait sets:

An implementation may define additional DEVICE, TARGET_DEVICE, and IMPLEMENTATION traits. These additional traits are extension traits.

The dynamic properties of a program at any point in its execution are specified by the dynamic trait set. The DATA STATE trait is a dynamic trait that refers to the complete data state of the program that can be accessed at runtime.