-
Notifications
You must be signed in to change notification settings - Fork 11
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
Closure Conversion - higher order return #117
Comments
Was this the issue where several closures end up in the same slot? |
The issue might be related. At least the starting position is similar.
Only the execution failed. In the example above, already the thorin code optimization fails. |
I opened #118 for the other issue. |
I'm pretty sure it's a duplicate of #126 but rn I get:
|
This program should not need autodiff to run.
to get the issue. The behavior displayed in your case might be another unrelated bug in autodiff or direct. (Although I get another error related to curried function specialization) |
Maybe helpful: |
Even when adding the memory by hand, errors still occur. I added some more tests with the manual placement of mem to ad_ptr_merge (I figured that is the branch with the most advanced closure conversion -- but I might be wrong). |
This behavior is exhibited for instance in
pow_autodiff_eval_filter2_eval.thorin
.The program is a differentiated version of pow and as such a minimal recursive function that folds continuations inside each other in the return continuation.
The text was updated successfully, but these errors were encountered: