Skip to content

cuDNN loses memory to log messages in Pluto.jl context #2743

@fps

Description

@fps

See: fonsp/Pluto.jl#3183 for context. And also: https://discourse.julialang.org/t/memory-usage-increasing-with-each-epoch/121798/2

Pluto.jl sets up logging in a way such that

Base.CoreLogging.current_logger_for_env(Base.CoreLogging.Debug, :init, CUDA) gives PlutoRunner.PlutoCellLogger...

This in turn causes cuDNN's initialization to setup a message callback with cudnnSetCallback which in turn causes cuDNN.log_messages to grow without bounds when doing things because every single call seems to get logged.

I am not sure who really is to blame here, so I thought I'd open up an issue here as well because I am not familiar at all with Julia's logging/debug eco system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamSomebody else's problem.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions