Skip to content

Instantly share code, notes, and snippets.

@ijleesw
Created December 4, 2018 14:45
Show Gist options
  • Save ijleesw/4f863543a50294e3ba54acf588a4a421 to your computer and use it in GitHub Desktop.
Save ijleesw/4f863543a50294e3ba54acf588a4a421 to your computer and use it in GitHub Desktop.
Install OpenMP on MacOS
#!/bin/bash
# Install
brew install llvm
brew install libomp
# Compile
# clang++ test.cpp -o test -Xpreprocessor -fopenmp -lomp
@HeartLaughter
Copy link

it works fine for me, thx alot

@mforotan
Copy link

Does anyone know how to install Libomp without homebrew?
I do not want to use homebrew on my Mac for some limitations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment