Closed kbarros closed 13 hours ago
Yes, cases like this should be hidden by skip_unoptimized_throw_blocks=true
, but due to the current implementation issue of report_opt
, such cases can sometimes be reported. I will consider re-implementing report_opt
.
However, regarding this particular issue, it is expected to be fixed in v1.11 rc2 and the release version without waiting for a fix on the JET side (xref: https://github.com/JuliaLang/julia/pull/54942).
Thanks! Is it possible to also make JET detect error
as well as throw
? In my actual use case, the exception originates with an error
:
using JET
function g(x)
error("Please ignore this: $x")
end
@test_opt unoptimize_throw_blocks=true g(1/3)
The following code passes in 1.10, but flags an error in 1.11.0-rc1
The error is:
My understanding of
skip_unoptimized_throw_blocks = true
(the default) is that it should ignore unoptimization ing
, which is known tothrow
. Is that correct?