Skip to content

Commit

Permalink
Explicitly link to OpenMP (#290)
Browse files Browse the repository at this point in the history
* Explicitly link to OpenMP

* Add explicit link to jemalloclocal

* Add  -fopenmp=libomp

* Skip arm64 tests

* Force preprocessor OpenMP

* Fix typo in YAML

* Remove preprocessor

* Switch to conda clang

* Revert "Switch to conda clang"

This reverts commit 9de1e3d.

* Remove -fopenmp

* Add some debug output

* Use ARCHFLAGS instead of CIBW_BUILD

* Add -y to conda create

* Remove debug output

* Allow for empty ARCHFLAGS

* Remove additional linkages
  • Loading branch information
xhochy authored Aug 16, 2023
1 parent fbf7755 commit 44e9a97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
env:
CIBW_ARCHS_LINUX: auto
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_TEST_SKIP: '*-macosx_arm64'

- uses: actions/upload-artifact@v3
with:
Expand Down
7 changes: 3 additions & 4 deletions build_tools/prepare_macos_wheel.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash

set -e
set -x
set -exuo pipefail

if [[ "$CIBW_BUILD" == *-macosx_arm64 ]]; then
if [[ "${ARCHFLAGS:-}" == *arm64 ]]; then
CONDA_CHANNEL="conda-forge/osx-arm64"
else
CONDA_CHANNEL="conda-forge/osx-64"
fi

conda create -n build -c $CONDA_CHANNEL jemalloc-local xsimd llvm-openmp
conda create -y -n build -c $CONDA_CHANNEL jemalloc-local xsimd llvm-openmp

0 comments on commit 44e9a97

Please sign in to comment.