macOS上的OpenMP/gcc:gcc --without-multilib不可用 [英] OpenMP/gcc on macOS : gcc --without-multilib not available

查看:325
本文介绍了macOS上的OpenMP/gcc:gcc --without-multilib不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

去年,我有一个学校项目,该项目使用OpenMP API进行并行计算.我用Homebrew(brew)工具安装了gcc-6 --without-multilib.它像魅力一样运作.

Last year I had a school project that used the OpenMP API for parallel computing. I installed gcc-6 --without-multilib with the Homebrew (brew) tool. It worked like charm.

今年,由于软件问题,我不得不进行全新的macOS High Sierra全新安装.现在,我似乎无法在没有带有brew的multilib的情况下安装gcc.当我键入" brew info gcc "时,我会看到不同的安装标志,并且在此列表中未显示的是-without-multilib . (我尝试了gcc @ 5,@ 6和@ 7).

This year I had to make a new clean install of macOS High Sierra because of a software issue. Now I can't seem to install gcc without multilib with brew. When I type "brew info gcc", I can see the different install flags, and --without-multilib in not in this list. (I tried gcc@5, @6 and @7).

我尝试安装带有必要标志的gcc(以防万一没有"brew gcc info"文档,没有运气.

I tried installing gcc with the necessary flag (in case it just wasn't documented with "brew gcc info", with no luck.

如果有人有解决方案,我很乐意对其进行测试.

If anyone has a solution, I'd be happy to test it.

谢谢, Clovel

Thanks, Clovel

PS:我显然搜索了我的问题,没有发现任何有用的信息.也许我错过了.

PS : I obviously googled my issue, I didn't find anything useful. Maybe I missed it.

推荐答案

稍作更新.似乎安装gcc 7.0及更高版本可以解决此问题,而无需使用--without-multilib选项.看起来OpenMP支持现在是本地的.

Just a little update. It seems that installing gcc 7.0 and beyond solves the problem, w/o the --without-multilib option. It looks like OpenMP support is native now.

它确实为我解决了这个问题. 不要忘记更新brew,并检查您使用的编译器是否正确.

It did solve the issue for me. Do not forget to update brew, and check that the compiler you ar eusing is the correct one.

'直到下一次,

丁香

这篇关于macOS上的OpenMP/gcc:gcc --without-multilib不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆