Skip to content

Commit

Permalink
add test for JuliaLang#21163
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Mar 27, 2017
1 parent 2caffea commit b8e6afe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/fft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

# issue #19892
# (test this first to make sure it happens before set_num_threads)
let a = randn(10^5,1), p1 = plan_rfft(a)
let a = randn(10^5,1), p1 = plan_rfft(a, flags=FFTW.ESTIMATE)
FFTW.set_num_threads(2)
p2 = plan_rfft(a)
p2 = 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")
end

# fft
Expand Down

0 comments on commit b8e6afe

Please sign in to comment.