Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FFTW] Add Apple Silicon support for FFTW #1513

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions fftw/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,24 @@ case $PLATFORM in
make -j $MAKEJ V=0
make install-strip
;;
macosx-*)
patch -Np1 < ../../../fftw-macosx.patch
macosx-x86_64)
patch -Np1 < ../../../fftw-macosx_x86_64.patch
./configure --prefix=$INSTALL_PATH --disable-fortran --enable-shared --enable-threads --with-combined-threads --enable-sse2
make -j $MAKEJ V=0
make install-strip
./configure --prefix=$INSTALL_PATH --disable-fortran --enable-shared --enable-threads --with-combined-threads --enable-sse2 --enable-float
make -j $MAKEJ V=0
make install-strip
;;
macosx-arm64)
patch configure ../../../fftw-macosx_arm64.patch
./configure --prefix=$INSTALL_PATH --enable-threads --enable-neon --enable-armv8-cntvct-el0
make -j $MAKEJ V=0
make install-strip
./configure --prefix=$INSTALL_PATH --enable-threads --enable-neon --enable-armv8-cntvct-el0 --enable-float
make -j $MAKEJ V=0
make install-strip
;;
windows-x86)
./configure --prefix=$INSTALL_PATH --disable-fortran --enable-shared --enable-threads --with-combined-threads --enable-sse2 --enable-avx CC="gcc -m32" --with-our-malloc
make -j $MAKEJ V=0
Expand Down
4 changes: 4 additions & 0 deletions fftw/fftw-macosx_arm64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
3934c3934
< aarch64)
---
> arm)
File renamed without changes.
6 changes: 6 additions & 0 deletions fftw/platform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<version>${project.version}</version>
<classifier>${javacpp.platform.linux-ppc64le}</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${javacpp.moduleId}</artifactId>
<version>${project.version}</version>
<classifier>${javacpp.platform.macosx-arm64}</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${javacpp.moduleId}</artifactId>
Expand Down
Loading