-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Slow compilation time in warmup tests. #91
Comments
Profiling graphs with This means that all the rewriting and compilation/thunk creation for inner-graphs occurs separately and in a weird lazy, nested fashion (e.g. imagine aesara-devs/aesara#824 attempts to "flatten" all this out so that—for instance—all the timing results can be presented coherently in one profile. Also, there are a few big rewriting issues that are caused by this undesirable nesting, and aesara-devs/aesara#824 attempts to address those. I have some updates to push there, but we may want/need to move our focus to those changes in order to address this issue more easily (or at all). In the meantime, as the output profile output implies, we might need to hack up a means of setting The top layer profile output you provided definitively tells us that linking/thunk creation/compilation is slow. Now, we need to know if that's due to compilation using the C backend and/or rewriting. We can use |
I've used something like the following in the past to read profiling info on scan_fn = aesara.function(...)
for node in scan_fn.maker.fgraph.apply_nodes:
if isinstance(node.op, Scan) and hasattr(node.op.fn, "profile"):
node.op.fn.profile.summary() That will only get first-layer |
Description of your problem or feature request
The warmup test, particularly
aehmc/tests/test_hmc.py
Line 49 in d54e2d0
warmup_fn
.Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback of any errors.
Running the test with profiling turned on produces the following:
Please provide any additional information below.
Versions and main components
python -c "import aesara; print(aesara.config)"
):Details
The text was updated successfully, but these errors were encountered: