File: experimental-codegen.txt

package info (click to toggle)
brian 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 23,436 kB
  • sloc: python: 68,707; cpp: 29,040; ansic: 5,182; sh: 111; makefile: 61
file content (26 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. currentmodule:: brian.experimental.codegen

.. _experimental-codegen:

Code generation
===============

Brian has support for automatic generation of C code, detailed in :ref:`compiled-code`.
We also have experimental support for C code generation
more widely, implementing the algorithms described
in `Goodman (2010) <http://www.springerlink.com/content/12614h7817602680/>`__.
This support can be activated using the ``usecodegen*``, ``usenewpropagate``
and ``usecstdp`` global preferences
(see :ref:`preferences`).

Note that not all code will run without problems using code generation yet, but
in most cases it will and speed improvements can be very substantial, especially
for STDP.

References
----------

* `Goodman DFM (2010) <http://www.ploscompbiol.org/article/info:doi/10.1371/journal.pcbi.1000993>`__.
  Code Generation: A Strategy for Neural Network Simulators.
  Neuroinformatics 8, no. 3 (9). doi:10.1007/s12021-010-9082-x.
  [`pdf <http://dl.dropbox.com/u/556426/codegen.pdf>`__]