CVode.poolshrink(1) deletes unused mechanism pools.#2033
Conversation
|
✔️ d2256f2 -> Azure artifacts URL |
|
Just thinking out loud, would it be possible to automatically call |
|
✔️ c8d7eb6 -> Azure artifacts URL |
iomaganaris
left a comment
There was a problem hiding this comment.
I did some tests and this seems to work as expected.
I am just thinking that this should be added to the documentation and maybe we could also add a test about this?
I suppose that if a model is empty (no pool item in use for any pool) that all the memory could be reclaimed. But poolshrink |
I believe that will still imply calls to |
|
@iomaganaris maybe we can merge this and tackle docs/handling in another PR? |
iomaganaris
left a comment
There was a problem hiding this comment.
Sure we can merge this without the docs at the moment. I just have one question looking at the code.
Codecov Report
@@ Coverage Diff @@
## master #2033 +/- ##
==========================================
- Coverage 48.64% 48.63% -0.02%
==========================================
Files 519 519
Lines 116039 116068 +29
==========================================
+ Hits 56447 56449 +2
- Misses 59592 59619 +27
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
✔️ 5fbf643 -> Azure artifacts URL |
* CVode.poolshrink(1) deletes unused mechanism pools. Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch>
* refactoring: drop java code (#1937) * Update removed_features.rst * Fine tune clang-format and fix CI (#2041) * Delete return statement to avoid ASan error. * CVode.poolshrink(1) deletes unused mechanism pools. (#2033) * Pin bokeh<3, don't pin matplotlib (#2048) * Add list(...) for new matplotlib. Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch> Co-authored-by: Olli Lupton <oliver.lupton@epfl.ch> Co-authored-by: nrnhines <michael.hines@yale.edu>
* refactoring: drop java code (#1937) * Update removed_features.rst * Fine tune clang-format and fix CI (#2041) * Delete return statement to avoid ASan error. * CVode.poolshrink(1) deletes unused mechanism pools. (#2033) * Pin bokeh<3, don't pin matplotlib (#2048) * Add list(...) for new matplotlib. Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch> Co-authored-by: Olli Lupton <oliver.lupton@epfl.ch> Co-authored-by: nrnhines <michael.hines@yale.edu>
To delete unused mechanism memory pools (e.g. when you have cleared the model) use
Needs documentation.