Compiling OpenMP on macOS

Panjeh
Jul 5, 2021

Note: Apple does not include OpenMP in the clang they ship, and the gcc in macos is just an alias to clang

Using the gcc compiler:

brew install gcc

Then you can use it by calling gcc-11

gcc-11 -fopenmp

--

--