Calling FFTW on other processes resulting ProcessExitException()

Hello, I am trying to call planned FFT on other processes, however, unsuccessfully:

using Distributed

@everywhere using FFTW
@everywhere FFTW.set_num_threads(1)

x = rand(1024)
plan = plan_rfft(x, flags=FFTW.MEASURE)

# function that do fft actually
f = (x, plan) -> plan * x

# This works on the master process
f(x, plan)

# It causes ProcessExitException()
remotecall_fetch(f, 2, x, plan)

I am on Julia 1.0, FFTW v0.2.4. How may I call FFT other than on master processes? Thank you!

1 Like