Skip to content

CNRN: Bug fix with the checkpointing of VecPlay instances#2148

Merged
pramodk merged 1 commit into
masterfrom
pramodk/corenrn-checkpoint-bbp-thalamus
Jan 12, 2023
Merged

CNRN: Bug fix with the checkpointing of VecPlay instances#2148
pramodk merged 1 commit into
masterfrom
pramodk/corenrn-checkpoint-bbp-thalamus

Conversation

@pramodk

@pramodk pramodk commented Jan 11, 2023

Copy link
Copy Markdown
Member
  • In thalamus simulations with coreneuron (at BBP) we saw following errors with checkpoining:
  io/nrn_checkpoint.cpp:515: void coreneuron::CheckPoints::write_phase2(coreneuron::NrnThread &) const: Assertion `mtype >= 0' failed.
  • Looking into model loading and checkpointing code we see that due to padding of mechanism data, the VecPlay can have point to the memory address beyond

    ml->data + size_of_mech_instance * num_mech_instance
    i.e. new limits for mechanism data are
    ml->data + size_of_mech_instance * num_mech_instance_with_padding

  • In this PR we fix the checkpointing code with the above calculation

 - In thalamus simulations with coreneuron (@BBP) we saw following
   errors with checkpoining:
   ```
   io/nrn_checkpoint.cpp:515: void coreneuron::CheckPoints::write_phase2(coreneuron::NrnThread &) const: Assertion `mtype >= 0' failed.
   ```
 - Looking into model loading and checkpointing code we see that
   due to padding of mechanism data, the VecPlay can have point
   to the memory address beyond
   `ml->data + size_of_mech_instance * num_mech_instance` i.e.
   new limits for mechanism data are
   `ml->data + size_of_mech_instance * num_mech_instance_with_padding`
 - Here we fix the checkpointing code with the above calculation
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #2148 (1ff994b) into master (b042989) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #2148   +/-   ##
=======================================
  Coverage   49.93%   49.93%           
=======================================
  Files         615      615           
  Lines      123873   123873           
=======================================
  Hits        61851    61851           
  Misses      62022    62022           
Impacted Files Coverage Δ
src/coreneuron/io/nrn_checkpoint.cpp 73.08% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@azure-pipelines

Copy link
Copy Markdown

✔️ 1ff994b -> Azure artifacts URL

@pramodk pramodk merged commit 6475e30 into master Jan 12, 2023
@pramodk pramodk deleted the pramodk/corenrn-checkpoint-bbp-thalamus branch January 12, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants