如何在 windows 上检查 OpenMP 的版本
How to check the version of OpenMP on windows
我想知道如何使用 Cygwin64 检查 windows 上的 OpenMP 版本。谢谢和问候!
OpenMP 版本与编译器绑定。
您需要先在您的 Cygwin 中检查 GCC 的版本。
OpenMP 规范说:
In implementations that support a preprocessor, the _OPENMP
macro name is defined to have the decimal value yyyymm where yyyy and mm are the year and month designations of the version of the OpenMP API that the implementation supports.
对于不支持 C 风格预处理的 Fortran 实现,integer parameter openmp_version
(由 use omp_lib
和 include 'omp_lib.h'
接口提供)设置为相同的 yyyymm 值。
下面table列出了编号和版本的对应关系(日期是查了here然后和已有的头文件交叉引用)
_OPENMP | OpenMP version
---------+----------------
200011 | 2.0 (Fortran)
200203 | 2.0 (C/C++)
200505 | 2.5
---------+----------------
200805 | 3.0
201107 | 3.5
---------+----------------
201307 | 4.0
201511 | 4.5
---------+----------------
我想知道如何使用 Cygwin64 检查 windows 上的 OpenMP 版本。谢谢和问候!
OpenMP 版本与编译器绑定。 您需要先在您的 Cygwin 中检查 GCC 的版本。
OpenMP 规范说:
In implementations that support a preprocessor, the
_OPENMP
macro name is defined to have the decimal value yyyymm where yyyy and mm are the year and month designations of the version of the OpenMP API that the implementation supports.
对于不支持 C 风格预处理的 Fortran 实现,integer parameter openmp_version
(由 use omp_lib
和 include 'omp_lib.h'
接口提供)设置为相同的 yyyymm 值。
下面table列出了编号和版本的对应关系(日期是查了here然后和已有的头文件交叉引用)
_OPENMP | OpenMP version
---------+----------------
200011 | 2.0 (Fortran)
200203 | 2.0 (C/C++)
200505 | 2.5
---------+----------------
200805 | 3.0
201107 | 3.5
---------+----------------
201307 | 4.0
201511 | 4.5
---------+----------------