# CUDA fft wrapper problem

**URL:** <https://discourse.julialang.org/t/cuda-fft-wrapper-problem/29540>\
**Category:** GPU\
**Tags:** fftw, cudanative, cuda\
**Created:** [October 6, 2019, 3:22am UTC](https://discourse.julialang.org/t/cuda-fft-wrapper-problem/29540 "2019-10-06T03:22:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Benton](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Michael\_Benton](https://discourse.julialang.org/u/Michael_Benton)\
**Post date:** [October 6, 2019, 3:22am UTC](https://discourse.julialang.org/t/cuda-fft-wrapper-problem/29540/1 "2019-10-06T03:22:28Z")

</div>

A 1d fft across the 2nd dimension of 3 dimensional CuArray is not enabled by the wrapper (ERROR: ArgumentError: batching dims must be sequential)

to reproduce:  
dim = 2  
data = CuArrays.rand(ComplexF32,512,512,512);  
myFft = plan\_fft!(data,dim);

the wrapper for cpu arrays allows this, and if dim is 1 or 3 it also works as expected for cuArrays

---

<div class="post-metadata">

**Author:** ![Agdestein](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/agdestein/32/52447_2.png) [@Agdestein](https://discourse.julialang.org/u/Agdestein)\
**Post date:** [August 24, 2023, 12:56pm UTC](https://discourse.julialang.org/t/cuda-fft-wrapper-problem/29540/2 "2023-08-24T12:56:29Z")

</div>

See this discussion: [https://github.com/JuliaGPU/CUDA.jl/issues/119](https://github.com/JuliaGPU/CUDA.jl/issues/119)
