Skip to content

Commit

Permalink
Enable build with SIMD for pymomentum (#28)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Aug 26, 2024
2 parents 942802d + 08feffd commit 25ef6a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
12 changes: 0 additions & 12 deletions recipe/disable-simd-for-pymomentum.patch

This file was deleted.

14 changes: 14 additions & 0 deletions recipe/fix-arm-detect-on-mac.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

diff --git a/cmake/mt_defs.cmake b/cmake/mt_defs.cmake
index b6e4924f..0a2dca67 100644
--- a/cmake/mt_defs.cmake
+++ b/cmake/mt_defs.cmake
@@ -151,7 +151,7 @@ function(mt_library)
target_compile_options(${_ARG_NAME} ${type} "/arch:AVX")
target_compile_options(${_ARG_NAME} ${type} "/arch:AVX2")
elseif(APPLE)
- if(CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
target_compile_options(${_ARG_NAME} ${type} -march=armv8-a)
else()
target_compile_options(${_ARG_NAME} ${type} -march=native)
4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ source:
- url: https://github.com/facebookincubator/momentum/archive/v{{ version }}.tar.gz
sha256: 636ae9073640c2f85f35741bf0d7ba4044697b1f59e22371ce1df41876e8e40f
patches:
- disable-simd-for-pymomentum.patch
- fix-arm-detect-on-mac.patch
- use-ninja-for-pymomentum.patch

build:
number: 1
number: 2
skip: true # [py<310]

outputs:
Expand Down

0 comments on commit 25ef6a2

Please sign in to comment.