Skip to content

[BUG] Loihi1SimCfg fails to produce any spikes on WSL2 (Ubuntu 22.04) #389

@alexbermon2-prog

Description

@alexbermon2-prog

Hello Lava Team,

I am experiencing a critical issue where the Loihi1SimCfg simulator does not produce any spikes, even in a minimal test case with a single LIF neuron configured as a perfect integrator with a very high bias. This issue persists after a clean installation within a Python virtual environment.

Steps to Reproduce:

Setup a clean virtual environment on Ubuntu 22.04 (running on WSL2).

Install lava-dl using pip.

Run the following minimal script:

test_lava_env.py

import numpy as np
from lava.proc.lif.process import LIF
from lava.proc.monitor.process import Monitor
from lava.magma.core.run_conditions import RunSteps
from lava.magma.core.run_configs import Loihi1SimCfg

print(">> Starting minimal Lava environment test...")
neuron = LIF(shape=(1,), bias=1000, vth=10, du=1, dv=0)
monitor = Monitor()
monitor.probe(neuron.s_out, 10)
try:
print(">> Running simulation for 10 steps...")
neuron.run(condition=RunSteps(num_steps=10), run_cfg=Loihi1SimCfg())
results = monitor.get_data()
neuron.stop()
spikes = results[neuron.name]['s_out']
total_spikes = np.sum(spikes)
print(f"Test complete. Total spikes detected: {total_spikes}")
except Exception as e:
print(f"An exception occurred: {e}")

Hello Lava Team,

I am experiencing a critical issue where the Loihi1SimCfg simulator does not produce any spikes, even in a minimal test case with a single LIF neuron configured as a perfect integrator with a very high bias. This issue persists after a clean installation within a Python virtual environment.

Steps to Reproduce:

Setup a clean virtual environment on Ubuntu 22.04 (running on WSL2).

Install lava-dl using pip.

Run the following minimal script:

Python

test_lava_env.py

import numpy as np
from lava.proc.lif.process import LIF
from lava.proc.monitor.process import Monitor
from lava.magma.core.run_conditions import RunSteps
from lava.magma.core.run_configs import Loihi1SimCfg

print(">> Starting minimal Lava environment test...")
neuron = LIF(shape=(1,), bias=1000, vth=10, du=1, dv=0)
monitor = Monitor()
monitor.probe(neuron.s_out, 10)
try:
print(">> Running simulation for 10 steps...")
neuron.run(condition=RunSteps(num_steps=10), run_cfg=Loihi1SimCfg())
results = monitor.get_data()
neuron.stop()
spikes = results[neuron.name]['s_out']
total_spikes = np.sum(spikes)
print(f"Test complete. Total spikes detected: {total_spikes}")
except Exception as e:
print(f"An exception occurred: {e}")
Expected Behavior: The total_spikes count should be greater than 0. The neuron should fire on the first timestep.

Actual Behavior: The script runs without error, but the total_spikes count is always 0.0.

My Environment:

System Information (uname -a):

Linux alexbermon 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Package List (pip list):

Click to expand package list

Package Version


asteval 0.9.33
contourpy 1.3.2
cycler 0.12.1
exceptiongroup 1.3.0
filelock 3.20.0
fonttools 4.60.1
fsspec 2025.9.0
h5py 3.15.0
iniconfig 2.1.0
Jinja2 3.1.6
joblib 1.5.2
kiwisolver 1.4.9
lava-dl 0.6.0
lava-nc 0.10.0
linecache2 1.0.0
MarkupSafe 3.0.3
matplotlib 3.10.7
mpmath 1.3.0
networkx 2.8.7
ninja 1.13.0
numpy 1.26.4
nvidia-cublas-cu12 12.1.3.1
nvidia-cuda-cupti-cu12 12.1.105
nvidia-cuda-nvrtc-cu12 12.1.105
nvidia-cuda-runtime-cu12 12.1.105
nvidia-cudnn-cu12 8.9.2.26
nvidia-cufft-cu12 11.0.2.54
nvidia-curand-cu12 10.3.2.106
nvidia-cusolver-cu12 11.4.5.107
nvidia-cusparse-cu12 12.1.0.106
nvidia-nccl-cu12 2.20.5
nvidia-nvjitlink-cu12 12.9.86
nvidia-nvtx-cu12 12.1.105
opencv-python-headless 4.11.0.86
packaging 25.0
pillow 10.4.0
pip 22.0.2
pluggy 1.6.0
pyparsing 3.2.5
pytest 7.4.4
python-dateutil 2.9.0.post0
scikit-learn 1.7.2
scipy 1.15.3
setuptools 59.6.0
six 1.17.0
sympy 1.14.0
threadpoolctl 3.6.0
tomli 2.3.0
torch 2.3.1
torchvision 0.18.1
traceback2 1.4.0
triton 2.3.1
typing_extensions 4.15.0
unittest2 1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions