Callbacks for reading mapping information from memory
neurodamus branch https://github.com/BlueBrain/neurodamus/tree/weji/direct_mod to launch coreneuron simulation with in memory mode.
✔️ 3d6b9e58fc22aba2057b3b434fc47f0ad0558e28 -> Azure artifacts URL
Codecov Report
Attention: Patch coverage is 88.09524% with 10 lines in your changes are missing coverage. Please review.
Project coverage is 67.14%. Comparing base (
e3e8625) to head (a3b93c2).
Additional details and impacted files
@@ Coverage Diff @@
## master #2555 +/- ##
==========================================
+ Coverage 66.92% 67.14% +0.22%
==========================================
Files 560 561 +1
Lines 104091 104145 +54
==========================================
+ Hits 69658 69932 +274
+ Misses 34433 34213 -220
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Logfiles from GitLab pipeline #156746 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ 96276d086b377479db6eaec47b194f1119f8f3f5 -> Azure artifacts URL
Logfiles from GitLab pipeline #156981 (:no_entry:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :no_entry: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
Logfiles from GitLab pipeline #167059 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ c9060889e21dffa9221ddc666dd4b416fcc41e7c -> Azure artifacts URL
Logfiles from GitLab pipeline #176865 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ d9cba6b118f8f39fcf74c1ce30fdbdff87078000 -> Azure artifacts URL
Logfiles from GitLab pipeline #177161 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ 86f969e0e07d41b3eff36385059a5c1c9898bad3 -> Azure artifacts URL
Logfiles from GitLab pipeline #178879 (:no_entry:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :no_entry: test:neuron:nmodl:intel:legacy
- :no_entry: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ 1b0a9a8891af37b1d0b6d14e5922e06d6f11403a -> Azure artifacts URL
✔️ c54bf23721bf16d621a623a4e754d0960b66009f -> Azure artifacts URL
Logfiles from GitLab pipeline #179665 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
Looks good!! Thanks! Just one extra comment, is it possible to create some unit tests? At least for the nrncore_callbacks (nrnthread_dat3_cell_count, nrnthread_dat3_cellmapping, etc.) I guess for read_phase3() would be a bit more complicated...although i did something similar for LFP populating the cellmapping, mapinfo etc
Logfiles from GitLab pipeline #183864 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ cdce92c777cd2cfc064403c8ed13091e8bff4f03 -> Azure artifacts URL
✔️ 3057bbdf9532d275f43f27c9a27f76059e95a4c8 -> Azure artifacts URL
✔️ e939e3be89687531580a6c4b4e555eb230305d49 -> Azure artifacts URL
Logfiles from GitLab pipeline #185487 (:no_entry:) have been uploaded here!
Status and direct links:
- :no_entry: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :no_entry: build:neuron:nmodl:nvhpc:omp
- :no_entry: test:neuron:nmodl:intel:legacy
- :no_entry: test:neuron:nmodl:intel:shared
- :no_entry: test:neuron:nmodl:nvhpc:acc:legacy
- :no_entry: test:neuron:nmodl:nvhpc:acc:shared
- :no_entry: test:neuron:nmodl:nvhpc:omp:legacy
- :fast_forward: test:neuron:nmodl:nvhpc:omp
✔️ 88a9a707b7599c5b32cf3ec0b705225c824bb998 -> Azure artifacts URL
✔️ c8c5f44e62966ea008b68f718b6609106256f0f7 -> Azure artifacts URL
Logfiles from GitLab pipeline #185562 (:no_entry:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :no_entry: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
✔️ 607c15ee5600269a51cbd2745aee78e359b475db -> Azure artifacts URL
Logfiles from GitLab pipeline #185591 (:white_check_mark:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :white_check_mark: spack_setup
- :white_check_mark: build:nmodl
- :white_check_mark: build:neuron:nmodl:intel:legacy
- :white_check_mark: build:neuron:nmodl:intel:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: build:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: build:neuron:nmodl:nvhpc:omp
- :white_check_mark: test:neuron:nmodl:intel:legacy
- :white_check_mark: test:neuron:nmodl:intel:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:acc:shared
- :white_check_mark: test:neuron:nmodl:nvhpc:omp:legacy
- :white_check_mark: test:neuron:nmodl:nvhpc:omp
Looks good!! Thanks! Just one extra comment, is it possible to create some unit tests? At least for the nrncore_callbacks (nrnthread_dat3_cell_count, nrnthread_dat3_cellmapping, etc.) I guess for read_phase3() would be a bit more complicated...although i did something similar for LFP populating the cellmapping, mapinfo etc
I am trying to add a test but I am not sure where to locate the test. Since we have the callbacks map like
static core2nrn_callback_t cnbs[] = {
...
{"nrn2core_get_dat3_cell_count_", (CNB) nrnthread_dat3_cell_count},
...
}
Shall I test function nrn2core_get_dat3_cell_count_ in coreneuron? If so, do I need to call first
https://github.com/neuronsimulator/nrn/blob/45cdea7e74b0d695d1597589b47353d728082454/src/nrniv/nrncore_write.cpp#L305 ?
Or shall I test function nrnthread_dat3_cell_count? Is that in the scope of neuron ?
Maybe @pramodk @iomaganaris @jorblancoa have more insights?
Copying comments from internal slack discussion:
If your test works for neurodamus tests and if you want a similar test in neuron then I wonder if we should just use ringtest which already in NEURON:
* ringtest has this setup_nrnbbcore_register_mapping() : https://github.com/neuronsimulator/ringtest/blob/344bd13f8fb94d69e83b6645350f723079b3a21d/ringtest.py#L179
* and that registers section/segment mapping like neurodamus: https://github.com/neuronsimulator/ringtest/blob/344bd13f8fb94d69e83b6645350f723079b3a21d/commonutils.py#L170
We can add a separate CLI flag instead of dumpmodel but I wonder if we can do the following:
* take one of the existing ringtest for coreneuron
* in one of the online ringtest, we enable extra CLI flag --report-mapping and that will trigger your part of the code
✔️ e9957cd20596d210169ccdd384e8311b2c93430b -> Azure artifacts URL
Logfiles from GitLab pipeline #192266 (:no_entry:) have been uploaded here!
Status and direct links:
- :white_check_mark: mac_m1_cmake_build: [cmake, ON, OFF, OFF, address]
- :no_entry: spack_setup
- :fast_forward: build:nmodl
- :fast_forward: build:neuron:nmodl:intel:legacy
- :fast_forward: build:neuron:nmodl:intel:shared
- :fast_forward: build:neuron:nmodl:nvhpc:acc:legacy
- :fast_forward: build:neuron:nmodl:nvhpc:acc:shared
- :fast_forward: build:neuron:nmodl:nvhpc:omp:legacy
- :fast_forward: build:neuron:nmodl:nvhpc:omp
- :fast_forward: test:neuron:nmodl:intel:legacy
- :fast_forward: test:neuron:nmodl:intel:shared
- :fast_forward: test:neuron:nmodl:nvhpc:acc:legacy
- :fast_forward: test:neuron:nmodl:nvhpc:acc:shared
- :fast_forward: test:neuron:nmodl:nvhpc:omp:legacy
- :fast_forward: test:neuron:nmodl:nvhpc:omp