OpenMP: Difference between revisions

Jump to navigation Jump to search
86 bytes added ,  6 months ago
Intel compilation flag has changed with time
No edit summary
(Intel compilation flag has changed with time)
Line 23: Line 23:


== Compilation == <!--T:7-->
== Compilation == <!--T:7-->
For the majority of compilers, compiling an OpenMP program is done by simply adding a command-line option to the compilation flags. For the GNU compilers ([[GCC/en|GCC]]), it is <tt>-fopenmp</tt>, but for [[Intel/en|Intel]] it is <tt>-openmp</tt>. For other compilers, please refer to their documentation.  
For most compilers, compiling an OpenMP program is done by simply adding a command-line option to the compilation flags. For the GNU compilers (GCC) it is <tt>-fopenmp</tt>, but for Intel [https://github.com/OpenMathLib/OpenBLAS/issues/1546 depending on the version] it may be <tt>-qopenmp</tt>, <tt>-fopenmp</tt>, or <tt>-openmp</tt>. Please refer to your specific compiler's documentation.


== Directives == <!--T:8-->
== Directives == <!--T:8-->
Bureaucrats, cc_docs_admin, cc_staff
2,879

edits

Navigation menu