SDK Loihi Brain2Loihi Execution Guide
This guide explains how to build, configure, and run the Loihi DevicePlugin Brain2Loihi simulator path with SDK samples.
Target use cases
- Validate Loihi-like spike execution without real Loihi hardware
- Verify DevicePlugin simulator fallback execution flow
1. Build and environment setup
cd /home/maoki/Products/EvoSpikeNet-Core
source .venv/bin/activate
pip install -e .
Install optional Loihi/LAVA dependencies only if needed:
pip install -e ".[loihi]"
2. Configuration
Enable Loihi and specify simulator backend in config/device_plugins.yaml.
devices:
loihi:
enabled: true
priority: 4
config:
backend: "brain2loihi_simulator"
enable_simulator: true
sim_threshold: 0.5
sim_leak: 0.95
Enable plugin config loading in config/settings.yaml.
plugins:
device_plugins:
config_file: "config/device_plugins.yaml"
auto_register: true
3. Run
python examples/sdk/programs/loihi_brain2loihi_demo.py
Expected output summary:
capabilities.active_backend == "brain2loihi_simulator"deploy_ok == trueoutput_spikesare binary spikes (0/1)compiled_backend == "brain2loihi_simulator"
4. Test
Run Loihi Brain2Loihi integration tests:
python -m pytest tests/unit/test_loihi_brain2loihi_plugin.py -q -o addopts='--strict-markers --strict-config'
5. Troubleshooting
RuntimeError: Brain2Loihi simulator is disabled ...- Set
enable_simulator: true. deploy_ok == false- Verify that
convert_format()generated the model file. - LAVA missing warning
- Safe to ignore for simulator backend.