-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use VectorOfArray
in wrap_array
for DGMulti
solvers
#2150
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2150 +/- ##
=======================================
Coverage 96.87% 96.87%
=======================================
Files 490 490
Lines 39458 39462 +4
=======================================
+ Hits 38224 38228 +4
Misses 1234 1234
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@DanielDoehring if I remember correctly, you implemented I am running into some elixir_euler_weakform.jl (SBP, EC): Test Failed at /home/runner/work/Trixi.jl/Trixi.jl/test/test_threaded.jl:388
Expression: #= /home/runner/work/Trixi.jl/Trixi.jl/test/test_threaded.jl:388 =# @allocated(Trixi.rhs!(du_ode, u_ode, semi, t)) < 5000
Evaluated: 118704 < 5000 However, at least locally, this appears to only happen the first time Did you run into this issue before? |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Update test/test_dgmulti_2d.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ework/Trixi.jl into jc/wrap_VectorOfArray
Hm, I have not encountered this. Can you maybe track down the allocations using the |
There doesn't seem to be a type instability. There's a weird GC call stack that |
Oh wow, that sounds strange. So the allocations are only present in the test "environment"? |
Not exactly - on my machine, the allocations disappear after running Here's the output from |
https://github.com/JuliaLang/julia/blob/3318941e585db632423366b8b703ea55a6ba8421/base/timing.jl#L479-L489 |
The text file only shows half of the information on each line. Could you provide it in a different way? |
I checked
Thanks - how is this? |
Same issue - how about telling me how to reproduce it? Use your latest commit and then run |
examples/dgmulti_1d/elixir_euler_shu_osher_gauss_shock_capturing.jl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI passes 🥳
Here is another round of questions. Hopefully, this is close to be merged now.
@JoshuaLampert thanks so much for fixing the shock capturing test and getting the rest of CI working! I'm not sure why the behavior of the shock capturing test is so sensitive. Just to clarify - did running with |
For |
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
@@ -174,7 +174,7 @@ julia> compute_vorticity(velocity, semi) = | |||
compute_vorticity(velocity, Trixi.mesh_equations_solver_cache(semi)...); | |||
|
|||
julia> function get_velocity(sol) | |||
rho, rhou, rhov, E = StructArrays.components(sol.u[end]) | |||
rho, rhou, rhov, E = StructArrays.components(Base.parent(sol.u[end])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking PR since we changed documented behavior. I will mark it accordingly and take care of it.
@huiyuxie FYI this PR goes towards addressing #1789.