Skip to content

Commit 134575e

Browse files
Merge pull request #642 from genn-team/genn_5_1_0
GeNN 5.1.0
2 parents 9c6f6f6 + 817c664 commit 134575e

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

pygenn/genn_model.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,11 +1290,18 @@ def create_weight_update_model(
12901290
12911291
where, once again, ``inc`` is the amount to add to the postsynaptic neuron's ``inSyn`` variable and ``delay`` is the length of the dendritic delay in timesteps.
12921292
By implementing ``delay`` as a weight update model variable, heterogeneous synaptic delays can be implemented.
1293-
For an example, see WeightUpdateModels::StaticPulseDendriticDelay for a simple synapse update model with heterogeneous dendritic delays.
1293+
For an example, see :func:`.weight_update_models.StaticPulseDendriticDelay` for a simple synapse update model with heterogeneous dendritic delays.
1294+
These delays can also be used to provide delayed access to ``post_vars`` and ``post_neuron_var_refs`` using ``[]`` syntax. For example,
12941295
1295-
When using dendritic delays, the *maximum* dendritic delay for a synapse populations must be specified via the
1296-
:attr:`SynapseGroup.max_dendritic_delay_timesteps` property. One can also define synaptic effects that occur in the reverse direction,
1297-
i.e. terms that are added to a target variable in the _presynaptic_ neuron using the ``addToPre(inc)`` function. For example,
1296+
.. code-block:: python
1297+
1298+
pre_spike_syn_code="variable -= postVar[delay];"
1299+
1300+
where, ``variable`` is a per-synapse variable; ``postVar`` is either a postsynaptic variable or postsynaptic variable reference;
1301+
and ``delay`` is some sort of integer expression. When using dendritic delays, the *maximum* dendritic delay for a synapse populations
1302+
must be specified via the :attr:`SynapseGroup.max_dendritic_delay_timesteps` property. One can also define synaptic effects that
1303+
occur in the reverse direction, i.e. terms that are added to a target variable in the _presynaptic_ neuron using the ``addToPre(inc)`` function.
1304+
For example,
12981305
12991306
.. code-block:: python
13001307

pygenn/src/docStrings.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525

2626
static const char *__doc_CodeGenerator_BackendBase = R"doc()doc";
2727

28+
static const char *__doc_CodeGenerator_BackendBase_AtomicOperation = R"doc(What atomic operation is required)doc";
29+
30+
static const char *__doc_CodeGenerator_BackendBase_AtomicOperation_ADD = R"doc()doc";
31+
32+
static const char *__doc_CodeGenerator_BackendBase_AtomicOperation_OR = R"doc()doc";
33+
2834
static const char *__doc_CodeGenerator_BackendBase_BackendBase = R"doc()doc";
2935

3036
static const char *__doc_CodeGenerator_BackendBase_ReductionTarget = R"doc(Simple struct to hold reduction targets)doc";
@@ -279,6 +285,8 @@ static const char *__doc_CodeGenerator_BackendBase_genTimer = R"doc()doc";
279285

280286
static const char *__doc_CodeGenerator_BackendBase_genVariableInit = R"doc()doc";
281287

288+
static const char *__doc_CodeGenerator_BackendBase_getAtomicOperation = R"doc(Get suitable atomic *lhsPointer += rhsValue or *lhsPointer |= rhsValue style operation)doc";
289+
282290
static const char *__doc_CodeGenerator_BackendBase_getDeviceMemoryBytes = R"doc(How many bytes of memory does 'device' have)doc";
283291

284292
static const char *__doc_CodeGenerator_BackendBase_getFilesToCopy =

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.0
1+
5.1.0

0 commit comments

Comments
 (0)