Skip to content

Memory issue with running suite2p on jupyter #1199

@ShreyaC227

Description

@ShreyaC227

Describe the issue:

I'm facing an issue with running suite2p on jupyter: output_ops = suite2p.run_s2p(ops=ops, db=db)

After creating the binary files and registration of the first 4-5 files, the kernel either restarts stating 'The kernel appears to have died. It will restart automatically', or, returns the memory error below:

RuntimeError: [enforce fail at alloc_cpu.cpp:121] data. DefaultCPUAllocator: not enough memory: you tried to allocate 2359296000 bytes.

I get the same issue when I process data from other recordings as well. I'm using a windows 11 PC. I have not had this issue using the same suite2p environment previously, I also freed up space on the device by deleting suite2p folders from multiple other days of recordings. I tried running this code on another windows 11 PC as well, facing the same issue. I was facing this issue in my environment that has suite2p v14.6, so I created a new environment with v14.4, but still got a same error. Weirdly, it runs okay when on a Mac (using the same suite2p version). I'm not sure what's causing this problem.

Reproduce the code example:

output_ops = suite2p.run_s2p(ops=ops, db=db)

Example input dataset used to reproduce the issue:

No response

Error message:

RuntimeError: [enforce fail at alloc_cpu.cpp:121] data. DefaultCPUAllocator: not enough memory: you tried to allocate 2359296000 bytes.

Version information:

14.6 and 14.4

Context for the issue:

No response

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