Joel Berkeley
Joel Berkeley
I can paste it, though it's not even first draft yet, and is a combination of two different languages, so I'm not sure it will help. I'm just trying to...
yeah I saw that function, but it's not public. I did try to reproduce it but its contents aren't public either
ok thanks. I'm going to head off now (it's late here). I'll come back to this in a few days. Seasons greetings!
I did quite a bit more digging today, but didn't progress. Here are some notes. I added `prepareRegistry`. I also added calls to `registerenzymePasses` and `regsiterenzymeXLAPasses`. Same error persists. I...
ok, I've copy-pasted that function, and put its contents before my code. I still get the same error. I will compose all my stuff into a function that's as self-contained...
**I've edited this code to be more self-contained, it now produces an executable binary instead of a library**. I might get round to making it into a git repo ```c++...
I'm going to count my chickens and say you can test this using this change, which is basically the above but inserted into this repo https://github.com/EnzymeAD/Enzyme-JAX/compare/main...joelberkeley:Enzyme-JAX:example?expand=1 with ``` bazel build...
ok that has linker errors. I may come back to it. The code itself "works", in that it fails at runtime as described.
I've made progress: I added `ctx->loadDialect()`, which curiously I can't find any mention of in either the Enzyme or Enzyme-JAX repos. I got it from the MLIR tutorials
Hi, do you support `f64`? I think I've got the MLIR right: from this ``` module @root.3 attributes {mhlo.cross_program_prefetches = [], mhlo.input_output_alias = [], mhlo.is_dynamic = false, mhlo.use_auto_spmd_partitioning = false}...