How to check the version of OpenMP on Linux

前端 未结 6 1671
臣服心动
臣服心动 2020-12-13 08:53

I wonder how to check the version of OpenMP on a Linux remote machine?

I don\'t know where it is installed either.

6条回答
  •  生来不讨喜
    2020-12-13 09:41

    You need to check your gcc version using

    gcc --version
    

    and then see the (incomplete) table below (whose info is gathered from this Wiki article and from this webpage from the OpenMP official website):

    | gcc version | OpenMP version |    Languages    | Offloading |
    |-------------|----------------|-----------------|------------|
    |    4.2.0    |       2.5      |        C        |            |
    |    4.4.0    |       3.0      |        C        |            |
    |    4.7.0    |       3.1      |        C        |            |
    |    4.9.0    |       4.0      |      C, C++     |            |
    |    4.9.1    |       4.0      | C, C++, Fortran |            |
    |      5      |                |                 |     Yes    |
    |     6.1     |       4.5      |      C, C++     |            |
    

    The blank entries are there because I didn't find the corresponding info.

提交回复
热议问题