Visible to Intel only — GUID: GUID-10D8CDE2-900F-4E5B-8826-7DCC65C9E50E
Visible to Intel only — GUID: GUID-10D8CDE2-900F-4E5B-8826-7DCC65C9E50E
fiopenmp, Qiopenmp
Enables recognition of OpenMP* features and tells the parallelizer to generate multi-threaded code based on OpenMP* directives. Provides the ability to offload to a GPU when -fopenmp-targets (or /Qopenmp-targets) is also specified. This feature is only available for ifx.
Syntax
Linux: |
-fiopenmp |
Windows: |
/Qiopenmp |
Arguments
None
Default
OFF |
No OpenMP* multi-threaded code is generated by the compiler. |
Description
This option enables recognition of OpenMP* features and tells the parallelizer to generate multi-threaded code based on OpenMP* directives. The code can be executed in parallel on both uniprocessor and multiprocessor systems.
This option sets option auto.
This option works with any optimization level. Specifying no optimization (-O0 on Linux* or /Od on Windows*) helps to debug OpenMP applications.
To ensure that a threadsafe and/or reentrant runtime library is linked and correctly initialized, the same option should also be used for the link step and for the compilation of the main routine.
If you want to offload to a GPU target, you need to specify -fiopenmp (or /Qiopenmp) along with option -fopenmp-targets (or /Qopenmp-targets).
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |
IDE Equivalent
Visual Studio: Language > OpenMP Support
Alternate Options
Linux: -qopenmp
Windows: /Qopenmp