Enable OpenMP support in clang in Mac OS X (sierra & Mojave)

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’ It seems that clang does not support -fopenmp flag. I could not find any openmp library in homebrew. According … Read more