Skip to content

MKL: FFTW could not create plan #252

Closed
@JakobAsslaender

Description

@JakobAsslaender

Hi everyone,
certain ffts with the MKL package throw error messages. The minimum working example is:

using FFTW
FFTW.set_provider!("mkl")

Restart Julia

using FFTW
x = randn(ComplexF32, 10,10,64,64);
fft!(x, 3:ndims(x))

which throws this error message:

ERROR: FFTW could not create plan
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] macro expansion
   @ ~/.julia/packages/FFTW/sfy1o/src/fft.jl:600 [inlined]
 [3] (FFTW.cFFTWPlan{ComplexF32, -1, true, 4})(X::Array{ComplexF32, 4}, Y::Array{ComplexF32, 4}, region::UnitRange{Int64}, flags::UInt32, timelimit::Float64)
   @ FFTW ~/.julia/packages/FFTW/sfy1o/src/FFTW.jl:49
 [4] #plan_fft!#8
   @ ~/.julia/packages/FFTW/sfy1o/src/fft.jl:733 [inlined]
 [5] plan_fft!
   @ ~/.julia/packages/FFTW/sfy1o/src/fft.jl:723 [inlined]
 [6] fft!(x::Array{ComplexF32, 4}, region::UnitRange{Int64})
   @ AbstractFFTs ~/.julia/packages/AbstractFFTs/Wg2Yf/src/definitions.jl:63
 [7] top-level scope
   @ REPL[10]:1

I am using Julia 1.8.1 and FFTW v1.5.0.

The error occurs both with 32 and 64 bit floats. It does not occur, if I perform the FFT, e.g., over the dimensions 2:ndims(x).

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions