Instructs the compiler to only generate a device version of OpenMP* TARGET regions.
Linux: | -fopenmp-offload-mandatory (for Clang compatibility) |
Windows: | /Qopenmp-offload-mandatory |
None
OFF |
When this option is not specified, the compiler generates both a host (CPU) and a target device version of OpenMP TARGET regions; if offloading fails for a TARGET region, it executes on the host. |
This option tells the compiler to generate only a target device (GPU) version of OpenMP TARGET regions. A runtime error is issued if offloading fails.
To use this option, you must enable OpenMP offloading by specifying option -fopenmp-targets (Linux) or /Qopenmp-targets (Windows).
None
The following shows an example of using this option::
Linux
ifx -qopenmp -fopenmp-targets=spir64 -fopenmp-offload-mandatory file.f90
Windows
ifx /Qopenmp /Qopenmp-targets:spir64 /Qopenmp-offload-mandatory file.f90