1
1
class Fftw < Formula
2
2
desc "C routines to compute the Discrete Fourier Transform"
3
3
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"
7
6
8
7
bottle do
9
8
cellar :any
@@ -30,6 +29,7 @@ def install
30
29
"--disable-dependency-tracking" ]
31
30
simd_args = [ "--enable-sse2" ]
32
31
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?
33
33
34
34
args << "--disable-fortran" if build . without? "fortran"
35
35
args << "--enable-mpi" if build . with? "mpi"
@@ -38,15 +38,15 @@ def install
38
38
ENV . universal_binary if build . universal?
39
39
40
40
# 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
42
42
system "./configure" , "--enable-single" , *( args + simd_args )
43
43
system "make" , "install"
44
44
45
45
# clean up so we can compile the double precision variant
46
46
system "make" , "clean"
47
47
48
48
# 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
50
50
system "./configure" , *( args + simd_args )
51
51
system "make" , "install"
52
52
0 commit comments