Hello,
when using GPU arrays in Pluto (e.g. such as for training Flux models). The console output gets spammed by messages which I do not really understand. These messages did not appear in previous versions (I cannot say with which version they started appearing however). These messages are not printed when running the code in the REPL.
I have attached my Pluto notebook as a .txt file for reproduction as well as a screenshot of the console output (these messages are repeated multiple times (as you can see from the scrolling bar size on the right).
Thanks for your time!
@c42f Is this because of our logger level?
This doesn't look familiar to me. Perhaps the GPU package is writing to stdout?
Right, this isn't a log 馃槄
@JLDC Thank you for bringing this up, but we need more information to be able to fix it. For example, you could run an old version of pluto (instructions) to narrow down the problem.
We changed some of the logging behaviour in Pluto 0.12.0, so you could test 0.11.14.
(It could also be caused by an update in another package.)
Don't mention it, I'm glad to help this amazing package! 馃憤
I don't think the package (Flux) prints to stdout, since the messages do not appear when running the code in the REPL but perhaps I do not understand this fully.
Running the same code with Pluto 0.11.14 does not produce the messages. The only difference between what I did above and what I did here is that I changed the version 0.11.14 of Pluto using the second method on the link you provided (package manager).
So, in short, it works as it should with 0.11.14. I have now also tried it with 0.12.12 and it has the same output as 0.12.10 (my first post was on 0.12.10).


Can you use Pkg.status() check whether any other packages changed version? Changing Pluto's version could still change other packages. Can you share the notebook?
Can you run this version of Pluto and check if the problem is still there?
I just tried the debug-685-1 branch and the output messages from the GPU disappear 馃憤. Great!
Let me know if you need any other infos.
It looks like CUDA.jl checks whether a Logger shows debug messages:
https://github.com/JuliaGPU/CUDA.jl/blob/c99ae6ffdd8ec6c668c98ee4053836bc4ebb1f5c/src/debug.jl#L11-L12
And if so, they enable verbose logging:
Running this check inside current Pluto:

and the REPL:

@c42f Do you understand this first code snippet? Is there a way for us to still enable debug-level logging inside the notebook without triggering that check?
I have created a PR that disables debug logging which fixes this issue, at the cost of losing debug log messages inside the notebook:
https://github.com/fonsp/Pluto.jl/pull/723
Let's do this unless there is a more creative solution that still enables debug logging inside the notebook?
Most helpful comment
Right, this isn't a log 馃槄
@JLDC Thank you for bringing this up, but we need more information to be able to fix it. For example, you could run an old version of pluto (instructions) to narrow down the problem.
We changed some of the logging behaviour in Pluto 0.12.0, so you could test 0.11.14.
(It could also be caused by an update in another package.)