Skip to content

Instantly share code, notes, and snippets.

@kanglicheng
Forked from ijleesw/install-openmp-macos.sh
Created April 6, 2024 03:53
Show Gist options
  • Save kanglicheng/9aa9557940c54dc3841a5037ae17cbda to your computer and use it in GitHub Desktop.
Save kanglicheng/9aa9557940c54dc3841a5037ae17cbda 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment