Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Contributor
Memory benchmark result| Test Name | %Δ | Master (MB) | PR (MB) | Δ (MB) | Time PR (s) | Time Master (s) |
| -------------------------------------- | ------------ | ------------------ | ------------------ | ------------ | ------------------ | ------------------ |
test_objective_jac_w7x | -2.85 % | 3.960e+03 | 3.847e+03 | -113.00 | 39.03 | 36.42 |
test_proximal_jac_w7x_with_eq_update | -0.16 % | 6.489e+03 | 6.479e+03 | -10.11 | 156.32 | 158.97 |
test_proximal_freeb_jac | 0.21 % | 1.318e+04 | 1.321e+04 | 27.09 | 82.97 | 83.59 |
test_proximal_freeb_jac_blocked | 0.91 % | 7.475e+03 | 7.543e+03 | 67.92 | 71.84 | 73.66 |
test_proximal_freeb_jac_batched | 0.32 % | 7.491e+03 | 7.516e+03 | 24.09 | 70.23 | 72.14 |
test_proximal_jac_ripple | -5.86 % | 3.607e+03 | 3.395e+03 | -211.50 | 60.24 | 65.15 |
test_proximal_jac_ripple_bounce1d | -3.28 % | 3.605e+03 | 3.487e+03 | -118.13 | 73.08 | 76.09 |
test_eq_solve | 1.05 % | 2.006e+03 | 2.027e+03 | 21.12 | 92.28 | 94.30 |For the memory plots, go to the summary of |
f0uriest
previously requested changes
Sep 19, 2025
a6d949b to
d685405
Compare
unalmis
commented
Sep 22, 2025
unalmis
commented
Sep 22, 2025
YigitElma
reviewed
Jan 10, 2026
Collaborator
YigitElma
left a comment
There was a problem hiding this comment.
I assume there is no math error, I couldn't check it very well because it is really hard to follow the code with all the different angle calls and some of function names are ambigious.
Are you planning to maintain the interpax_fft package?
…intainer interpax_fft.
YigitElma
reviewed
Jan 11, 2026
Closed
Collaborator
Author
Yes, and I have resolved your other comments concerning cosmetics in the code comments. |
When drafting a reply to a reviewer comment, I realized that the atomic derivative computed by the autodiff tool for the `spline=True` option is not correct if the bounce point lies near a local maxima. The `spline=False` option is fine. It is unlikely this would have affected optimization. See section 3 of [autodiff.pdf](https://github.com/user-attachments/files/24988182/autodiff.pdf)
Collaborator
Author
|
Someone else who is still working on desc will need to maintain this PR from now on. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Inverse stream maps
Yparameter for Heliotron (NFP=19) in effective ripple tutorial #1928 and increases default objective resolution forY_B.Improvements
low_rammode which is same speed and less memory forobjective.compute, but slower forobjective.gradsince JAX is poor at iterative algorithms.interp_to_argminforBounce2Dfrom fourth order to spectral as required for Alpert quadrature.Usability
kwargsas was needed for my article.interpax#1388.Bugs
test_compute_everything.Benchmarks
Just go to #2026 and run
effective_ripple_profile.py. You will see the large performance improvement frommaster. The CI benchmarks do not reveal this because those benchmarks are essentially just noise. Note that, using the same parameter inputs, the resolution of this branch is also higher thanmasterdue to the faster convergence.use_bounce1d=Trueon that script, you will run out of memory as expected since it is an inferior approach (as expected, you get the OOM in the jacobian before you compute a single bounce integral).nufft_eps=0, you need 175 GB to run that script onmaster(you'll get an OOM and JAX will tell you it needs 175GB), but only 35 GB on this branch.Examples
HELIOTRON
MasterbranchThis branch
W7-X
MasterbranchThis branch
NCSX
MasterbranchThis branch
Removal of spectral aliasing