OMP_TARGET_OFFLOAD – Controls offloading behaviour#
- Description:
Specifies the behaviour with regard to offloading code to a device. This variable can be set to one of three values -
MANDATORY
,DISABLED
orDEFAULT
.If set to
MANDATORY
, the program will terminate with an error if the offload device is not present or is not supported. If set toDISABLED
, then offloading is disabled and all code will run on the host. If set toDEFAULT
, the program will try offloading to the device first, then fall back to running code on the host if it cannot.If undefined, then the program will behave as if
DEFAULT
was set.- Reference:
OpenMP specification v5.0, Section 6.17