-
Notifications
You must be signed in to change notification settings - Fork 119
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
nrn_setup: use std::vector for cell_groups (dat_files) #3185
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
c30f255
to
d05e252
Compare
✔️ d05e252 -> Azure artifacts URL |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3185 +/- ##
==========================================
- Coverage 67.06% 67.06% -0.01%
==========================================
Files 572 572
Lines 111073 111074 +1
==========================================
Hits 74488 74488
- Misses 36585 36586 +1 ☔ View full report in Codecov by Sentry. |
This comment has been minimized.
This comment has been minimized.
✔️ 38baa26 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
✔️ 4e0e064 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✔️ 86be204 -> Azure artifacts URL |
✔️ 63a32f6 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
@1uc anything missing here? |
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.
AFAICT, this is now a refactoring that adds more RAII and other improvements, but doesn't seem to have any functional change.
Indeed, there should be no functional changes, including preallocating the vector with the same size as the original array |
This comment has been minimized.
This comment has been minimized.
✔️ 0f55dd6 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
✔️ 1033a0c -> Azure artifacts URL |
Quality Gate passedIssues Measures |
✔️ 1853c77 -> Azure artifacts URL |
Context
Coreneuron
nrn_setup
uses a plainmalloc
'd array for holding the input data cell groups (from files.dat).These arrays, besides being plain old and not self managed, could not grow and had a static size of nfiles/nranks + 1.
However, in the view of the upcoming load balanced input data, each rank may hold a different count of cell groups. Those changes will come as a follow-up PR.
This PR
Refactors this part of the code to replace the data structure by an
std::vector
, which