GeNN
4.9.0
GPU enhanced Neuronal Networks (GeNN)
|
GeNN can simulate models written for the Brian simulator via the Brian2GeNN interface [8]. In order for Brian2GeNN to find GeNN, GeNN must either be in your path with the location of the CUDA libraries configured via the CUDA_PATH
environment variable (as described in Installation) or the devices.genn.path
and devices.genn.cuda_backend.cuda_path
Brian preferences should be set.
To use GeNN to simulate a Brian script, import the brian2genn
package and switch Brian to the genn
device. As an example, the following Python script will simulate Leaky-integrate-and-fire neurons with varying input currents to construct an f/I curve:
Of course, your simulation should be more complex than the example above to actually benefit from the performance gains of using a GPU via GeNN.