Comments (4)
Yeah a reproducer would be helpful. As one hint, it seems to not be terribly happy about: _ZZ3runE13__sharedStack
. Maybe mark it as inactive?
Regardless you probably want to have all differentiable variables passed as arguments rather than globals
from enzyme.
Sorry, I found it was my mistake. Although _ZZ3runE13__sharedStack
is a local variable, but I mistakenly mark it as static
, so it became a global variable.
Closing this issue, and it would be great to see if the compiler can warn me about this.
from enzyme.
Sorry but after I changed it to static
, the "failed to deduce type of memset" message still occurs. This time _ZZ3runE13__sharedStack
is a genuine local variable. Besides, it is not inactive, because gradient actually flows by this variable.
_ZZ3runE13__sharedStack
is actually a holder array for other variables I use. Other variables are slices of this array.
See the log and the reproducer:
log.txt
run-4ab46e.cpp.txt
run-4ab46e.sh.txt
Please change *.cpp.txt to *.txt, and *.sh.txt to *.txt. It was because GitHub don't allow uploading .cpp and .sh files.
from enzyme.
I'm having some issues reproducing this. Can you make a version which errors in the Enzyme Compiler Explorer? https://enzyme.mit.edu/explorer/
from enzyme.
Related Issues (20)
- enzyme error when differentiating stateful lambda, but no problems with explicitly defined functor HOT 3
- compiler crash on simple `__enzyme_fwddiff()` call
- `__enzyme_autodiff` w/ `enzyme_out` + pass by reference crashes HOT 1
- Lookup undef error HOT 3
- 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`
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.