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

NIRSpec NRS1 and NRS2 PSF creation have very different runtimes #814

Open
eteq opened this issue Mar 1, 2024 · 0 comments
Open

NIRSpec NRS1 and NRS2 PSF creation have very different runtimes #814

eteq opened this issue Mar 1, 2024 · 0 comments

Comments

@eteq
Copy link
Contributor

eteq commented Mar 1, 2024

See the attached snippet from a notebook running the latest WebbPSF.
image (4)

The key points to note are:

  1. Unsurprisingly, the first run is slower than the later ones because various calculations need to be cached.
  2. Much more surprisingly, after the first, there is a consistent trend, independent of execution order, that computing an MSA PSF for the NRS2 detector is ~4x slower than NRS1. Which seems odd since one would think they'd be nearly identical.

(Note: this is on a machine with cupy and a GPU, so it might be using the cupy GPU pathway which may or may not make a difference.)

cc @mperrin (who I discussed a bit with out-of-band about this)

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

No branches or pull requests

1 participant