Skip to content

Commit

Permalink
ci(macos): use omp enabled homebrew-llvm-clang
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaneed committed Aug 20, 2024
1 parent 50b56a2 commit 61c77c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
if: ${{ runner.os != 'Windows' }}
- name: Install dependencies
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
export CC="$(brew --prefix llvm@15)/bin/clang"
export CXX="$(brew --prefix llvm@15)/bin/clang++"
fi
conda info
conda install -c conda-forge numpy cython h5py
python -m pip install --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _get_openmp_flags():
os.environ.get('CXX') is not None):
return ['-fopenmp'], ['-fopenmp']
else:
return ['-Xpreprocessor', '-fopenmp'], ['-lomp']
return ['-Xpreprocessor', '-fopenmp'], ['-lomp', '-L/opt/homebrew/lib']
else:
return ['-fopenmp'], ['-fopenmp']

Expand Down

0 comments on commit 61c77c0

Please sign in to comment.