Closed ipcamit closed 1 week ago
Mind posting a full code file that fails (or better a link on enzyme.mit.edu/explorer).
This should be a quick ix, but ideally we can test if it now works (and put into test suite)
Here is the link to minimal example: https://fwd.gymni.ch/sj7D3L
I am not sure how to enable LTO in enzyme explorer, but it fails when I run
clang++ -flto -std=c++17 -O3 -shared -fpic -fuse-ld=lld -flto Descriptors.cpp -Wl,--lto-legacy-pass-manager -Wl,-mllvm=-load=/opt/enzyme/enzyme/build/Enzyme/LLDEnzyme-13.so -Wl,-mllvm=-enzyme-loose-types
If I run in compiler mode, it works fine. I have also given the version that compiles fine.
@ipcamit I can't reproduce this locally on current main?
Can you check if it still fails for you?
With the latest main
branch (commit #37aa378) this problem no longer exists. Great! I will close this issue.
When I have following code in my function I get enzyme segfault (see below):
Whereas the following workaround, which does not use
std::vector.push_back()
works fineAlso I see lot of activity on C++ sugar for enzyme. But the branch seem to be deleted. Is there someplace I can start? Any way I can help (documentation/ examples etc)?
stack trace of segfault: