| OPENMP API Specification: Version 5.1 November 2020


The OMP_TARGET_OFFLOAD environment variable sets the initial value of the target-offload-var ICV. The value of the OMP_TARGET_OFFLOAD environment variable must be one of the following:

mandatory | disabled | default

The mandatory value specifies that program execution is terminated if a device construct or device memory routine is encountered and the device is not available or is not supported by the implementation. Support for the disabled value is implementation defined. If an implementation supports it, the behavior is as if the only device is the host device.

The default value specifies the default behavior as described in Section 1.3.


% setenv OMP_TARGET_OFFLOAD mandatory  

Cross References