-
Notifications
You must be signed in to change notification settings - Fork 246
Add C++ DynamicArrays
in Brian2 for runtime mode
#1650
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
Open
Legend101Zz
wants to merge
96
commits into
brian-team:master
Choose a base branch
from
Legend101Zz:feat/cppDynamicArray
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
a72d978
feat: add C++ DynamicArrays in Brian2 for runtime mode
Legend101Zz e8eaaca
feat: add DynamicArray1D and refactor DynamicArray2D to store data in…
Legend101Zz b8b9903
fix: betetr format
Legend101Zz b38edff
feat: add cython wrapper for dynamic array
Legend101Zz b35f1ba
Merge remote-tracking branch 'origin' into feat/cppDynamicArray
Legend101Zz 2f8beba
fix: cythondynamic error bugs and refactor setup file to build cython…
Legend101Zz 06986e4
refactor python implementation of dynamic array to just export cython…
Legend101Zz ed5460e
Fix testsuite failure due to using source instead of installed module
mstimberg 4765ae3
Delete brian2/memory/cdynamicarray.h
Legend101Zz fdda525
fix: typo init method
Legend101Zz e8dc0f7
fix: use in32_t,in64_t instead of int and long primitives
Legend101Zz e2dd337
fix: synapses test
Legend101Zz 2067307
refactor: cpp dynamic array (Clang on macOS 13) is running in C++03 …
Legend101Zz 8b95ca6
refactor(cppDynamicArray) : remove noexcept specifier
Legend101Zz e0da17e
fix: add resize_along_first method
Legend101Zz affd36e
feat: add resize_along_first method to cpp dynamic array implementation
Legend101Zz d8947d5
fix: use actual resize_along_first method instead of calling resize
Legend101Zz 4844ca4
fix: remove support for higher dim arrays
Legend101Zz 1d1563f
feat: add pycapsule method to dynamic array to share class pointers
Legend101Zz 1a71750
refactor(get_array_name): change get_array_name and DynamicVariables …
Legend101Zz 01f96f1
fix(minor): remove logs
Legend101Zz 6fda095
fix(minor): remove logs
Legend101Zz 412d6e6
revert: `get_pointer`param added to `get_array_name`
Legend101Zz 680ec5f
refactor: determine_keywords to make them generate code to handle dyn…
Legend101Zz 3c822c2
refactor(variables_to_namespace): Adding logic to pass in the capsule…
Legend101Zz 63f7d0c
refactor: cython extension manager to build from cpp dynamic array
Legend101Zz e819134
refactor: minor addition in devices to access dynamic array name in t…
Legend101Zz 803b464
refactor: common_group.pyx template to include dynamic cpp array decl…
Legend101Zz 58994f0
refactor: ratemonitor.pyx template
Legend101Zz 688a6c5
refactor: statemonitor.pyx template
Legend101Zz 1330d8d
refactor: synapses_create_array.pyx template
Legend101Zz d6b89c8
refactor: synapses_create_generator.pyx template
Legend101Zz 2572b0f
fix: ratemoniter hardcoded types
Legend101Zz 4579318
Test string expression get/set with Cython
mstimberg d83b5e7
Fix test issues revealed by previous commit
mstimberg 5971c7c
Chain test commands to fail if tests fail
mstimberg 7e1bab7
Avoid using Python version >=3.11.9 but <3.12 for tests
mstimberg 33907e9
fix(determine_keywords): to handle C++ pointer to the raw data buffer…
Legend101Zz c6dc665
fix: synapses templates
Legend101Zz a5d93aa
fix: cython dynamic array wrapper to handle boolean arrays as char
Legend101Zz 079f51c
fix(variables): doc string
Legend101Zz daa5ee6
fix:change "cython.bint" to "char"
Legend101Zz 7e7aebd
fix: add shrink method to dynamic arrays
Legend101Zz 31416ab
fix: spikemoniter template to use direct cpp pointers
Legend101Zz b18ca43
fix: ratemoniter template to use direct cpp dynamic array pointers
Legend101Zz 9f3007c
fix: dynamic array implementation to fix standalone test failures
Legend101Zz 4f6a016
fix: stride logic Memory has gaps case
Legend101Zz 7c39eb6
fix: comments
Legend101Zz ecc73f5
fix: get_dynamic_array_cpp_type function to return char for bool type
Legend101Zz 92a541c
fix: determine_keywords method to add the unique dynamic array name t…
Legend101Zz 58d9d22
fix(test): test_state_variables_group_as_index_problematic now explic…
Legend101Zz 0d492b2
fix:typo
Legend101Zz 395df27
fix(cythondynamicarray): data attribute for 2d array fixed
Legend101Zz 1ecea4e
fix: test failures
Legend101Zz 556f217
fix: confest file
Legend101Zz e442011
fix: syntax error in cython file
Legend101Zz 7e24eb4
revert:To "fix(cythondynamicarray): data attribute for 2d array fixed"
Legend101Zz 486a147
revert: changes done to fix test failures
Legend101Zz 78a8d7a
revert: confest and cython dynamic array changes
Legend101Zz d65aae1
fix: issue of creating a 0 sized 2d array
Legend101Zz 10e44c1
fix: dynamic array 2d data access attribute again
Legend101Zz c96de4a
fix: add explicit zero-initialization in dynamic arrays + test Clean …
Legend101Zz 4655049
test: change testsuite to Run Only Failing Test
Legend101Zz 9885b90
test: change testsuite to Run Only Failing Test -2
Legend101Zz 2003ddf
test: redo changes
Legend101Zz 1b602ec
fix: dynamic array failing test
Legend101Zz 7ec19b1
fix:the garbage values in dynamic array test
Legend101Zz 8b9bcef
recommit : testsuite workflow
Legend101Zz 77c5df7
fix:testsuite
Legend101Zz 1a3b2d9
fix: test_openmp_consistency
Legend101Zz e4cdc2c
fix: testsuite ci
Legend101Zz 6a3b6c7
redo: testsuite ci changes
Legend101Zz abca2dd
fix: redo test changes
Legend101Zz b4a25e3
fix: non-deterministic behavior of test_openmp_consistency
Legend101Zz aa60833
fix: broken test_openmp_consistency test
Legend101Zz 318f998
fix: broken test_openmp_consistency test-2
Legend101Zz c23a5d7
fix: broken test_openmp_consistency test-3
Legend101Zz 42a7c3f
cleanup(testsuite) : remove debug logs
Legend101Zz b3968ae
Merge branch 'master' into feat/cppDynamicArray
mstimberg e16ac73
Fix syntax error in yaml file after conflict resolution
mstimberg b8477f7
Workaround for size update of SpikeMonitor variables
mstimberg 5503588
cleanup(testsuite)-2: remove added Reset any preference changes code …
Legend101Zz f1ef25f
cleanup(testsuite)-2-retry: remove added Reset any preference changes…
Legend101Zz 732cbc5
cleanup(testsuite)-3: remove added copy fn for variable view as it al…
Legend101Zz 461b8a2
Revert "cleanup(testsuite)-3: remove added copy fn for variable view …
Legend101Zz 155f15d
review-changes: CythonCodeGenerator
Legend101Zz dab1685
review-changes: spikemoniter template
Legend101Zz ec31973
review-changes: class DynamicArray cpp
Legend101Zz 2b338a3
fix: typo in setup file
Legend101Zz cc06938
review-change: remove comment
Legend101Zz 4eac187
refactor: resize 2d dynamicArray to only resize along rows ( 1st dim)
Legend101Zz 2d22b87
fix: test_memory
Legend101Zz d985c15
refactor: statemoniter template to use direct cpp resize methods inst…
Legend101Zz ed3b3dc
fix: Workaround for size update of StateMonitor variables
Legend101Zz 648ce77
fix: Update the time variable also ( as it is not in record_variables )
Legend101Zz 9dec50d
fix: handle 1D and 2D arrays sizes correctly for the after run
Legend101Zz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.