This release is a pre-release and may not be stable for production use.
Brian2CUDA
Brian2CUDA is an extension of the spiking neural network simulator Brian2, written in Python. It generates C++/CUDA code to run simulations on NVIDIA GPUs.
For support, please use the Brian forum. If you think you found a bug in Brian2CUDA, please report it at the GitHub issue tracker.
For installation and usage instructions, check out the Brian2CUDA documentation. For information on general Brian2 usage, check out the Brian2 documentation.
Quick start
Installation
You can install Brian2CUDA via pip:
python -m pip install brian2cuda
This will install a compatible version of Brian2 as dependency. For installation requirements and GPU configuration, check out the Brian2CUDA documentation.
Usage
Use your Brian2 code (see Brian2 documentation) and modify the imports to:
# Standard Brian2 import
from brian2 import *
# Enable GPU usage via Brian2CUDA
import brian2cuda
set_device("cuda_standalone")
See Brian2's standalone code generation for more options for the set_device call.
Citation
If you use this software in a published article, please cite our Brian2CUDA publication:
Alevi, D, Stimberg, M, Sprekeler, H, Obermayer, K, Augustin, M. “Brian2CUDA: flexible and efficient simulation of spiking neural network models on GPUs” Frontiers in Neuroinformatics (2022). doi: 10.3389/fninf.2022.883700.
License
Brian2CUDA is free software licensed under the GNU General Public License v3 (GPLv3).
Testing
To run the test suite on Google Collab (no installation or GPU required), click on the badge below:
Metadata
Release files for Brian2Cuda 1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brian2cuda-1.0b1.tar.gz | 218.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brian2cuda-1.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 424.5 kB
Release files / brian2cuda-1.0b1.tar.gz
| Download URL | brian2cuda-1.0b1.tar.gz |
|---|---|
| Size | 218.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c063c914e37c452e93da3885a85cfa4b0c6b9593d097cc1fcd60baa04df10e83
|
|
BLAKE2b-256 checksum How to use checksums |
67a4c878b3f15268971bb48cb76fd2cc46bca45c9c523e62d24054fb28829236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / brian2cuda-1.0b1-py3-none-any.whl
| Download URL | brian2cuda-1.0b1-py3-none-any.whl |
|---|---|
| Size | 206.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0b49a1086a8529628703b7c1ccc983a6a7a554bbd5b9f3d6f6aaddeaa2231f7
|
|
BLAKE2b-256 checksum How to use checksums |
d0d04627967c689459bcf47f91c53bfbe043dd3e3b7eb77a21b984f9dfe9045a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|