Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 577145d

Browse files
grandeitAndrew Janke
authored andcommitted
fftw 3.3.5
Closes Homebrew#4143. Signed-off-by: Andrew Janke <[email protected]>
1 parent ee8469b commit 577145d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Formula/fftw.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
class Fftw < Formula
22
desc "C routines to compute the Discrete Fourier Transform"
33
homepage "http://www.fftw.org"
4-
url "http://www.fftw.org/fftw-3.3.4.tar.gz"
5-
sha256 "8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982"
6-
revision 1
4+
url "http://www.fftw.org/fftw-3.3.5.tar.gz"
5+
sha256 "8ecfe1b04732ec3f5b7d279fdb8efcad536d555f9d1e8fabd027037d45ea8bcf"
76

87
bottle do
98
cellar :any
@@ -30,6 +29,7 @@ def install
3029
"--disable-dependency-tracking"]
3130
simd_args = ["--enable-sse2"]
3231
simd_args << "--enable-avx" if ENV.compiler == :clang && Hardware::CPU.avx? && !build.bottle?
32+
simd_args << "--enable-avx2" if ENV.compiler == :clang && Hardware::CPU.avx2? && !build.bottle?
3333

3434
args << "--disable-fortran" if build.without? "fortran"
3535
args << "--enable-mpi" if build.with? "mpi"
@@ -38,15 +38,15 @@ def install
3838
ENV.universal_binary if build.universal?
3939

4040
# single precision
41-
# enable-sse2 and enable-avx works for both single and double precision
41+
# enable-sse2, enable-avx and enable-avx2 work for both single and double precision
4242
system "./configure", "--enable-single", *(args + simd_args)
4343
system "make", "install"
4444

4545
# clean up so we can compile the double precision variant
4646
system "make", "clean"
4747

4848
# double precision
49-
# enable-sse2 and enable-avx works for both single and double precision
49+
# enable-sse2, enable-avx and enable-avx2 work for both single and double precision
5050
system "./configure", *(args + simd_args)
5151
system "make", "install"
5252

0 commit comments

Comments
 (0)