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

CoreNrn: support for rebalanced files.dat #3147

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/coreneuron/io/nrn_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@

nrn_assert(fscanf(fp, "%d\n", &iFile) == 1);
if ((iNum % nrnmpi_numprocs) == nrnmpi_myid) {
// A "-1" entry means that this rank should not be assigned further gid groups.
// It is a way to create files.dat files which deterministically assign gid groups to
// ranks, particularly useful for very large simulations which required load balancing.
if (iFile == -1) {
nrnhines marked this conversation as resolved.
Show resolved Hide resolved
break;

Check warning on line 223 in src/coreneuron/io/nrn_setup.cpp

View check run for this annotation

Codecov / codecov/patch

src/coreneuron/io/nrn_setup.cpp#L223

Added line #L223 was not covered by tests
}
grp[ngrp] = iFile;
ngrp++;
}
Expand Down
Loading