sgasho
sgasho
(oops, sorry I should have run tests before opening this pr. It takes too much time running tests on my m1 mac so let me check them tomorrow, including ci...
> thread 'rustc' (2936300) panicked at compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs:211:35: > EnzymeWrapper not initialized I solved the "EnzymeWrapper not initialized" problem in the latest commit ([52f0d2e](https://github.com/rust-lang/rust/pull/149271/commits/52f0d2ec4fb3db116aff7d35fb0ee61c70d03eda)) However, another error occurred e.g. ```shell ./x...
I saw no further information using RUST_BACKTRACE=1 I executed these commands. any mistake? ```shell RUST_BACKTRACE=1 ./x test --stage 1 tests/codegen-llvm/autodiff/scalar.rs ``` or ```shell set RUST_BACKTRACE=1 ./x test --stage 1 tests/codegen-llvm/autodiff/scalar.rs...
I see! I installed CodeLLDB extension on my VS Code and created a debug settings, then got this trace (Sorry I have no time to take at deeply look at...
> In my first attempt where I just dlopen'ed Enzyme directly in compiler/rustc_codegen_llvm/src/back/write.rs and immediately passed it to llvm::LLVMRustOptimize it worked I tried removing the Mutex and running the test,...
> I added a code to register those passes in PreProcessCache::PreProcessCache(enzyme/Enzyme/FunctionUtils.cpp) like below and the "This analysis pass was not registered prior to being queried" error disappeared this error has...
> I added a code to register those passes in PreProcessCache::PreProcessCache(enzyme/Enzyme/FunctionUtils.cpp) like below and the "This analysis pass was not registered prior to being queried" error disappeared I'm not sure...
@ZuseZ4 Thanks for your advice! I looked into the Julia integration briefly and haven't found a core solution for this problem yet. I opened an issue here: https://github.com/EnzymeAD/Enzyme/issues/2588.
@ZuseZ4 > Do you know how to set up a C++ reproducer? Unfortunately, no.... I tried creating some codes while referring to some Enzyme codes yesterday but none of them...
@ZuseZ4 I think I could have created a C++ reproducer but I'm not so sure if it's an appropriate MWE. Could you take a look at it? https://github.com/EnzymeAD/Enzyme/issues/2588#issuecomment-3620030511