Skip to content

Memory Leak when using CUDA (and Flux)Β #3183

@fps

Description

@fps

I have no idea whether this is a Pluto.jl, Flux.jl or a CUDA.jl issue, so I had to choose one of them to report it to first.

Repeatedly calling the simplest convolutional Flux model on the GPU leaks host memory. Not GPU memory, but host memory as can be seen from the below screencast.

I found a previous report where turning off the distributed feature of pluto fixed the issue. I could live with that but sadly workspace_use_distributed=false just breaks Pluto completely (importing packages fails) so I could not test that hypothesis. I will probably make a separate bug report for that.

Notebook:

This notebook reproduces the issue on my systems:

  • NixOS, X86_64. NVIDIA RTX 3080 gpu
  • Windows 10, X86_64, NVIDIA Geforce GTX1050ti gpu

https://gist.github.com/fps/1a091a3ea8aab061e25ab7f11b87abb9

Video:

Medien1.mp4

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