Skip to content

[BUG] GPU Memory usage increases over time with cuopt.linear_programming #575

@DenizKizaroglu

Description

@DenizKizaroglu

Bug Report: GPU Memory usage increases over time with cuopt.linear_programming

Bug Description

When calling cuopt.linear_programming.Solve repeatedly in a loop, the allocated GPU memory appears to increase over time, suggesting a potential memory accumulation. Even when explicitly deleting solver and data model objects and calling gc.collect(), the memory usage does not remain stable.

Steps/Code to Reproduce

Run the python script attached

# Run the script
python3 reproduce_gpu.py

Expected Behavior

The GPU memory usage should remain stable and constant across iterations, as the same problem is being solved repeatedly and resources are (seemingly) being freed after each solve.

Environment Details

  • cuopt-cu12: 25.8.0

  • cudf-cu12: 25.8.0

  • cuopt_mps_parser: 25.8.0

  • cuopt_server-cu12: 25.8.0

  • cuopt_sh_client: 25.8.0

  • cupy-cuda12x: 13.4.1

Installation Method:

pip install --extra-index-url=https::/pypi.nvidia.com 'cuopt-cu12==25.8*'

reproduce_gpu.py

Metadata

Metadata

Assignees

Labels

awaiting responseThis expects a response from maintainer or contributor depending on who requested in last comment.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions