This repository was archived by the owner on Jun 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Avoid use of global variables in generated code #78
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
eb9584a
Avoid use of global variables in generated code
pramodk c203e4a
Avoid global variable object at file scope
pramodk f2a3aa6
update test files
pramodk 2d8033d
initialize ml->instance early in nrn_init to fix kinetic test failures
pramodk 88f2960
Atimic capture inlining fix and alternate neuron-coreneuron test fix
pramodk fdff2db
Redefine nrn_gk with celsius as an argument via macro
pramodk 2c5dc76
update tests
pramodk da079f9
unified memory
olupton 52deed9
Prefer cnrn_target_ to acc_.
olupton 37ee5c0
update tests
olupton 019cbd7
Merge remote-tracking branch 'origin/master' into pramodk/exclude-glo…
olupton 9d21b18
update references
olupton d8507de
fix prototype for _check_table_thread
pramodk 7d1557e
avoid if target (nv::target::is_device)
olupton c37aff7
revert some
olupton 4f8df88
update references
olupton eb9a42f
register a private destructor function
olupton f4080b2
private constructor, move more cpu-gpu transfer to coreneuron
olupton 2603ada
try and fix up table statements
olupton bc5f9d6
typofix
olupton 8b754b3
follow reordering
olupton bf2739d
cleanup, use instance
olupton 1264bc3
remove _ml_mechtype
olupton 55f5de4
Fix/remove TODOs
pramodk e40c7c0
update nvhpc comment
pramodk 77bba77
fix ubsan error
olupton ec96803
instance -> global_variables
olupton 626ffc2
fix typo
pramodk 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
Next
Next commit
Avoid use of global variables in generated code
* all global variables are now wrapped into struct called _GlobalVars. * previous global variables are still printed but their values is now copied into _GlobalVars during nrn_init. * variables like slist and dlist are now removed * we now only copy _GlobalVars into GPU; all other acc copyin / update for global variables is now removed. * we now print all global variables as static and remove all their macro renaming. Todos: - [x] basic implementation / draft removing all global usage - [x] run neuron test suite on CPU - [ ] run neuron test suite on GPU - [ ] fix TODOs - [ ] code cleanup including memory cleanup Related to BlueBrain/CoreNeuron/issues/141
- Loading branch information
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.
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.