Hello, I need to run the code of Diehl&Cook_spiking_MNIST_Brian2.py given in GitHub - zxzhijia/Brian2STDPMNIST: Brian 2 version of Paper "Unsupervised Learning of digit recognition using STDP" but with brian2cuda.
I installed brian2cuda and excuted it successfuly on the GPU
(using the script: from brian2 import *
import brian2cuda
set_device(“cuda_standalone”)
However, when I run the main code Diehl&Cook_spiking_MNIST_Brian2.py , I had some issues. Does anyone try to do that?
Thannk you
Hi @Zeina The code you link to is written for Brian’s “runtime” mode, that mixes Python code and the actual simulation. To use “standalone” mode, you need to rewrite it a bit, to work around its limitations. See Computational methods and efficiency — Brian 2 2.7.1 documentation for a few hints. Brian2CUDA is one implementation of a “standalone” mode, so it won’t run with this code.
Hi @mstimberg, thank you for your response.
The updated version of the code shown by @bjourne is interesting.
Looking forward for the standalone version of the code!