-
Notifications
You must be signed in to change notification settings - Fork 99
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
Error when differentiating Explicit template class #1510
Comments
Mind pasting the whole file (perhaps in an Enzyme explorer link enzyme.mit.edu/explorer)? |
https://fwd.gymni.ch/CmHXUs. When implementing the f in a CPP file, the Enzyme tool crashes with the following error message: [2/3] Building CXX object CMakeFiles/testEnzyme.dir/main.cpp.o |
Ah sorry I didn't fully read your post properly. If you have the function in a different cpp file and Enzyme deduces it needs to be diffeerentiated (it detects this here), you need to enable multisource support with LLDEnzyme or an alternate mechanism. |
So use LLDEnzyme flags instead of clang, or do I need to add anything else? |
We updated our docs here to describe the differences: https://enzyme.mit.edu/getting_started/UsingEnzyme/#differentiating-cc |
I noticed a weird behaviour when used EnzymeAD with an explicit template class. If the method bump is defined in the cpp file, I get this error "declare dso_local noundef double @_ZNK8RiskViewIdE4bumpEdd(ptr noundef nonnull align 8 dereferenceable(304), double noundef, double noundef) local_unnamed_addr #7
Assertion failed: 0 && "attempting to differentiate function without definition" "
The text was updated successfully, but these errors were encountered: