CUDA.jl icon indicating copy to clipboard operation
CUDA.jl copied to clipboard

`rCuFFTPlan` not defined

Open BoundaryValueProblems opened this issue 4 months ago • 1 comments

The following line was working previously at version 5.4.3.. However, with v5.5.2, it fails to precompile:

function CUDA.cu(P::FFTW.rFFTWPlan)
    return plan_rfft(cu(zeros(real(eltype(P)), P.sz)), P.region)
end
CUDA.cu(P::CUFFT.rCuFFTPlan) = P

The above generates the error: rCuFFTPlan not defined.

For v5.4.3 and earlier, we had to do the above since CUDA.cu did not accept FFTW.rFFTWPlan. For v5.5.2, does it accept FFTW.rFFTWPlan directly so that the above conversion function is not necessary anymore? Thanks a lot for your help!

BoundaryValueProblems avatar Sep 27 '24 18:09 BoundaryValueProblems