nengo / nengo-loihi

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

maximum of 1024 compartments #291

Closed biphasic closed 4 years ago

biphasic commented 4 years ago

Hello, I'm trying to run the Nengo Lorenz attractor example on Loihi.

I'm using nxsdk 0.9, Nengo 3.0.0 and Nengo-loihi 0.10.0.

when I replace the last lines with

with nengo_loihi.Simulator(model) as sim:
    sim.run(10)

it returns BuildError: Number of compartments (2000) exceeded max (1024).

I then tried to set the environment variable to run on a different partition with more chips, which didn't change anything. %env PARTITION nahuku32

Then I tried passing the number of chips to the hardware config like the following:

with nengo_loihi.Simulator(model, target='loihi', hardware_options={
    "n_chips": 2,
}) as sim:
    sim.run(10)

which returns TypeError: __init__() got an unexpected keyword argument 'n_chips'

Can you please advise what I'm doing wrong. Thank you

tbekolay commented 4 years ago

Hi @biphasic, the 1024 compartment limitation is lifted in the master branch of this repository, but it hasn't been released, hence why you're still getting the error. If you clone this repository and install it from there (git clone https://github.com/nengo/nengo-loihi.git then pip install -e nengo-loihi) the example should run without modifications. You won't need to pass in hardware options, though you will be able to in the master branch.

biphasic commented 4 years ago

wow thank you for the quick answer! Greatly appreciated.