Nengo_loihi waiting on incoming connection from loihi

Hello,
I am working on a deep learning model with nengo and trying to map it on Intel’s Loihi with nengo_loihi. Unfortunately, I am not able to connect with loihi through nengo. It is always waiting on an incoming connection. I followed the example shown in “https://www.nengo.ai/nengo-loihi/examples/keras-to-loihi.html”. Example code run on my local system but unfortunately not in Intel’s INRC.

Execution command: python Nengo_DL_Loihi_05.py

Waiting message:

Build finished in 0:00:00
Optimization finished in 0:00:00
Construction finished in 0:00:00
INFO:DRV: Waiting for incoming connection to [10.212.98.133:5777](http://10.212.98.133:5777/)
INFO:DRV:Waiting for incoming connection to [10.212.98.133:5777](http://10.212.98.133:5777/)

Could you suggest to me, how to connect to Loihi and map my model.

Hi @nayimrahman!

To run NengoLoihi code on the Intel’s INRC cloud environment, you’ll need to use the SLURM job allocation tool. Doing so is easy, simply specify SLURM=1 with the python command line. As an example, if you do:
python Nengo_DL_Loihi_05.py
to run your code on your local machine, you’d do:
SLURM=1 python Nengo_DL_Loihi_05.py
to run the code on the INRC cloud.

For Jupyter notebooks, you can call jupyter with the SLURM=1 environment variable, although I often find it easier to specify the environment variable within the notebook itself (you can do this in regular python code as well, to avoid having to provide SLURM=1 when you run the code on the INRC cloud). To specify the environment variables in python code, simply put this code block somewhere at the top of your python file / jupyter notebook:

import os
os.environ["SLURM"] = "1"
1 Like