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

avoid range allocation in SROCK step #506

Merged
merged 4 commits into from
Sep 30, 2022
Merged

Conversation

axsk
Copy link
Contributor

@axsk axsk commented Sep 30, 2022

fixes #478
note there is still 2 similar lines for the constant cached versions, which don't use inplace assignment. I don't know if the change is necessary there too.

fixes SciML#478
note there is still 2 similar lines for the constant cached versions, which don't use inplace assignment.
I don't know if the change is necessary there too.
Comment on lines 336 to 338
rand!(W.rng, vec_χ)
else
rand!(vec_χ)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the noise wrapper it should just forward it to W.W.rng

Copy link
Contributor Author

@axsk axsk Sep 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess its W.source.rng

This reverts commit de61047.
Is handled in its own
src/perform_step/SROCK_perform_step.jl Outdated Show resolved Hide resolved
src/perform_step/SROCK_perform_step.jl Outdated Show resolved Hide resolved
src/perform_step/SROCK_perform_step.jl Outdated Show resolved Hide resolved
src/perform_step/SROCK_perform_step.jl Outdated Show resolved Hide resolved
compute abs_dt outside broadcast
reuse dwrange instead of creating new range

Co-authored-by: David Widmann <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 41a06be into SciML:master Sep 30, 2022
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.

Allocation in SROCK2 solver
3 participants