Skip to content
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

Storing the distance matrix in the shared memory in conditioned GMFs calculations #10504

Merged
merged 6 commits into from
Apr 9, 2025

Conversation

micheles
Copy link
Contributor

@micheles micheles commented Apr 4, 2025

This should save memory and improve speed in large calculations. For instance, for the Maule earthquake with 8,043 sites one gets

# before
| calc_175, maxmem=29.0 GB   | time_sec  | memory_mb | counts |
|----------------------------+-----------+-----------+--------|
| total get_mu_tau_phi       | 143.2221  | 1_006     | 3      |

# after
| calc_176, maxmem=4.5 GB    | time_sec  | memory_mb | counts |
|----------------------------+-----------+-----------+--------|
| total get_mu_tau_phi       | 133.9945  | 1_006     | 3      |

@micheles micheles added this to the Engine 3.24.0 milestone Apr 4, 2025
@micheles micheles requested a review from raoanirudh April 4, 2025 06:32
@micheles micheles merged commit 115d83f into master Apr 9, 2025
7 checks passed
@raoanirudh
Copy link
Member

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants