Skip to content
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

Improve diagnostic messages for nested calls differentiation #119

Open
efremale opened this issue Apr 2, 2019 · 1 comment
Open

Improve diagnostic messages for nested calls differentiation #119

efremale opened this issue Apr 2, 2019 · 1 comment
Assignees

Comments

@efremale
Copy link
Contributor

efremale commented Apr 2, 2019

When a nested function call is being differentiated, and Clad fails to differentiate it, it emits a warning: "function 'g' was not differentiated because clad failed to differentiate it and no suitable overload was found in namespace 'custom_derivatives".

Example:

double f(double x) {
  printf("%d", x);
  return x;
}
...
clad::differentiate(f, 0);
// prints warning: "function 'printf' was not differentiated because clad failed to differentiate it and no suitable overload was found in namespace 'custom_derivatives"
}

It does not make it clear enough why exactly clad failed to differentiate it (e.g. no definition, unsupported statement, etc.). We should improve it.

@efremale efremale changed the title Improve diagnostic messages for nested calls differentiation. Improve diagnostic messages for nested calls differentiation Apr 2, 2019
@vgvassilev
Copy link
Owner

@vaithak, is that still an issue with the new diff plan implementation?

@vgvassilev vgvassilev assigned vgvassilev and unassigned MihailMihov Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants