Skip to content

OpenMP on macOS

Raphael Kim edited this page Mar 9, 2023 · 1 revision

OpenMP not availed on macOS

  • macOS officially not supports openMP with Xcode.
  • But homebrew llvm provides better performance possibility with openMP features with libomp - -fopenmp.

Installing llvm through homebrew

  • brew install llvm

Installing openmp through homebrew for homebrew-llvm

  • brew install libomp

Makefiles for homebrew llvm and openmp.

  • Checkout these files
    • makefiles/Makefile.homebrewllvm
    • makefiles/Makefile.testmachomebrew

Building dylib through Makefile.homebrewllvm

  • make -f makefiles/Makefile.homebrewllvm dylib

macOS version, architecture issue.

  • homebrew llvm don't provide multiple architecture in dylib.