Skip to content

Stream the bubble's shell pieces and count the warm start's rows in the memory estimate - #198

Merged
Julpe merged 1 commit into
mainfrom
MemoryEstimatorAccuracy
Dec 2, 2026
Merged

Julpe merged 1 commit into
mainfrom
MemoryEstimatorAccuracy

Conversation

@Julpe

@Julpe Julpe commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

Follow-up to #197. The bubble keeps one running sum of its shell instead of its pieces, and the memory estimator counts the warm start's rows and the memory it missed. All results are bit-identical.

  • Bubble. With a shell, the transformed pieces of the outer columns are added to one sum per bosonic frequency as they arrive, instead of being stored until all have arrived. The pieces run first, one pass per piece, so they are still added in their order and the sum does not depend on the rank count. At 70^3 (core 40, shell 100, 2 x 96 ranks) this saves about 12 GiB per node in complex64 during the bubble build; the kernel section stays the larger peak.
  • Warm start. Since Sum the bubble's shell columns in real space and speed up the warm start and Eliashberg matvec #197 every rank sums the start's occupation on its own momenta, with its rows extended onto the DMFT box. The occupation branch did not count these rows: about 82 GiB per node at 70^3 with niv_dmft = 1000 in complex128. It now counts each rank's rows on the niv_cut box during the mu search and its rows extended onto the DMFT box during the occupation sum.
  • Full vertex. A test asserts that the full vertex is bit-identical outside the core box, which the summed bubble shell relies on.
  • Pairing vertex and kernel section. The pairing-vertex step now counts the finished density vertex held during the magnetic build, the vertex middle, and the singlet/triplet combination's three vertices (about 69 / 137 GiB per node at 70^3 in complex64 / complex128, which landed above the node line before). The kernel section counts the bubble's two frequency sums and both channels' last susceptibilities.
  • Auto-symmetry data. Every baseline counts what each rank holds of an auto grid: the grid action of every group element, the momentum and real-space point-group maps where the grid has them (not for a single band, complex rotations or a single operation), the grid-action cache (in full only with Eliashberg), and the Eliashberg star cache. About 16 GiB per node at 70^3 with 8 elements, 4 bands and Eliashberg. A test traces the bytes a rank keeps of a broadcast 12^3 grid against the estimate, with 1 and 3 orbitals, with and without Eliashberg.

@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Julpe
Julpe force-pushed the MemoryEstimatorAccuracy branch from 535cbb3 to f2d5f22 Compare December 2, 2026 07:37
@Julpe Julpe changed the title Stream bubble shells and refine memory estimates Count the warm start's rows in the occupation estimate Dec 2, 2026
@Julpe Julpe changed the title Count the warm start's rows in the occupation estimate Stream the bubble's shell pieces and count the warm start's rows in the memory estimate Dec 2, 2026
@Julpe
Julpe force-pushed the MemoryEstimatorAccuracy branch from 7a97c47 to 42a2235 Compare December 2, 2026 09:13
@Julpe
Julpe marked this pull request as ready for review December 2, 2026 09:40
@Julpe
Julpe force-pushed the MemoryEstimatorAccuracy branch from 4745788 to e40c05f Compare December 2, 2026 10:34
@Julpe
Julpe force-pushed the MemoryEstimatorAccuracy branch from d64b531 to 6be7a99 Compare December 2, 2026 13:09
@Julpe
Julpe merged commit 4802218 into main Dec 2, 2026
13 checks passed
@Julpe
Julpe deleted the MemoryEstimatorAccuracy branch December 2, 2026 13:46
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