Repository navigation
Arbor backend: fixes from running the examples, MPI support, and documentation - #854
Merged
apdavison merged 7 commits intoNov 15, 2026
Merged
Conversation
All SpikeSourcePoisson sources shared the same seed and so emitted identical spike trains, which is why the COBA benchmark barely fired on Arbor (0.4 Hz, against 15.8 Hz on NEST). Each source is now seeded from rng_seed and its gid. Random initial values were drawn lazily as Arbor built each cell, so they came out in Arbor's construction order (reversed) and after the connector had used the same RNG.
…rons Arbor 0.10 addresses point-mechanism probes by the target's index among the cell's synapse placements, and 0.12 by its label, hence the compatibility shim. Arbor builds its cells once, at the first run(), so changing parameters after that used to be silently ignored; it now raises NotImplementedError. Arbor's Izhikevich model has no receptor types, because its synapses are voltage steps, which a cable-cell mechanism cannot express.
…efault delay Arbor requires delays of at least twice the time step, so with the old default (one time step) any projection without an explicit delay failed at run().
PyNN treated every cell as local on every rank, while Arbor distributed them with its own load balancer, so ranks asked for data on cells they weren't simulating and multi-process runs hung. Both now use the same round-robin distribution as the other backends. Parameter values are still stored for all cells, because Arbor builds each cell from its index in the population. Checked with VAbenchmarks: 1 and 4 processes give identical spike trains and membrane potential traces.
The PyPI wheels have no MPI support and there is no sdist for 0.12.2, so Arbor is built from the git tag. --no-build-isolation is needed for cmake to find the venv's mpi4py, and CXXFLAGS has to be the single token -includecstddef: "-include cstddef" ends up in Arbor's cmake config as a list and breaks arbor-build-catalogue. Also gives MPI_ROOT, which was used but never defined, a default.
Also removes the outdated warning in the installation instructions that Arbor only supports multi-compartment models.
The Arbor tests enabled in this PR use `NumpyRNG`, which loads mpi4py's MPI module; mpi4py 4 raises `RuntimeError` (not `ImportError`) when no MPI library is installed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Running
examples/VAbenchmarks.pyand the other examples withpyNN.arborturned up a number of problems. This PR fixes them, adds support for distributed simulations, and adds a documentation page for the backend.Bug fixes
SpikeSourcePoissonsources use the same seed, so they emit identical spike trains. This is why the COBA benchmark barely fires on Arbor (0.4 Hz, against 15.8 Hz on NEST). Each source is now seeded from the simulator'srng_seedand its gid.initialize()is called.get_data()on aPopulationViewreturns every recorded cell, in arbitrary order;Projection.size()counts postsynaptic cells rather than connections; andProjection.connectionsyields postsynaptic indices rather thanConnectionobjects, soProjection.get()fails.run().New features
gsyn_exc,gsyn_inh,<receptor>.gsyn,<receptor>.isyn) and the state variables of their dynamics (w,u,g_s,g_r).Population.get()works for point neurons, andset()works before the simulation starts. Arbor builds its cells only once, so changing parameters after the firstrun()(currently silently ignored) now raisesNotImplementedError.setup()acceptsthreadsandrng_seed, with the same names and defaults aspyNN.nest.Izhikevich, whose voltage-step synapses a cable-cell mechanism cannot express) raises aConnectionErrorinstead of failing an assertion.Test environment and documentation
make setupbuilds Arbor (ARBOR_VERSION, default 0.12.2) from source with MPI support, with new targetstest-arbor,test-arbor-mpiandclean-arbor-catalogue.MPI_ROOT, which the Makefile uses but never defines, now defaults to the installation providingmpicc.doc/backends/Arbor.txt, and the outdated installation warning that Arbor only supports multi-compartment models is replaced.Testing
VAbenchmarks.pyon Arbor now matches NEST: synapse counts are identical, and the firing rates are close (COBA 15.3 Hz against 15.8 Hz).VAbenchmarks.py(CUBA and COBA) gives identical spike trains and membrane potential traces, on both Arbor 0.10 and 0.12.2.