由于Mac上的gcc不支持openmp,我该怎么做才能使其支持? [英] Since gcc on mac doesn't support openmp, what can I do to let it support?

查看:94
本文介绍了由于Mac上的gcc不支持openmp,我该怎么做才能使其支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我在Mac上使用了默认的gcc.但是它不支持openmp. 使用"gcc -v",我得到gcc 4.2.1

At the first,I used the default gcc on my mac.but it does't support openmp. using "gcc -v",I get gcc 4.2.1

因此,我使用brew安装gcc.完成后,使用"gcc -v",它没有任何更改. brew向我提供提示使用'brew reinstall gcc --without-muli'可能不支持openmp" ??
我不记得"muli ???"了准确.我尝试了一下,但没有帮助.

So, I used brew to install gcc. When it is done, using the "gcc -v",it has no changes. the brew give tips to me "openmp may not be supported,using "brew reinstall gcc --without-muli"??
I don't remember the "muli???" accurately.I try that,but It doesn't help.

所以,这是我的问题:如何使我的gcc在Macbook中支持openmp?

So, this is my question: What can I do to make my gcc to support openmp in my macbook?

推荐答案

Brew将以略有不同的名称安装gcc,以免破坏现有的gcc.检查其他gcc的最简单方法是键入gcc-,然后按TAB键以查看有哪些补全.我相信brew的当前gcc是4.9.1,因此在brew上安装gcc之后,您应该可以使用gcc-4.9来访问它.

Brew will install gcc under a slightly different name to not clobber the existing gcc. The easiest way to check for other gcc's is to type gcc- and then hit the TAB key to see what completions there are. I believe brew's current gcc is 4.9.1, so after installing gcc with brew you should be able to access it with gcc-4.9.

这篇关于由于Mac上的gcc不支持openmp,我该怎么做才能使其支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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