Skip to content

Commit 6d76c23

Browse files
nalimilantkelman
authored andcommitted
Disable FFT plan check with FFTW < 3.3.4 (#21546)
fftw_sprint_plan wasn't available in FFTW 3.3.3. Hence show of a plan in FFTW 3.3.3 doesn't actually show the plan contents and the test will fail.
1 parent 9501482 commit 6d76c23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/fft.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ let a = randn(10^5,1), p1 = plan_rfft(a, flags=FFTW.ESTIMATE)
88
@test p1*a p2*a
99
# make sure threads are actually being used for p2
1010
# (tests #21163).
11-
@test !contains(string(p1), "dft-thr")
12-
@test contains(string(p2), "dft-thr")
11+
if FFTW.version >= v"3.3.4"
12+
@test !contains(string(p1), "dft-thr")
13+
@test contains(string(p2), "dft-thr")
14+
end
1315
end
1416

1517
# fft

0 commit comments

Comments
 (0)