Skip to content

Commit

Permalink
Error if extra atom bits used with pop16 axons
Browse files Browse the repository at this point in the history
Not supported by NxSDK (currently 0.9.5.rc0).
  • Loading branch information
hunse authored and drasmuss committed Apr 17, 2020
1 parent 7f659b4 commit 85a2aaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ Release history
(`#284 <https://github.com/nengo/nengo-loihi/pull/284>`__)
- Fixed bug when connecting to a single neuron ensemble with a single scalar
weight. (`#287 <https://github.com/nengo/nengo-loihi/pull/287>`__)
- Added an error if more than 32 "populations" (e.g. convolutional filters) are used
with ``pop_type=16`` axons, since this is not yet supported by NxSDK.
(`#286 <https://github.com/nengo/nengo-loihi/pull/286>`__)

0.10.0 (November 25, 2019)
==========================
Expand Down
5 changes: 5 additions & 0 deletions nengo_loihi/hardware/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ def build_synapse(nxsdk_core, core, block, synapse, compartment_idxs): # noqa C
atom_bits = synapse.atom_bits()
axon_bits = synapse.axon_bits()
atom_bits_extra = synapse.atom_bits_extra()
if atom_bits_extra > 0:
raise NotImplementedError(
"Using more than 32 'populations' (e.g. convolutional filters) with "
"`pop_type=16` axons has not yet been implemented in NxSDK"
)

target_compartments = set()
synapse_map = {} # map weight_idx to (ptr, pop_size, len)
Expand Down

0 comments on commit 85a2aaa

Please sign in to comment.