OpenMP for Mac OS X El Capitan (Torch7)
Having followed a plethora of guides to achieve proper OpenMP support on OS X, this is how it can be done:
- Install Homebrew
- run “brew update” (don’t skip that 🙂 )
- run “brew install clang-omp”
- add the following lines to ~/.profile
export PATH=/usr/local/bin:$PATH
# CLANG-OMP
export CC=clang-omp
export CXX=clang-omp++# Brew Libs
export C_INCLUDE_PATH=/usr/local/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/local/include:$CPLUS_INCLUDE_PATH
export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
Tags: clang, gcc, mac, macosx, openmp, os x, torch7
Trackback from your site.