Intel® oneAPI DPC++/C++ Compiler
Developer Guide and Reference
fopenmp-force-usm
Compiles each compilation unit as if it contains a !$OMP REQUIRES UNIFIED_SHARED_MEMORY directive.
Syntax
Linux: |
-fopenmp-force-usm -fno-openmp-force-usm |
Windows: |
/Qopenmp-force-usm /Qopenmp-force-usm |
Arguments
None
Default
OFF |
The default is to not compile each compilation unit as if a $OMP REQUIRES UNIFIED_SHARED_MEMORY appears, unless one appears in the source. |
Description
When the option is enabled, the compiler behaves as if each compilation unit contains a !$OMP REQUIRES UNIFIED_SHARED_MEMORY directive.
The option has no effect if one of the following options is not specified:
-fiopenmp (Linux) or /Qiopenmp (Windows)
-fopenmp-targets (Linux) or /Qopenmp-targets (Windows)
-fopenmp-target-do-concurrent (Linux) or /Qopenmp-target-do-concurrent (Windows)
IDE Equivalent
Alternate Options
None
Example
Linux
ifx -fopenmp-force-usm -fiopenmp -fopenmp-targets=spir64 -fopenmp-target-do-concurrent test.f90
Windows
ifx /Qopenmp-force-usm /Qiopenmp /Qopenmp-targets=spir64 /Qopenmp-target-do-concurrent test.f90