-
Notifications
You must be signed in to change notification settings - Fork 126
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
Remove all possibly extraneous DeleteAthenaArray calls #560
Conversation
@changgoo what was the Jenkins failure? Can you add Princeton NetID |
|
I'm not sure how I can add you, but the error log has been sent to you (felker@anl.gov) |
@yanfeij were you able to compare this branch vs. |
Sorry, I haven't. I will try to do it this week.
…On Tue, Feb 6, 2024 at 3:24 PM Kyle Gerard Felker ***@***.***> wrote:
@yanfeij <https://github.com/yanfeij> were you able to compare this
branch vs. master for AMR memory usage in the problems you were concerned
about?
—
Reply to this email directly, view it on GitHub
<#560 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCWEJZ7U66MKCBABIZBTLTYSKGRLAVCNFSM6AAAAABCSO6OA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGY4TEOJYGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Best,
Yan-Fei Jiang
Associate Research Scientist,
Flatiron Institute,
160 Fifth Avenue
New York, NY 10010
|
@felker So I did a check with amr and radiation. I created 888 mesh blocks and destroyed 708. Valgrind still reported that all heap blocks were freed. So I think this is fine to merge. |
retest this please |
@yanfeij looks like
|
@felker I added a problem generator with amr to check memory leak, which was used for the regression test instead of the original one. I have fixed this. Can you try again? |
retest this on stellar |
@yanfeij should I edit the new test in some way?
|
Oh, I was not thinking adding it to the regression test. I used valgrind to check no memory leak after all the meshblocks are created and deleted. I am not sure how to do it automatically. I added the problem generator and input file so that people can do it manually if needed. |
Use Valgrind with athinput.thermal_relaxation_amr to check that code is memory leak-free
Closes #559.
@yanfeij can you play around with this branch and see if anything sticks out?