You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> x =zeros(Int, 5, 10)
5×10 Matrix{Int64}:00000000000000000000000000000000000000000000000000
julia>@batchfor j inaxes(x, 2)
for i in1:5if i >3&& j in (2, 4, 9)
error("some error")
end
x[i, j] =1endend
julia> x
5×10 Matrix{Int64}:11111111111111111111111111111110101111011010111101
I want to update the columns of x and run into an error. Instead of showing the error, the relevant threads just stop silently.
In an actual code, I might want to update some object, which failed for some reason. But Polyester.jl doesn't tell me it failed, so I might continue with this broken x, not realizing it is in an invalid (incompletely updated) state, causing unpredicted behavior down the road.
The text was updated successfully, but these errors were encountered:
To actually print the task, you'd have to update the code in ThreadingUtilities.checktask. checktask isn't inlined, so making it bigger by adding printing code shouldn't be a big deal.
MWE:
I want to update the columns of
x
and run into an error. Instead of showing the error, the relevant threads just stop silently.In an actual code, I might want to update some object, which failed for some reason. But Polyester.jl doesn't tell me it failed, so I might continue with this broken
x
, not realizing it is in an invalid (incompletely updated) state, causing unpredicted behavior down the road.The text was updated successfully, but these errors were encountered: