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
I directly apologize for the convoluted example, but I was not able to reproduce this with a more minimum WE.
When I time this piece of code (version A)
@timeittimer() "blending factors"beginbegin
alpha, element_ids_dg, element_ids_dgfv =calc_blending_factors(dg, dg.elements.u)
end
instead of this (version B)
out = Any[]
@timeittimer() "blending factors"calc_blending_factors(out, dg, dg.elements.u)
alpha, element_ids_dg, element_ids_dgfv = out
where I did not change anything in comparison to A but wrap the return values in an Any[] container instead of returning them directly, I get a huge increase in memory allocations (and thus run time):
If I do not time the call to calc_blending_factors (using either version A-type return values or version B), I get roughly the same timings as in B. This does seem very odd to me and I don't have the slightest idea where I should start looking for the problem.
(If this is not the correct place to report such behavior, but rather e.g. Discourse, please let me know)
The text was updated successfully, but these errors were encountered:
Hi @sloede and @ranocha, I could not find where exactly you mentioned this issue within trixi-framework/Trixi.jl#200, but do you have any updates on this TimerOutputs issue?
I directly apologize for the convoluted example, but I was not able to reproduce this with a more minimum WE.
When I time this piece of code (version A)
instead of this (version B)
where I did not change anything in comparison to A but wrap the return values in an
Any[]
container instead of returning them directly, I get a huge increase in memory allocations (and thus run time):With return values (version A):
With
out
(version B):If I do not time the call to
calc_blending_factors
(using either version A-type return values or version B), I get roughly the same timings as in B. This does seem very odd to me and I don't have the slightest idea where I should start looking for the problem.(If this is not the correct place to report such behavior, but rather e.g. Discourse, please let me know)
The text was updated successfully, but these errors were encountered: