【发布时间】:2017-10-27 16:26:39
【问题描述】:
在 OSX 上安装支持 openMP 的 gcc 的一个 way 正在使用 Homebrew。但是,当我按照通常的指示进行
brew reinstall gcc --without-multilib
它警告我没有与--without-multilib 选项对应的公式,因此这将无效。因此,在此重新安装过程之后,我没有 openMP 支持。这是详细的终端输出。
poulin8:02-prange-parallel-loops poulingroup$ brew --version
Homebrew 1.3.6
Homebrew/homebrew-core (git revision b5afc; last commit 2017-10-27)
poulin8:02-prange-parallel-loops poulingroup$ brew reinstall gcc --without-multilib
==> Reinstalling gcc
Warning: gcc: this formula has no --without-multilib option so it will be ignored!
==> Downloading https://homebrew.bintray.com/bottles/gcc-7.2.0.el_capitan.bottle
Already downloaded: /Users/poulingroup/Library/Caches/Homebrew/gcc-7.2.0.el_capitan.bottle.tar.gz
==> Pouring gcc-7.2.0.el_capitan.bottle.tar.gz
???? /usr/local/Cellar/gcc/7.2.0: 1,486 files, 289.8MB
poulin8:02-prange-parallel-loops poulingroup$
在文件中包含omp.h 并编译时,出现错误
julia.c:447:10: fatal error: 'omp.h' file not found
#include <omp.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
有人可以帮我在支持 openMP 的 OSX 上安装 gcc 吗?
【问题讨论】:
标签: gcc installation openmp homebrew