Brian2Cuda


NameBrian2Cuda JSON
Version 1.0a6 PyPI version JSON
download
home_pageNone
SummaryA Brian2 extension to simulate spiking neural networks on GPUs
upload_time2024-07-01 14:46:52
maintainerNone
docs_urlNone
authorDenis Alevi, Moritz Augustin, Marcel Stimberg
requires_python>=3.10
licenseNone
keywords computational neuroscience simulation neural networks spiking neurons gpu cuda
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Brian2CUDA
==========

Brian2CUDA is an extension of the spiking neural network simulator
[Brian2](https://github.com/brian-team/brian2), written in Python. It
generates C++/CUDA code to run simulations on NVIDIA GPUs.

For **support**, please use the [Brian forum](https://brian.discourse.group/). If
you think you found a bug in Brian2CUDA, please report it at the
[GitHub issue tracker](https://github.com/brian-team/brian2cuda/issues).

For **installation and usage instructions**, check out the
[Brian2CUDA documentation](https://brian2cuda.readthedocs.io).
For information on general Brian2 usage, check out the
[Brian2 documentation](http://brian2.readthedocs.io).

## Quick start
### Installation

You can install Brian2CUDA via `pip`:

```bash
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](https://brian2cuda.readthedocs.io/en/latest/index.html).

### Usage
Use your Brian2 code (see [Brian2 documentation](http://brian2.readthedocs.io/en/stable/index.html)) and modify the imports to:

```python
# Standard Brian2 import
from brian2 import *

# Enable GPU usage via Brian2CUDA
import brian2cuda
set_device("cuda_standalone")
```

See [Brian2's standalone code generation](https://brian2.readthedocs.io/en/stable/user/computation.html?highlight=set_device#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](https://www.frontiersin.org/articles/10.3389/fninf.2022.883700):

> 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)](https://www.gnu.org/licenses/gpl-3.0.en.html).

## Testing
To run the test suite on Google Collab (no installation or GPU required), click on the badge below:

[![Open In Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/brian-team/brian2cuda/blob/master/brian2cuda/tools/test_suite/run_tests.ipynb)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "Brian2Cuda",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "computational neuroscience, simulation, neural networks, spiking neurons, gpu, cuda",
    "author": "Denis Alevi, Moritz Augustin, Marcel Stimberg",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/45/6c/033d068f2e473e041018763382691dd0dd7e54509ce3095ca84f7f26b1fd/brian2cuda-1.0a6.tar.gz",
    "platform": null,
    "description": "Brian2CUDA\n==========\n\nBrian2CUDA is an extension of the spiking neural network simulator\n[Brian2](https://github.com/brian-team/brian2), written in Python. It\ngenerates C++/CUDA code to run simulations on NVIDIA GPUs.\n\nFor **support**, please use the [Brian forum](https://brian.discourse.group/). If\nyou think you found a bug in Brian2CUDA, please report it at the\n[GitHub issue tracker](https://github.com/brian-team/brian2cuda/issues).\n\nFor **installation and usage instructions**, check out the\n[Brian2CUDA documentation](https://brian2cuda.readthedocs.io).\nFor information on general Brian2 usage, check out the\n[Brian2 documentation](http://brian2.readthedocs.io).\n\n## Quick start\n### Installation\n\nYou can install Brian2CUDA via `pip`:\n\n```bash\npython -m pip install brian2cuda\n```\n\nThis will install a compatible version of Brian2 as dependency. For installation requirements and GPU configuration, check out the [Brian2CUDA documentation](https://brian2cuda.readthedocs.io/en/latest/index.html).\n\n### Usage\nUse your Brian2 code (see [Brian2 documentation](http://brian2.readthedocs.io/en/stable/index.html)) and modify the imports to:\n\n```python\n# Standard Brian2 import\nfrom brian2 import *\n\n# Enable GPU usage via Brian2CUDA\nimport brian2cuda\nset_device(\"cuda_standalone\")\n```\n\nSee [Brian2's standalone code generation](https://brian2.readthedocs.io/en/stable/user/computation.html?highlight=set_device#standalone-code-generation) for more options for the `set_device` call.\n\n\n## Citation\nIf you use this software in a published article, please cite\n[our Brian2CUDA publication](https://www.frontiersin.org/articles/10.3389/fninf.2022.883700):\n\n> Alevi, D, Stimberg, M, Sprekeler, H, Obermayer, K, Augustin, M. \u201cBrian2CUDA: flexible and efficient simulation of spiking neural network models on GPUs\u201d Frontiers in Neuroinformatics (2022). doi: 10.3389/fninf.2022.883700.\n\n## License\nBrian2CUDA is free software licensed under the [GNU General Public License v3 (GPLv3)](https://www.gnu.org/licenses/gpl-3.0.en.html).\n\n## Testing\nTo run the test suite on Google Collab (no installation or GPU required), click on the badge below:\n\n[![Open In Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/brian-team/brian2cuda/blob/master/brian2cuda/tools/test_suite/run_tests.ipynb)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Brian2 extension to simulate spiking neural networks on GPUs",
    "version": "1.0a6",
    "project_urls": {
        "Documentation": "https://brian2cuda.readthedocs.io/",
        "Source": "https://github.com/brian-team/brian2cuda",
        "Tracker": "https://github.com/brian-team/brian2cuda/issues"
    },
    "split_keywords": [
        "computational neuroscience",
        " simulation",
        " neural networks",
        " spiking neurons",
        " gpu",
        " cuda"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df0d420bd4468c6142069ec09ec06ff448d5a2b2a1d71129f3a0a58c0e3f431f",
                "md5": "dab3c253ea72ccacf5d4cf5e7696eaa9",
                "sha256": "8556864fb850e3b61f31cf148a496cb7185fb5acbf99fc05a557b4b100c055c3"
            },
            "downloads": -1,
            "filename": "Brian2Cuda-1.0a6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dab3c253ea72ccacf5d4cf5e7696eaa9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 205938,
            "upload_time": "2024-07-01T14:46:50",
            "upload_time_iso_8601": "2024-07-01T14:46:50.872332Z",
            "url": "https://files.pythonhosted.org/packages/df/0d/420bd4468c6142069ec09ec06ff448d5a2b2a1d71129f3a0a58c0e3f431f/Brian2Cuda-1.0a6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "456c033d068f2e473e041018763382691dd0dd7e54509ce3095ca84f7f26b1fd",
                "md5": "438edcc2416828912ccfb7a4b7d95d52",
                "sha256": "2d5f2412f1513a9156fd2fedbab26d3f59a7d7ac77300e14057783d0650e7d91"
            },
            "downloads": -1,
            "filename": "brian2cuda-1.0a6.tar.gz",
            "has_sig": false,
            "md5_digest": "438edcc2416828912ccfb7a4b7d95d52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 218117,
            "upload_time": "2024-07-01T14:46:52",
            "upload_time_iso_8601": "2024-07-01T14:46:52.644863Z",
            "url": "https://files.pythonhosted.org/packages/45/6c/033d068f2e473e041018763382691dd0dd7e54509ce3095ca84f7f26b1fd/brian2cuda-1.0a6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-01 14:46:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "brian-team",
    "github_project": "brian2cuda",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "brian2cuda"
}
        
Elapsed time: 0.32854s