-
Notifications
You must be signed in to change notification settings - Fork 28
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
NFFT on GPU based on Package Extensions and GPUArrays.jl #136
Conversation
U = params.storeDeconvolutionIdx ? N : ntuple(d->0,D) | ||
tmpVecHat = adapt(arr, zeros(Complex{T}, U)) | ||
|
||
deconvIdx = adapt(arr, Int32.(deconvolveIdx)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I changed the indices to be Int32, as these are usually more efficient for a GPU
|
||
deconvIdx = adapt(arr, Int32.(deconvolveIdx)) | ||
winHatInvLUT = adapt(arr, windowHatInvLUT[1]) | ||
B_ = adapt(arr, Complex{T}.(B)) # Bit hacky |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my test B had an eltype of Float32 and I didn't see a way where I could tell adapt to change the eltype. So I changed it beforehand
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #136 +/- ##
==========================================
- Coverage 88.63% 88.28% -0.35%
==========================================
Files 10 12 +2
Lines 1126 1195 +69
==========================================
+ Hits 998 1055 +57
- Misses 128 140 +12 ☔ View full report in Codecov by Sentry. |
This PR adds a new NFFT plan which is essentially just a copy of the current CuNFFT Plan. However, in this PR the plan is writing in a GPU-agnostic way and will work for any GPU implementing an FFT-Plan.
The plan can also be tested with JLArrays in CI without requiring a GPU