Skip to content

Fix memory leak when having multiple run calls #301

@denisalevi

Description

@denisalevi

There seems to be a memory leak when having multiple run calls, or at least the memory used on the GPU constantly increases.

  • In PR Sort multiple run bugs #300, I removed some memory leaks related synpse initialization (in before_run_synapses_push_spikes). It could be that I missed something and the leak comes from there (I only fixed the more obvious cases, didn't dig into detail here).
  • (This is only relevant for host memory) It could also come from somewhere else. We have e.g. static (file global) variables for the preparation of each codeobject file. Since we create a new codeobject for each run call, it makes sense that we increase the required memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions