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

more timing stats #931

Merged
merged 1 commit into from
Jun 25, 2019
Merged

more timing stats #931

merged 1 commit into from
Jun 25, 2019

Conversation

stevengj
Copy link
Collaborator

Continuation of #927. If fields::verbose() is set, then it prints out timing values from every process.

@oskooi
Copy link
Collaborator

oskooi commented Jun 25, 2019

$ mpirun -np 3 python ~/meep/python/examples/refl-angular.py
...
...
Field time usage:
        connecting chunks: 0.000521342 s +/- 1.58173e-05 s
            time stepping: 2.46249 s +/- 0.013184 s
            communicating: 0.91695 s +/- 0.0118404 s
     Fourier transforming: 0.248497 s +/- 0.338284 s
          everything else: 2.76524 s +/- 0.339444 s


Field time usage for all processes:
        connecting chunks: 0.000524998, 0.000504017, 0.000535011
            time stepping: 2.44917, 2.47553, 2.46278
          copying borders: 0, 0, 0
            communicating: 0.930335, 0.907844, 0.91267
        outputting fields: 0, 0, 0
     Fourier transforming: 0.639113, 0.0527964, 0.0535817
                      MPB: 0, 0, 0
        getting farfields: 0, 0, 0
          everything else: 2.37331, 2.9575, 2.96492

@stevengj
Copy link
Collaborator Author

That looks good — note that the data is only printed to six significant digits, if you take this data and compute std in numpy or whatever, it will only reproduce the computed std dev approximately (the last digit will generally not match).

@stevengj stevengj merged commit 7a4909b into master Jun 25, 2019
@stevengj stevengj deleted the moretime branch June 25, 2019 17:18
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
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