You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works if i let enzyme autodetect x, y to be Output arguments. If I explicitly add the enzyme_out parameter however, I get the following error:
ld.lld: error: test/enzymeTest.cpp:111:25: in function _ZN30EnzymeTest_test_variables_Test8TestBodyEv void (ptr): Enzyme: Cannot cast __enzyme_autodiff primal argument 1, found i32 0, type i32 (simplified to i32 0 ) - to arg 0, double
I have enzyme installed as a git submodule and add it to my project as follows:
set(ENZYME_STATIC_LIB "true")
add_subdirectory(external/Enzyme/enzyme)
target_link_library(khaki PUBLIC LLDEnzymeFlags)
It seems to me that enzyme cannot detect and substitute the special names.
The text was updated successfully, but these errors were encountered:
Hmm I can try if i find the time, but I currently have a deadline coming up. I have since switched to linking ClangEnzymeFlags instead, which fixed the issues. Note that all my tests were on llvm20.
I have also observed that the autodetection of the clang_Dir failed for me. I had to set it to set(Clang_DIR "/usr/lib/cmake/clang-20")
I have the following code copied from the c++ examples
This works if i let enzyme autodetect x, y to be Output arguments. If I explicitly add the enzyme_out parameter however, I get the following error:
I have enzyme installed as a git submodule and add it to my project as follows:
It seems to me that enzyme cannot detect and substitute the special names.
The text was updated successfully, but these errors were encountered: