Since gcc on mac doesn't support openmp, what can I do to let it support?

时光毁灭记忆、已成空白 提交于 2019-12-11 02:57:51

问题


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

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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/26232432/since-gcc-on-mac-doesnt-support-openmp-what-can-i-do-to-let-it-support

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!