Skip to main content

A Brian2 extension to simulate spiking neural networks on GPUs

Project description

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Brian2Cuda-1.0a2.tar.gz (213.8 kB view details)

Uploaded Source

Built Distribution

Brian2Cuda-1.0a2-py3-none-any.whl (204.3 kB view details)

Uploaded Python 3

File details

Details for the file Brian2Cuda-1.0a2.tar.gz.

File metadata

  • Download URL: Brian2Cuda-1.0a2.tar.gz
  • Upload date:
  • Size: 213.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for Brian2Cuda-1.0a2.tar.gz
Algorithm Hash digest
SHA256 47ccd2b5ff950d76395c33d7510a6a879926de2a50fe66162cf0ba928683f5d6
MD5 7da1eaa387fcecdeb9482b3816163f47
BLAKE2b-256 6044dce2f725087a5193fd169caa2beda6704a9b0eaf3af5d511fc486358aaee

See more details on using hashes here.

File details

Details for the file Brian2Cuda-1.0a2-py3-none-any.whl.

File metadata

  • Download URL: Brian2Cuda-1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 204.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for Brian2Cuda-1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 a36e7a3419ede1a69488821f7b998b50c135573c2ff0c5053461d08f3ba94041
MD5 fea8729ad7865afbedf32e6833d5bc6a
BLAKE2b-256 1416f8aa74ece4eba17557ecb49b13c9de6f4ec85deeea2f74dc96f17fe80bcc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page