我可以检查我安装了哪个版本的OpenMP吗?

时间:2021-01-27 06:58:32

I am trying to find out which version of OpenMP is installed on my machine. It's a Linux box I am connected to using ssh.

我正在尝试找出在我的机器上安装了哪个版本的OpenMP。它是一个我与使用ssh连接的Linux框。

I am using gcc to compile using -fopenmp.

我正在使用gcc来使用-fopenmp进行编译。

2 个解决方案

#1


8  

With gcc, I suppose you should be looking for the compiler version

使用gcc,我认为您应该寻找编译器版本

gcc -v

Perhaps in combination with the version of libgomp

也许与libgomp的版本结合使用

ls -ltr /usr/lib/libgomp.so.1*

e.g.

如。

-rw-r--r-- 1 root root 46652 2010-09-27 23:00 /usr/lib/libgomp.so.1.0.0

-rw-r- 1根46652 2010-09-27 23:00 /usr/ libgomp.so.1.0.0

Depending on your distro this might give more info:

根据你的发行版,这可能会提供更多的信息:

dpkg --status libgomp

E.g:

例句:

Package: libgomp1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 84
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: gcc-4.5
Version: 4.5.1-7ubuntu2
Depends: gcc-4.5-base (= 4.5.1-7ubuntu2), libc6 (>= 2.6)
Description: GCC OpenMP (GOMP) support library
 GOMP is an implementation of OpenMP for the C, C++, and Fortran 95 compilers
 in the GNU Compiler Collection.
Homepage: http://gcc.gnu.org/
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>

In my case it confirms that the version matches gcc

在我的例子中,它确认了版本与gcc匹配

#2


15  

Quoting from the GCC wiki page containing information on the OpenMP specification:

引用包含OpenMP规范信息的GCC wiki页面:

As of GCC 4.2, the compiler implements version 2.5 of the OpenMP specification, as of 4.4 it implements version 3.0 and since GCC 4.7 it supports the OpenMP 3.1 specification. GCC 4.9 supports OpenMP 4.0 with the follow exceptions (as of 2013-11-28): the new 4.0 directives are not yet supported in Fortran and omp target will always run on the host

在GCC 4.2中,编译器实现了OpenMP规范的版本2.5,它实现了3.0版本,而GCC 4.7支持OpenMP 3.1规范。GCC 4.9支持OpenMP 4.0,但有以下例外情况(2013-11-28):Fortran和omp target还不支持新的4.0指令

#1


8  

With gcc, I suppose you should be looking for the compiler version

使用gcc,我认为您应该寻找编译器版本

gcc -v

Perhaps in combination with the version of libgomp

也许与libgomp的版本结合使用

ls -ltr /usr/lib/libgomp.so.1*

e.g.

如。

-rw-r--r-- 1 root root 46652 2010-09-27 23:00 /usr/lib/libgomp.so.1.0.0

-rw-r- 1根46652 2010-09-27 23:00 /usr/ libgomp.so.1.0.0

Depending on your distro this might give more info:

根据你的发行版,这可能会提供更多的信息:

dpkg --status libgomp

E.g:

例句:

Package: libgomp1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 84
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: gcc-4.5
Version: 4.5.1-7ubuntu2
Depends: gcc-4.5-base (= 4.5.1-7ubuntu2), libc6 (>= 2.6)
Description: GCC OpenMP (GOMP) support library
 GOMP is an implementation of OpenMP for the C, C++, and Fortran 95 compilers
 in the GNU Compiler Collection.
Homepage: http://gcc.gnu.org/
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>

In my case it confirms that the version matches gcc

在我的例子中,它确认了版本与gcc匹配

#2


15  

Quoting from the GCC wiki page containing information on the OpenMP specification:

引用包含OpenMP规范信息的GCC wiki页面:

As of GCC 4.2, the compiler implements version 2.5 of the OpenMP specification, as of 4.4 it implements version 3.0 and since GCC 4.7 it supports the OpenMP 3.1 specification. GCC 4.9 supports OpenMP 4.0 with the follow exceptions (as of 2013-11-28): the new 4.0 directives are not yet supported in Fortran and omp target will always run on the host

在GCC 4.2中,编译器实现了OpenMP规范的版本2.5,它实现了3.0版本,而GCC 4.7支持OpenMP 3.1规范。GCC 4.9支持OpenMP 4.0,但有以下例外情况(2013-11-28):Fortran和omp target还不支持新的4.0指令