Installing OpenMP on Mac OS X 10.11

前端 未结 6 1856
悲&欢浪女
悲&欢浪女 2020-11-30 03:35

How can I get OpenMP to run on Mac OSX 10.11, so that I can execute scripts via terminal?

I have installed OpenMP: brew install clang-omp

6条回答
  •  萌比男神i
    2020-11-30 03:49

    After install gcc:

    brew install gcc --without-multilib
    

    and export PATH:

    export PATH=/usr/local/bin:$PATH
    

    You may need to export CC, which works for me:

    export CC=/usr/local/bin/gcc
    

    This maybe gcc-7, or whatever.

提交回复
热议问题