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 · 1 comment
Open

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

eteq opened this issue Mar 1, 2024 · 1 comment
Labels
bug Something isn't working JWST Affects JWST models in WebbPSF

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)

@mperrin mperrin added bug Something isn't working JWST Affects JWST models in WebbPSF labels Jul 24, 2024
@mperrin
Copy link
Collaborator

mperrin commented Jul 24, 2024

@eteq out of curiosity are you still having this issue? I never got around to trying to reproduce it (since I don't have an easy access to a GPU machine at work, it's not as straightforward to do so). From your perspective is there still motivation for someone to look into this for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JWST Affects JWST models in WebbPSF
Projects
None yet
Development

No branches or pull requests

2 participants