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

Speed up simulation? #1726

Closed
ghost opened this issue Aug 9, 2021 · 2 comments
Closed

Speed up simulation? #1726

ghost opened this issue Aug 9, 2021 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 9, 2021

Hi,

I followed this tutorial in order to import a coupler. However, the width of my window is much wider than the tutorial, which makes the simulation last very long. (Even by exploiting the symmetries of the system) As I have a lot simulations to do, do you have any tips to speed it up ?

For information, I use vscode with WSL1. I've read that WSL takes as much RAM as possible by default, but I don't seem to have that on my computer. Do you know how to allocate more memory to WSL1?

Otherwise, would it be much faster directly with a linux distribution?

Thank you for your help!

@oskooi
Copy link
Collaborator

oskooi commented Aug 9, 2021

Meep 1.20 which will hopefully be released this week will introduce four new features for improving runtime performance that you can try out:

  • switching from double- to single-precision floating point for the time domain and DFT fields (note: this will require building Meep from source using the --enable-single compiler flag)
  • decimation of the DFT time series updates used by the mode monitors
  • cache-oblivious loop tiling for the step-curl field updates (executed at every timestep by all voxels)
  • improved chunk-to-chunk communication

Separately, we are working on a number of other performance-related enhancements: (1) improving the load balancing of parallel simulations through better cell partitioning using the split_chunks_evenly=False flag of the Simulation object and (2) using multi-threading for the time stepping (#1627). Stay tuned for more details.

@oskooi oskooi added the question label Aug 9, 2021
@oskooi
Copy link
Collaborator

oskooi commented Aug 11, 2021

Closed by #1723 and release of Meep 1.20.0.

@oskooi oskooi closed this as completed Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant