Skip to content

Commit

Permalink
don't build with openmp
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Aug 20, 2024
1 parent aea4e7f commit 2e3499b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install dependencies on macOS
if: runner.os == 'macOS'
run: |
brew install llvm libomp
- name: Build wheels
uses: pypa/[email protected]

Expand Down
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ endif()
# Compiler-specific options
if(MSVC)
# Use MSVC optimization levels and OpenMP setup
target_compile_options(_clustering PRIVATE /O2 /std:c++17 /openmp:llvm)
target_compile_options(_clustering PRIVATE /O2 /std:c++17)
# /openmp:llvm
else()
# Assuming GCC or Clang
target_compile_options(_clustering PRIVATE -O3 -fopenmp)
target_compile_options(_clustering PRIVATE -O3)
# -fopenmp
endif()

# Example debugging
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ test-requires = "pytest"
archs = ["native"]

[tool.cibuildwheel.macos.environment]
CC = "/usr/local/opt/llvm/bin/clang"
CPPFLAGS = "-I/opt/homebrew/opt/libomp/include"
CXX = "/usr/local/opt/llvm/bin/clang++"
LDFLAGS = "-L/opt/homebrew/opt/libomp/lib"
# CC = "/usr/local/opt/llvm/bin/clang"
# CPPFLAGS = "-I/opt/homebrew/opt/libomp/include"
# CXX = "/usr/local/opt/llvm/bin/clang++"
# LDFLAGS = "-L/opt/homebrew/opt/libomp/lib"
MACOSX_DEPLOYMENT_TARGET = "10.14" # Needed for full C++17 support on MacOS

[tool.codespell]
Expand Down

0 comments on commit 2e3499b

Please sign in to comment.