Skip to content

Improve memory estimation for LombScargle#59

Open
astrobatty wants to merge 1 commit intov1.0from
GLS-memory-estimation
Open

Improve memory estimation for LombScargle#59
astrobatty wants to merge 1 commit intov1.0from
GLS-memory-estimation

Conversation

@astrobatty
Copy link
Collaborator

Add accurate GPU memory accounting in lombscargle: import skcuda.fft and include cufft plan workspace estimates (using cufftEstimate1d) for FFT buffers, fix incorrect mem overwrite by using += for FFT buffers, add regularization term to memory tally, and correct per-batch sizing by moving the nbatch multiplication to the end (adjust sparse matrix/vector sizing accordingly). These changes ensure the memory estimator accounts for FFT plan work areas and per-batch allocation correctly.

Add accurate GPU memory accounting in lombscargle: import skcuda.fft and include cufft plan workspace estimates (using cufftEstimate1d) for FFT buffers, fix incorrect mem overwrite by using += for FFT buffers, add regularization term to memory tally, and correct per-batch sizing by moving the nbatch multiplication to the end (adjust sparse matrix/vector sizing accordingly). These changes ensure the memory estimator accounts for FFT plan work areas and per-batch allocation correctly.
@astrobatty astrobatty requested a review from johnh2o2 February 27, 2026 20:01
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

Successfully merging this pull request may close these issues.

1 participant