Skip to content

Commit f54410e

Browse files
committed
fixup! WIP:Try out gpuc.deferred.with
1 parent 4ac6aac commit f54410e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/jit.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ function compiler(job)
123123
ir, meta = GPUCompiler.compile(:llvm, job; validate=false)
124124
# So 1. serialize the module
125125
buf = convert(MemoryBuffer, ir)
126-
buf, meta
126+
buf, LLVM.name(meta.entry)
127127
end
128128
end
129129

130-
function linker(_, (buf, meta))
130+
function linker(_, (buf, entry_fn))
131131
compiler = jit[]
132132
lljit = compiler.jit
133133
jd = JITDylib(lljit)
@@ -141,7 +141,7 @@ function linker(_, (buf, meta))
141141

142142
LLVM.add!(lljit, jd, tsm)
143143
end
144-
addr = LLVM.lookup(lljit, meta.entry)
144+
addr = LLVM.lookup(lljit, entry_fn)
145145
pointer(addr)
146146
end
147147

0 commit comments

Comments
 (0)