Created
December 4, 2018 14:45
-
-
Save ijleesw/4f863543a50294e3ba54acf588a4a421 to your computer and use it in GitHub Desktop.
Install OpenMP on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Install | |
| brew install llvm | |
| brew install libomp | |
| # Compile | |
| # clang++ test.cpp -o test -Xpreprocessor -fopenmp -lomp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mforotan - I am using https://pkgsrc.org for that. It has binary packages for macOS. However, I prefer installing the packages in
~/.local, so I do the pkgsrc manual builds:~/pkgsrcor/usr/local/pkgsrc.cd pkgsrc/boostrap && ./bootstrap --unprivileged --prefix PREFIX ...(check the options)PREFIX/bin,PREFIX/libto yourPATHandDYLD_LIBRARY_PATHrespectivelycd pkgsrc/parallel/openmp && bmake installFor binary packages check here: https://pkgsrc.smartos.org