Skip to content

Commit 374d5a4

Browse files
committed
Install OpenMP on macos to try to resolve macos13 problem, install ninja on Windows to try to fix problem with PyTorch not finding compiler, and change Windows compiler options to be separate instead of a single string to try to resolve problem with it not understanding the compiler options
1 parent e8f6ba1 commit 374d5a4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if(CMAKE_BUILD_TYPE MATCHES Release)
9999
set(C_RELEASE_FLAGS "-Ofast")
100100
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Ofast")
101101
elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
102-
set(C_RELEASE_FLAGS "/O2 /fp:fast")
102+
set(C_RELEASE_FLAGS "/O2" "/fp:fast")
103103
endif()
104104
endif()
105105
# --- End Compiler Feature Detection and Flags ---

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} --exclude libcud
5151
before-test = "pip install torch --index-url https://download.pytorch.org/whl/cpu"
5252

5353
[tool.cibuildwheel.windows]
54+
before-test = "pip install ninja"
5455
test-command = "pytest tests/test_scalar.py"
5556

5657
[tool.cibuildwheel.macos]
58+
before-test = "brew install libomp"
5759
test-command = "pytest tests/test_scalar.py"
5860

5961
[tool.scikit-build.sdist]

0 commit comments

Comments
 (0)