I tried to install openmp in OS 10.12.6 following the instructions given here https://www.quora.com/How-do-I-Install-OpenMP-on-Mac-10-11-6
but the simple command
brew install clang-omp
did not work and I got the error
Error: No available formula with the name "clang-omp".
Then following the instructions contained here
brew install clang-omp not working
I tried to reinstall llvm by doing
brew reinstall llvm
and the installation was successful but I see no trace of omp. If I try to compile with g++ or gcc a simple program including <omp.h>
and compiling with the -fopenmp flag I get
clang: error: unsupported option '-fopenmp'
even if I checked that in other cases it has worked (Enable OpenMP support in clang in Mac OS X (sierra)).
I've tried to look for openmp in mac port as well but I haven't managed to find it. Thank you for your help.