-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BBPBGLIB-1027] Fix: Load Balance with multi-populations (#92)
## Context A number of Sonata circuits wouldn't use the load balance object, even though it had been built. See BBPBGLIB-1027 The issue stems from the fact that we compute load balance for a single population, but there was no way to identify which one. That information is required when later instantiating the circuit. ## Scope This PR has two sides of it. 1. As an interim solution before we do load balance for all circuits, we pass the single load_balance object to all. 2. An actual improvement to `LoadBalance`, making it aware of its population, so that - It won't mix and attempt creating a sub load balance out of another population - We can easily identify if the load-balancer is suitable for a given circuit Additionally we _stopped_ enabling `MultiSplit` automatically since it's a pretty advanced and delicate option. Instead, when there are many more cores than cells, a warning is raised. ## Testing ``` neurodamus-py/tests/simulations/v5_sonata $ srun -Aproj16 -n2 neurodamus simulation_config.json --lb-mode=WholeCell --verbose [...] [STEP] LOADING NODES [STEP] Circuit default [VERB] -> Nodes Format: NodeFormat.SONATA, Loader: load_sonata [INFO] Reading Nodes (METype) info from '/gpfs/bbp.cscs.ch/project/proj1/circuits/SomatosensoryCxS1-v5.r0/O1-sonata/sonata/networks/nodes/default/nodes.h5' [INFO] => Cell distribution from Load Balance is valid ``` ## Review * [x] PR description is complete * [x] Coding style (imports, function length, New functions, classes or files) are good * [ ] Unit/Scientific test added * [ ] Updated Readme, in-code, developer documentation
- Loading branch information
1 parent
1e1200d
commit 4adf400
Showing
4 changed files
with
32 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters