Skip to content

Memory issues with large number of sources #68

@tanderson92

Description

@tanderson92

I (and some collaborators) am observing strange (incorrect) memory usage with FMM3D and large numbers of sources. The following Julia MWE demonstrates the problem.

using FMM3D

M = 11_000_000

sources = rand(3, M)

charges = rand(M)

vals = @time lfmm3d(1.0e-8, sources; targets = sources, pg = 1, charges = charges)

@show vals.pot |> sum

On my system, with 64GB of RAM, M=11_000_000 executes properly while utilizing <11GB of memory, while M=14_000_000 OOMs. Between these values of M I observe increasingly implausible amounts of memory being required.

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