-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hanging on Windows on Julia 1.10 #393
Comments
Pinging everybody involved on what's going to be a low-level discussion does not seem useful to me. Anyhow; I can reproduce on 1.11, and this seems to trigger a segfault under gdb, and fails an assertion when enabling them:
|
MWE: using LLVM
const modstr = """
define void @foobar() {
entry:
ret void
}"""
@dispose ts_ctx=ThreadSafeContext() lljit=JuliaOJIT() begin
es = ExecutionSession(lljit)
jd = JITDylib(lljit)
lctm = LLVM.LocalLazyCallThroughManager(triple(lljit), es)
ism = LLVM.LocalIndirectStubsManager(triple(lljit))
try
ctx = context(ts_ctx)
context!(ctx) do
mod = parse(LLVM.Module, modstr)
tsm = ThreadSafeModule(mod)
add!(lljit, jd, tsm)
lookup(lljit, "foobar")
end
finally
dispose(lctm)
dispose(ism)
end
end Looks like the Julia JIT integration is fundamentally broken on Windows. |
We're missing the following inline assembly, that Julia's JIT expects: https://github.com/JuliaLang/julia/blob/f24364a4821f85410a27a236173c4e6bbb08e568/src/jitlayers.cpp#L2152-L2172 Since this is Julia-specific, I guess we could add this to |
x/ref EnzymeAD/Enzyme.jl#1236
cc @vchuravy @gbaraldi @ArnoStrouwen @jeremiedb @leerosenthalj @Larbino1 @salbalkus @RGonTheNoble @ChrisRackauckas
The text was updated successfully, but these errors were encountered: