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

Force stencil #41

Merged
merged 10 commits into from
Jul 23, 2024
Merged

Force stencil #41

merged 10 commits into from
Jul 23, 2024

Conversation

SCiarella
Copy link
Member

This branch compares several implementation of the Laplace operator, to understand what is the optimal way to implement time and memory efficient forces in Julia.
The test uses the Gray-Scott model on grid of different sizes to compare the performances of different class of algorithms:

  • Old_Laplace is our current implementation that involves reshaping
  • *_c* algorithm that use circshift
  • stencil uses matrix multiplications for the finite differences
  • conv uses the convolution with a kernel
  • *Lux* use Lux framework to perform the convolution as a NN

This is an overview of my results
A

Overall circhift or Lux seems to perform the best. Before drawing a final conclusion I think it is worth to test the results using GPU

@SCiarella SCiarella requested a review from luisaforozco June 17, 2024 10:44
@luisaforozco luisaforozco merged commit 490cc62 into dev Jul 23, 2024
0 of 4 checks passed
@SCiarella SCiarella deleted the force_stencil branch July 26, 2024 09:12
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