Skip to content

Commit

Permalink
fixup! WIP:Try out gpuc.deferred.with
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Aug 9, 2024
1 parent 4ac6aac commit f54410e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/jit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ function compiler(job)
ir, meta = GPUCompiler.compile(:llvm, job; validate=false)
# So 1. serialize the module
buf = convert(MemoryBuffer, ir)
buf, meta
buf, LLVM.name(meta.entry)
end
end

function linker(_, (buf, meta))
function linker(_, (buf, entry_fn))
compiler = jit[]
lljit = compiler.jit
jd = JITDylib(lljit)
Expand All @@ -141,7 +141,7 @@ function linker(_, (buf, meta))

LLVM.add!(lljit, jd, tsm)
end
addr = LLVM.lookup(lljit, meta.entry)
addr = LLVM.lookup(lljit, entry_fn)
pointer(addr)
end

Expand Down

0 comments on commit f54410e

Please sign in to comment.