Skip to content

Causes for LLVM Memory error: Unable to allocate section memory! #1365

@vlipovac

Description

@vlipovac

I am experiencing this bug while running a flow simulation, where I use numba to accelerate the solution of some subsystems of the global problem.

I was not able to pinpoint exactly when the problem occurs, and how, because it occurs after running the simulation for days and the nature of the problem makes it practically impossible to debug.
The code is very extensive and I cannot tailor an example reproducing it, but I can provide an entry point:
https://github.com/pmgbergen/porepy/blob/cold_co2_injection/src/porepy/examples/cold_co2_injection/run_md.py

And an entry point to the eagerly NJIT compiled framework:
https://github.com/pmgbergen/porepy/blob/02b2e954d2b217a44770e778e0a295aaef9cf484/src/porepy/compositional/compiled_flash/uniflash.py#L219

If I can assist anyhow further to pinpoint the exact cause of the issue, please let me know.

For now, I would kindly ask for

  1. the potential causes of this error,
  2. Pitfalls/ possibilities for users to create memory leaks when using (eager) NJIT.

With this information I may be able to narrow down the issue further.

numba v0.62.1
llvmlite v0.45.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions