Brian2 Atlas
Open-source engine that adds distributed simulation to Brian2 models, partitioning a supported neural network across processes with MPI.
Working when we checked on .
What is Brian2 Atlas?
Brian2 Atlas is an open-source engine that adds distributed simulation and additional execution backends to Brian2 spiking neural network models. It targets computational neuroscientists and researchers who build and run large-scale neural network simulations. It partitions supported networks across MPI ranks, runs models on CPU (reference and AOT), GPU (Apple Metal, NVIDIA CUDA) and browser (WebAssembly), and supports native training of spiking networks with surrogate spike gradients. Published results include a 5.43× best-measured CPU speedup over Brian2 C++ and 24.1 billion recurrent synapses simulated across four MPI nodes.
Brian2 Atlas pricing
Pricing model: Free
Brian2 Atlas pros
- Keeps the upstream Brian2 modelling interface for neurons, synapses and monitors
- Multiple backends: CPU reference/AOT, Apple Metal, NVIDIA CUDA, WebAssembly browser, and MPI
- Best-measured CPU time ratio of 5.43× versus Brian2 C++ on the same host
- Ran a 4.13-million-neuron model with 24.1 billion recurrent synapses across four nodes
- Distributed example checks exact correctness via SHA-256 hashes of result files
- Open source with an arXiv manuscript and reproduction materials
Brian2 Atlas cons
- v0.1.0 MPI validation covers only same-host 1, 2 and 4 ranks; cross-host execution is not qualified
- Only supported model features can be partitioned or run on GPU/browser backends
- Source install requires Python 3.12+, Rust 1.98.1, a C/C++ compiler and an MPI implementation
- Platform training requires an account and an available worker
Frequently asked questions about Brian2 Atlas
Does upstream Brian2 support distributed simulation?
Upstream Brian2 does not natively split a single network simulation across machines with MPI; its documented multiprocessing workflow runs independent simulations in parallel. Atlas adds a separate execution backend for partitioning a supported network.
What is the difference between parameter sweeps and distributed simulation?
A parameter sweep runs separate networks or trials, each with its own state. Distributed network simulation divides work within one connected network and coordinates spike delivery and state updates across ranks.
Which hardware backends does Brian2 Atlas support?
Supported backends include CPU (reference engine and AOT-compiled native executable), GPU via Apple Metal and NVIDIA CUDA in float32 numeric mode, browser execution via WebAssembly in a worker, and distributed execution via MPI.
How is distributed correctness verified?
The example driver compares SHA-256 hashes of results.bin and events.bin against the reference, records compilation and execution times, and raises an error on a mismatch. Each run entry should show exact_reference_match: true.
What performance results are published for CPU execution?
A best-measured time ratio of 5.43× was reported: 0.839 s for Rust at 16 threads versus 4.555 s for Brian2 C++ at 8 threads, for a full-connectome simulation with recording on the same Linux host, both constrained to 16 physical cores.
How large a simulation has Atlas run in research settings?
A 4.13-million-neuron multi-area model completed 100.5 seconds of model time with 24.1 billion recurrent synapses using 32 MPI ranks across four nodes. On a 16 GB Apple M3 laptop, a PD14 workload with 77,169 neurons ran 10 seconds of model time.
Who is Brian2 Atlas for?
It is aimed at researchers and computational neuroscientists using Brian2 who need larger or faster spiking network simulations, and developers who want to extend an open-source simulation and training engine.
Does Brian2 Atlas support training as well as simulation?
Yes, a bounded training extension provides forward and reverse execution plans with surrogate spike gradients. A guided workflow trains a digit-recognition spiking network through the platform's Atlas CPU training path.
What are the installation requirements?
A Unix-like shell with Python 3.12+, Rust/rustup, and a working C/C++ compiler. The source install builds native simulation and training executables; MPI execution additionally requires mpicc and mpiexec on the PATH.
Is Brian2 Atlas free and open source?
Yes, the engine is open source at version v0.1.0 on GitHub. The manuscript and slides are licensed CC BY 4.0, though the companion Next Brain platform workflow requires an account and an available worker for training.