Comments (2)
It is certainly possible though tedious to either change the implementation from "promote to
thread variable" to "promote to range variable". We have been asking the user to manually replace
GLOBAL with RANGE (and. comment out TABLE statements). With regard to TABLE, I should have
been more precise in saying that TABLE statements that DEPEND on RANGE variables would not
work (There is only one global table per TABLE statement and it is entirely updated if what it depends
on changes. The table functions are, or can be easily made, thread safe so that the table values
copied to RANGE minf, etc would not suffer from race conditions.
However I don't like how the situation has evolved in regard to volatile variables (e.g. minf) being
used for serial, pthread, massive simd architectures. The original use of GLOBAL minf for
single thread computations was not at all descriptive but just a trick that depended
on knowing how it would
be translated into c and therefore could be repurposed in order to save memory. Much better would
have been to allow FUNCTION to return a tuple a la Python. It would not be hard to add this
feature.... return (minf, hinf, ninf, mtau, htau, ntau)
and have
(minf, hinf, ninf, mtau, htau, ntau) = rates(v)
On the other hand, (to avoid changes at the user level) the semantics of GLOBAL foo,
when foo is written to in a PROCEDURE and only used in a block after the procedure is called,
could generate appropriate c code so that they
are treated as local variables. (with provision that thread 0 copies also to the GLOBAL
foo)
I don't believe there is any serious difficulty in making TABLE work in the CoreNEURON context.
from nrn.
MOD file compatibility will be now handled by NMODL. See : BlueBrain/nmodl#230. So this is good to close.
cc: @iomaganaris
from nrn.
Related Issues (20)
- The novel method called "Dendritic Hierarchical Scheduling" (DHS) from the paper of Zhang, He 2023
- Add hook for external `nmodl` executable in `nrnivmodl`
- Releases with Python 3.12 support HOT 1
- Timeout issue in `hoctests::test_nrniv-launch_py`
- Python 3.13 support HOT 3
- Recurring MPI segmentation fault HOT 5
- master bug : could not translate legacy index 10 HOT 3
- Extend model domain of BBSaveState
- nightly wheels upload CI failing : Username/Password authentication is no longer supported by pypi.org HOT 1
- Nameclash for `STATE y`. HOT 1
- Use SoA for "dparam". HOT 3
- `nrn-build-ci` failures HOT 1
- Numpy segfault on Python 3.12 when using latest `neuronsimulator/neuron_wheel` Docker image for ARM64 HOT 5
- Automated deployment of Docker image used to build the wheels HOT 1
- Rewrite `nrn_mlh_gsort` with `std::sort`
- Can `*_net_send(void*` be removed? HOT 2
- Transmembrane currents do not sum to zero HOT 21
- Eliminate make_mechanism and make_pointprocess from NEURON HOT 6
- Customizable models in ModelDB CI workflow in PRs
- Deprecation warning when building wheels on Python 3.12 and above
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nrn.