Comments (5)
from nrn.
thanks Michael for detailed info!
Is this a bug? Could we update/fix this?
Yes and yes. Of course the VERBATIM contents have to make sense in the c code
which may involve several copies into different areas of the code.
I was just looking at StochKv.mod
:
DERIVATIVE states {
trates(v)
n' = a - (a + b)*n
.........
P_a = strap(a*dt)
P_b = strap(b*dt)
: check that will represent probabilities when used
ChkProb( P_a)
ChkProb( P_b)
}
: ChkProb - Check that number represents a probability
PROCEDURE ChkProb(p) {
if (p < 0.0 || p > 1.0) {
VERBATIM
fprintf(stderr, "StochKv.mod:ChkProb: argument not a probability.\n");
ENDVERBATIM
}
}
And after procedure inlining
, nocmdol
/ mod2c_core
wasn't able to translate it. Hence I was looking into the behaviour.
so it should suffice to replace
case STRING:
with
case STRING:
case VERBATIM:
in the void copy items
Yes, this is sufficient!
from nrn.
from nrn.
from nrn.
From another view, since output is not allowed for GPU, it may be good idea to think
about a standard way to raise an error and then when getting back to the cpu checking
the status and printing a message. or should we think in terms of buffering using
sprintf and then copy back to cpu and printing.
I don't think we should have buffering mechanism for copying error messages. Might be sufficient to set error code from kernel running on GPU / Accelerator (but may be we have to list all use cases ).
from nrn.
Related Issues (20)
- Allow trivial changes without running CI. HOT 3
- Improve installation tests. HOT 1
- Update Release Documentation after 8.2.4
- Missing dependency between `nocpout.cpp` and `${mod}.cpp`. HOT 1
- Outdated `cfiles` in `nrnivmodl`. HOT 4
- Mechanism Loading Issues: nrn_dll_loaded does not update and Segfaults
- Typo for windows download url at https://nrn.readthedocs.io/en/8.2.4/ HOT 3
- Remove usage of deprecated `pkg_resources` HOT 2
- An Option to Disable Automatic Loading of Mechanisms on Import
- In coreneuron.py : getters of some attributes don't work.
- Python contributing instructions are out of date
- Error with master / upcoming v9.0: "generic_data_handle{raw=..type=void*} cannot be converted to data_handle<double>"
- Higher simulation time in NEURON 9 compared to NEURON 8.2.4 HOT 15
- Investigate memory usage increase with GPU CI
- FractionalVolume with surface_fraction=0 does not work for 3d Region HOT 2
- `import neuron` modifies the `help` pager
- Remove references to AoS layout in CoreNEURON.
- CI: share/lib/python/neuron/tests/ are not included in coverage
- Multiprocessing behavior differs across Ubuntu/MacOS HOT 8
- NEURON no longer visible to pip in 8.2.4+ in Windows HOT 4
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.