Skip to content

GEOPY-3042: Investigate low CPU usage for MVI-PDE - #168

Merged
domfournier merged 8 commits into
developfrom
GEOPY-3042
Aug 13, 2026
Merged

GEOPY-3042: Investigate low CPU usage for MVI-PDE#168
domfournier merged 8 commits into
developfrom
GEOPY-3042

Conversation

@domfournier

@domfournier domfournier commented Aug 12, 2026

Copy link
Copy Markdown

GEOPY-3042 - Investigate low CPU usage for MVI-PDE

Copilot AI lite review requested due to automatic review settings August 12, 2026 20:50
@github-actions github-actions Bot changed the title GEOPY-3042 GEOPY-3042: Investigate low CPU usage for MVI-PDE Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR investigates low CPU usage in the Dask-based MVI-PDE magnetic simulation by restructuring how distance-based weighting work is partitioned and distributed across workers.

Changes:

  • Refactors distance_weights usage to submit index blocks (and scatter shared arrays once) instead of shipping location blocks per task.
  • Introduces per-call reuse of the computed G.T @ W.T @ W @ G diagonal via _gtg_diagonal caching.
  • Adds support for incorporating per-datum weights (W) into the distance-weight accumulation.
Suppressed comments (1)

simpeg/dask/potential_fields/magnetics/simulation_pde.py:99

  • If the cache is bypassed for W is not None, avoid overwriting the cached _gtg_diagonal (otherwise a weighted call will poison the cached unweighted diagonal).
                        dtype=np.float32,

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread simpeg/dask/potential_fields/magnetics/simulation_pde.py
Comment thread simpeg/dask/potential_fields/magnetics/simulation_pde.py
Comment thread simpeg/dask/potential_fields/magnetics/simulation_pde.py Outdated
Comment thread simpeg/dask/potential_fields/magnetics/simulation_pde.py Outdated
@domfournier
domfournier merged commit e1ba45a into develop Aug 13, 2026
13 checks passed
@domfournier
domfournier deleted the GEOPY-3042 branch August 13, 2026 17:18
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.

3 participants