Amit Gupta
Amit Gupta
Does any solution exist for it now?
I tried with O1, O2 and O3, I am getting different error for O1 and (O2 and O3). O2 and O3 allude to pybind11 again. Errors are posted below. I...
Here is the simplest example: ```C++ #include #include int enzyme_dup; int enzyme_out; int enzyme_const; namespace py = pybind11; using namespace std; void add_vec(py::array_t a, py::array_t b){ for (int i =...
Taking hints from [here](https://discourse.llvm.org/t/reverse-mode-ad-of-object-oriented-cfd-code-w-enzyme/5097/5), I bypassed the pointer to class requirement by creating a wrapper function as : ```C++ void wrapper(double * a, double * b, double * out, MyFunctions...
**All files are also contained with in the tarball linked in the end.** Single file which compiles fine `single_file_main.cpp`: ```Cpp #include int enzyme_dup; int enzyme_const; int enzyme_out; class Point{ public:...
Hi, I used your example to get following makefile which does compile my example successfully ``` CXX := clang++ CC := clang LLDEnzyme := /opt/enzyme/enzyme/build/Enzyme/LLDEnzyme-12.so CXXFLAGS += -fuse-ld=lld -flto LDFLAGS...
I usually kill it after 30 seconds or so. Will try running it longer. Just spotted one mistake in my Makefile so working on it. Hopefully it would be ok.
I tried for 30 min, still not complete! But I found the offending line, its a nested vector datastructure `vector bins` called as ```Cpp this->bins = vector(this->nx, vector(this->ny, vector(this->nz, vector())));...
Here is a minimal working example that hangs on my machine (Clang 12, Enzyme : 5989d4975, Apr 17th) ```Cpp #include #include using namespace std; int enzyme_out; int enzyme_dup; int enzyme_const;...
I was also wondering the same. Instead of having element wise copy, such eigen map will be lot more convenient