-
Notifications
You must be signed in to change notification settings - Fork 35
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
esum is slow #61
Comments
we should also try to mark this function as |
the |
it is also not clear if |
the The code is about 3% faster w/o the I'm going to try to do a custom sum for 3 elements next. |
PR #65 addresses some of this |
should this still be open? |
I think it should still be open. We still have improvements we can make. |
Closing, I've done all I plan to do on esum at the moment -- the optimizations we've already thought of have been done, and new ones can be in a new issue. |
We use
esum()
to do exact sums of specific terms in the RHS of the ODEs to prevent roundoff. Butesum()
is slow. At the moment, we have a general routine with a largemax_esum_size
-- this also causes trouble on the GPUs.We should experiment with creating specific
esum()
routines for the number of terms involved, e.g.,esum3()
,esum4()
,esum5()
, ...We know this ahead of time, since we are explicitly calling
esum()
on specific combination of terms in rate equations.The text was updated successfully, but these errors were encountered: