-
Notifications
You must be signed in to change notification settings - Fork 125
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
Regression in support of functions with unknown definition #890
Milestone
Comments
@vaithak, could that be related to the recent changes we did in forward declarations first approach? |
Maybe, I will take a look at this soon. |
That seems critical for releasing v1.5. |
I tested it now, and this fails exactly after the #802. @PetroZarytskyi, can you take a look once? |
vgvassilev
pushed a commit
that referenced
this issue
May 20, 2024
- Add custom derivative to DerivativeSet: This is required if the definition of the custom derivative is not found in the current translation unit and is linked in from another. Adding it to the set of derivatives ensures that the custom derivative is not differentiated again using numerical differentiation due to an unavailable definition. - Fix recursive processing of DiffRequests: There can be cases where `m_Multiplexer` is not provided. Hence, we don't delay HandleTranslationUnit at the end and it is called repeatedly. This resulted in HandleTopLevelDecl being called recursively (from PerformPendingInstantiations). This commit adds conditional checks to ensure this doesn't perturb the execution of the differentiation plan. Fixes: #890
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clad doesn't work with functions where is doesn't know the definition anymore.
Reproducer:
The error:
The warning about fallback to numeric differentiation is correct. But aftterwards, it should not crash.
The text was updated successfully, but these errors were encountered: