Interpreting `JET` warnings on a simple `Polyester` multithreaded loop

These are basically all for printing.
I’m apparently on different versions (as I get 60, not 72, possible errors found).
But everything I see comes from these two lines:

This code is for diagnostics, that is, it displays and dumps a failed task so you can see the stacktrace when your threaded code runs an error.

If your program’s performance is bottlenecked by how quickly it can print error messages, I’d suggest trying to stop it from throwing so many errors. Maybe fix the bugs that keep showing up in all those stacktraces?
Or PR base Julia to speed up display(::Task) and dump(::Task), I guess.

Of course, you probably didn’t hit these lines in your code.
You just got a report from JET.

Is there some way I can hide this code from JET, so we don’t have so many false positives/its output is more useful?

I don’t think dump(::Task) is all that useful, so I can probably remove that line.

1 Like