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

default maximum_cores='none' #221

Merged
merged 2 commits into from
Oct 3, 2024
Merged

default maximum_cores='none' #221

merged 2 commits into from
Oct 3, 2024

Conversation

JarronL
Copy link
Collaborator

@JarronL JarronL commented Oct 3, 2024

Work around for known bug when performing multiprocessing with OLS_C fitting (spacetelescope/jwst#8842 and spacetelescope/jwst#8710) by defaulting to 1 python process during ramp fitting. In addition, this provides slightly better performance during the ramp-fitting process for the C-fitting routine:

  • stage 1 pipeline v1.15.1 with maximum_cores='none': 2m57sec
  • stage 1 pipeline v1.15.1 with maximum_cores='quarter': 3m15sec
  • stage 1 pipeline v1.15.1 with maximum_cores='half': 3m22sec

It appears that memory transfer oveheads for python multiprocessing actually slows down the fitting process. The OLS_C functionality inherently utilizing native multiprocessing without having to spawn new threads and is overall much faster when number of python processes is set to 1 (ie., maximum_cores='none').

Fixes #219

Work around for known bug when performing multiprocessing with OLS_C fitting.
@mperrin mperrin merged commit 86461a9 into develop Oct 3, 2024
4 checks passed
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.

[Bug]: pr-›orig_gdq is NULL.
2 participants