We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64296ac commit d0a4612Copy full SHA for d0a4612
src/driver.jl
@@ -157,6 +157,7 @@ const __llvm_initialized = Ref(false)
157
if libraries
158
runtime = load_runtime(job; ctx)
159
runtime_fns = LLVM.name.(defs(runtime))
160
+ runtime_intrinsics = ["julia.gc_alloc_obj"]
161
end
162
163
@timeit_debug to "Library linking" begin
@@ -166,7 +167,7 @@ const __llvm_initialized = Ref(false)
166
167
@timeit_debug to "target libraries" link_libraries!(job, ir, undefined_fns)
168
169
# GPU run-time library
- if any(fn -> fn in runtime_fns, undefined_fns)
170
+ if any(fn -> fn in runtime_fns || fn in runtime_intrinsics, undefined_fns)
171
@timeit_debug to "runtime library" link_library!(ir, runtime)
172
173
0 commit comments