Skip to content

Commit

Permalink
Disable FFT plan check with FFTW < 3.3.4 (#21546)
Browse files Browse the repository at this point in the history
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.
(cherry picked from commit 6d76c23)
  • Loading branch information
nalimilan authored and tkelman committed May 3, 2017
1 parent 14523c2 commit bb726db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/fft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ let a = randn(10^5,1), p1 = plan_rfft(a, flags=FFTW.ESTIMATE)
@test p1*a p2*a
# make sure threads are actually being used for p2
# (tests #21163).
@test !contains(string(p1), "dft-thr")
@test contains(string(p2), "dft-thr")
if FFTW.version >= v"3.3.4"
@test !contains(string(p1), "dft-thr")
@test contains(string(p2), "dft-thr")
end
end

# fft
Expand Down

0 comments on commit bb726db

Please sign in to comment.