Skip to content

Commit

Permalink
try finufft method of installing openmp
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarrison committed Apr 29, 2024
1 parent a1c2bc4 commit 33fce4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Set OpenMP env for macos-14
if: matrix.os == 'macos-14'
run: |
pkg=$(brew fetch --force --bottle-tag=arm64_ventura libomp | grep 'Downloaded to' | cut -d' ' -f3)
brew install $pkg
echo $(brew --prefix libomp)
echo "LDFLAGS=$LDFLAGS -L/opt/homebrew/opt/libomp/lib" >> $GITHUB_ENV
echo "CXXFLAGS=$CXXFLAGS -I/opt/homebrew/opt/libomp/include" >> $GITHUB_ENV
Expand All @@ -34,6 +37,10 @@ jobs:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

make_sdist:
name: Make SDist
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ repair-wheel-command = [
]

[tool.cibuildwheel.macos]
before-all = "brew install libomp"
# before-all = "brew install libomp"
repair-wheel-command = [
'delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}',
'case "$(basename {wheel})" in *"-abi3-"*) pipx run abi3audit --strict --report {wheel};; esac',
Expand Down
2 changes: 1 addition & 1 deletion src/nifty_ls/finufft.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from timeit import default_timer as timer

# import finufft
import finufft
import numpy as np

from . import cpu_helpers
Expand Down

0 comments on commit 33fce4a

Please sign in to comment.