Comments (3)
change it to (void*)&f
like below and its fine:
double dy = __enzyme_fwddiff<double>((void*)functor_wrapper<decltype(f), std::array<double,2> >, enzyme_const, (void*)&f, enzyme_dup, &x, &dx);
from enzyme.
This is a purely C++ error, outside of Enzyme. Basically its saying that no possible code could definite the definition of enzyme_fwdddiff, since it uses a local variable, and the template is marked extern. However, the compiler actually can definite (as we do here). Marking the type as a non-local type (such as void* in my fix, or your functor in above) means that it's fine.
from enzyme.
Thanks for the quick response-- is there any way to emit a descriptive error message here to help users diagnose this sort of problem and implement your fix?
from enzyme.
Related Issues (20)
- Crashing input on LLVM 16 HOT 3
- No ClangEnzyme-<version>.so library created when compiling the code on MacOSX HOT 6
- No reverse pass found for Petsc Functions HOT 9
- Merge-Queue rerunning CI HOT 1
- error/crash when differentiating member function HOT 5
- error when linking against LLDEnzymeFlags CMake target HOT 12
- bug in loop counters generates code that crashes HOT 2
- Unreachable executed in TypeTree.h with std::normal_distribution HOT 1
- Assertion `f != originalToNewFn.end()' failed with Eigen HOT 4
- Assertion `!subretused' failed when compiling simple example with custom derivatives. HOT 2
- Enzyme infinite loop
- Could not deduce type of integer error HOT 6
- Unreachable no free error HOT 2
- Zero gradients on Kalman filter HOT 5
- playground broken for opt >= 16 HOT 1
- Metadata Flags Break in CMake Projects Containing `cmake_minimum_required`
- getting started (test.c) SIGABORT running `opt` HOT 7
- Error building ClangEnzyme on windows HOT 5
- [DifferentialUseAnalysis] Consider use of value in call jl_roots args HOT 1
- issues with override
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enzyme.