Created
December 16, 2016 12:05
-
-
Save marius311/370eef8984015f6f0a68cc8eafc9188f to your computer and use it in GitHub Desktop.
Some simple parallel FFT benchmarks in Julia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkTools | |
x = rand(Complex{Float64}, 2048,2048); | |
y = similar(x) | |
times = map(1:8) do i | |
FFTW.set_num_threads(i) | |
p = plan_fft(x, flags=FFTW.MEASURE) | |
median((@benchmark A_mul_B!($y,$p,$x)).times)/1e6 | |
end | |
println(times) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment