Better LFPyKit support #1857
Labels
enhancement
Feature Request
gpu
Anything to do with GPU-specific code, or building for GPU targets.
help wanted
lfpy
LFPY
neuroscience
Project: Arborio
python
As seen in this notebook, LFP calculation in arbor works great: https://github.com/llandsmeer/iopublic/blob/main/Local%20field%20potential%20v2.ipynb
Now, in implementing this I had two problems:
(recipe,sim) -> LFPy measurements
functionThe first problem is the largest one. Currently, two buffers gets filled up on the GPU with 600 samples for each CV, then copied back to host and multiplied with a large matrix. Much more efficient would be performing this matrix multiplication each or every timesteps on the GPU itself. This would allow for longer measurement times, as the end result on the matrix multiplication in my example is just a small vector for each scheduled timestep. Of course, restarting the simulation every 600 samples is also a solution, but will become very annoying for network sizes + GPU memory sizes that allow for just 1 or 2 samples at a time. Then the enormous copy back of CV current just to reduce it to a few values is also pretty inefficient.
Proposed solutions
arbor.get_cell_geometry(recipe, gid)
)The text was updated successfully, but these errors were encountered: