Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update necessary for the new version of CUDA.jl #2

Open
BoundaryValueProblems opened this issue Sep 27, 2024 · 0 comments
Open

Update necessary for the new version of CUDA.jl #2

BoundaryValueProblems opened this issue Sep 27, 2024 · 0 comments

Comments

@BoundaryValueProblems
Copy link

With CUDA.jl v5.5.0 and above, the following part in src/Utils.jl does not work anymore. I asked the question on CUDA.jl: JuliaGPU/CUDA.jl#2509 and please see what @maleadt said there. He also suggested looking at the following pull request: https://github.com/JuliaGPU/CUDA.jl/pull/2430/files
Here are the two functions need to be changed or perhaps removed?

# TODO this is somewhat kludgy, not sure why cu was converting these back
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

function CUDA.cu(P::FFTW.cFFTWPlan)
    return plan_fft(cu(zeros(eltype(P), P.sz)), P.region)
end
CUDA.cu(P::CUFFT.cCuFFTPlan) = P

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant