Skip to content

Instantly share code, notes, and snippets.

@marius311
Created December 16, 2016 12:05
Show Gist options
  • Save marius311/370eef8984015f6f0a68cc8eafc9188f to your computer and use it in GitHub Desktop.
Save marius311/370eef8984015f6f0a68cc8eafc9188f to your computer and use it in GitHub Desktop.
Some simple parallel FFT benchmarks in Julia
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