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

Update that increases performance (AcousticWave2D) #594

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

guaacoelho
Copy link

Hey, my name is Gustavo Coelho. I hope this PR is useful for you.

During the creation of the Born operator, Devito uses an optimization technique that caches the result so that for subsequent executions with the same parameters, it doesn't need to recreate the operator, but simply retrieves it from the cache.

However, with a new solver being created for each shot, Pylops couldn't take advantage of this feature. This PR aims to address this issue by moving the creation of the solver outside the shots iteration loop.

Additionally, we are working on other features for Pylops and plan to make further contributions soon.

@guaacoelho guaacoelho changed the title Update that increases performance (AcousitcWave2D) Update that increases performance (AcousticWave2D) Jul 26, 2024
@mrava87 mrava87 merged commit af1530a into PyLops:dev Jul 26, 2024
15 checks passed
@mrava87
Copy link
Collaborator

mrava87 commented Jul 26, 2024

Hello @guaacoelho,
thanks for this PR!

I knew about the caching of Devito but didn't realize that it would only work if the solver is not re-created, that definitely makes sense.

I am going to merge this PR. Looking forward to more features :)

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.

2 participants