# Calling FFTW on other processes resulting ProcessExitException()

**URL:** https://discourse.julialang.org/t/calling-fftw-on-other-processes-resulting-processexitexception/14798
**Category:** General Usage
**Tags:** question, fftw, distributed
**Created:** [September 11, 2018, 4:30am UTC](https://discourse.julialang.org/t/calling-fftw-on-other-processes-resulting-processexitexception/14798 "2018-09-11T04:30:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shipengcheng1230](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shipengcheng1230/32/4089_2.png) [@shipengcheng1230](https://discourse.julialang.org/u/shipengcheng1230)
#### Post date: [September 11, 2018, 4:30am UTC](https://discourse.julialang.org/t/calling-fftw-on-other-processes-resulting-processexitexception/14798/1 "2018-09-11T04:30:33Z")

</div>

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

```julia
using Distributed
addprocs(4)

@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!

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [September 11, 2018, 11:06am UTC](https://discourse.julialang.org/t/calling-fftw-on-other-processes-resulting-processexitexception/14798/2 "2018-09-11T11:06:58Z")

</div>

> [@shipengcheng1230](#):
>
> how may I call FFT other than on master processes?

> [@FFTW with @parallel seg faults](https://discourse.julialang.org/t/fftw-with-parallel-seg-faults/10590/2):
>
> You have to create the plan on every worker; there’s no way to send an FFTW plan over the network. (Would be better if this gave a sensible error rather than segfaulting. Maybe if it threw an error during serialization, or serialized to an object that threw an error?)
