Visible to Intel only — GUID: GUID-828BA8FF-0A61-4A5D-9F99-9FC6B3172C05
Visible to Intel only — GUID: GUID-828BA8FF-0A61-4A5D-9F99-9FC6B3172C05
fiopenmp, Qiopenmp
Enables recognition of OpenMP* features and tells the parallelizer to generate multi-threaded code based on OpenMP* directives. This feature is only available for ifx.
Syntax
Linux: |
-fiopenmp |
macOS: |
None |
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, option [q or Q]openmp should also be used for the link step and for the compilation of the main routine.
To enable offloading to a specified GPU target, you must also specify option fopenmp-targets (Linux*) or /Qopenmp-targets (Windows).
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 > Process OpenMP Directives
Language > OpenMP Support (for ifx /Qiopenmp)
Alternate Options
Linux: -qopenmp
Windows: /Qopenmp