I am using Mac OS X Sierra and I found that clang (LLVM version 8.1.0 (clang-802.0.38)) does not support OpenMP: when I run clang -fopenmp program_name.c I got the following error:
clang: error: unsupported option '-fopenmp'
-fopenmp doesn't seem to support the -fopenmp flag.
I could not find the openmp library in homebrew. According to the LLVM website, LLVM already supports OpenMP. But I could not find a way to enable it at compile time.
Does this mean that the standard clang on a Mac does not support OpenMP? Could you offer any suggestions?
(When I switch to GCC to compile the same program (gcc installs with brew install gcc --without-multilib ), and the compilation is successful.)
source share