Installing OpenMP on Mac OS X 10.11

前端 未结 6 1851
悲&欢浪女
悲&欢浪女 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条回答
  •  遥遥无期
    2020-11-30 03:48

    macOS High Sierra Version 10.13.6 (17G65)

    1. Install gcc

    brew reinstall gcc --without-multilib

    2. Compile

    gcc-8 -Wall -fopenmp your-parallel-program.c

    Notice the gcc-8 watch the version brew installs, yours may be gcc-7 or gcc-9

    ==> Pouring gcc-8.2.0.high_sierra.bottle.1.tar.gz

提交回复
热议问题