-
Notifications
You must be signed in to change notification settings - Fork 146
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
Regent: Memory leak in stencil #798
Comments
It could also be in a custom mapper too. If you run valgrind on the code with differing numbers of iterations are the leaks being reported at the end all the same? |
With
With
With
|
For what it's worth, I get the same rate of leakage with the default mapper. Circuit, which we tested in #790, also uses a mapper derived from the default mapper. (That doesn't mean there can't be issues, but at least the basic stuff should be working.) |
Right, so this is different than what we were seeing with circuit. These are actual leaks, memory being lost. In circuit the |
Here's the result of running with |
Here's the result of running |
Probably the smoking gun. |
Fixed some things, now getting:
And a new run with |
Fixed an application bug. New valgrind run: |
The stencil issue is application-specific and is fixed in d007c1c. This may or may not generalize to other applications depending on what they do. But stencil at least is running in constant memory now. I've some additional pending fixes which do not affect memory usage over time, but which result in leaks at the end, which I will push once they're more fully tested. |
This is part of the ongoing saga to diagnose #711. This time I'm running the Regent implementation of stencil. We already saw in #790 that the C++ circuit code runs with constant memory usage, so there's a good chance that whatever is left is in Regent at this point.
The leak this time is faster, more on the order of 0.7 MB/s or so.
Command line:
./regent.py examples/stencil_fast.rg -ll:cpu 4 -tsteps 10000
Here's the diff I'm using to instrument the code:
The text was updated successfully, but these errors were encountered: