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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ferdonline
Copy link
Member

@ferdonline ferdonline commented Oct 29, 2024

For MMB (BBPP134-917) we need to be able to load a set of .dat files distributed in given way.
However for the moment CoreNeuron only reads it in plain RoundRobin, which is not suitable to load ranks a different number of files.

This PR

We introduce a mark value (-1 in this case) indicating no-data so that, even with round-robin, we can define precisely which rank will load a given data file. All ranks will be able to jump strides of size N_RANKS (at their respective offset) and find entries targeted at them. Upon seeing a -1 the rank knows it is done and can stop reading.

This is a minor addition which enabled us to load balance and run the MMB simulation

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 67.06%. Comparing base (2abbd25) to head (005577e).

Files with missing lines Patch % Lines
src/coreneuron/io/nrn_setup.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3147      +/-   ##
==========================================
- Coverage   67.06%   67.06%   -0.01%     
==========================================
  Files         571      571              
  Lines      111319   111321       +2     
==========================================
+ Hits        74658    74659       +1     
- Misses      36661    36662       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

✔️ d0f0cfe -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@ferdonline ferdonline changed the title Intoduce a sentinel value to allow loading rebalanced files Introduce a sentinel value to allow loading rebalanced files.dat Oct 29, 2024
@ferdonline ferdonline changed the title Introduce a sentinel value to allow loading rebalanced files.dat CoreNrn: support for rebalanced files.dat Oct 29, 2024
@ferdonline ferdonline marked this pull request as ready for review October 30, 2024 18:05
Copy link

sonarcloud bot commented Nov 6, 2024

Copy link

✔️ 005577e -> Azure artifacts URL

@pramodk pramodk marked this pull request as draft November 10, 2024 08:04
@pramodk
Copy link
Member

pramodk commented Nov 10, 2024

@ferdonline : I am converting this to a draft assuming this is specific to our custom manipulation of files.dat for MMB simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants