-
Notifications
You must be signed in to change notification settings - Fork 241
Try to make lupin working with threads #4333
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
base: main
Are you sure you want to change the base?
Try to make lupin working with threads #4333
Conversation
…thread_an_no_nogil
for more information, see https://pre-commit.ci
| node0 = nodes[0] | ||
| if isinstance(node0, PeakSource) and node0.need_first_call_before_pipeline: | ||
| # See need_first_call_before_pipeline : this trigger numba compilation before the run | ||
| node0._first_call_before_pipeline() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a common function (by default pass) for all nodes? I assume any nodes using a numba kernel would benefit from this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other nodes are more complicated because we need to run the entire chain.
This help now for peak_detection.
Lets see how we can optimize this
This try to make lupin working with thread.
This will be usefull because on windows the spwan and process parrallel is using too much memory
this replace:
#4331
#4309