nengo / nengo-loihi

Run Nengo models on Intel's Loihi chip
https://www.nengo.ai/nengo-loihi/
Other
35 stars 12 forks source link

Multi-chip support, testing, and failure modes #197

Closed arvoelke closed 5 years ago

arvoelke commented 5 years ago

Abstracted two different methods of allocating resources to models:

Ran the entire unit test suite with a manually-overwritten default of allocator=RoundRobin(n_chips=8) (on our local host; not shown) and discovered that all failed tests currently fall into one of two categories:

  1. Convolutional weights (pop[16|32]) across chips
  2. Use of SNIPS (precompute=False)

Multi-chip support is otherwise working and the user can override / customize the behaviour, with the following notes:

The current syntax for running a multi-chip simulation of the model is:

from nengo_loihi.hardware.allocators import RoundRobin  # or OneToOne

with Simulator(model, precompute=True,
               hardware_options={'allocator': RoundRobin(n_chips=8)}):
    ...

Todo:

arvoelke commented 5 years ago

Note to self: since this touches the Simulator docstring it is a natural place to simultaneously fix #147.