Skip to content

Commit c2b3528

Browse files
committed
Don't unnecessarily root the immutable kernel state.
1 parent c7a2be5 commit c2b3528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/execution.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ end
297297
# kernel has actually completed.
298298
#
299299
# TODO: is there a way to bind additional resources to the command buffer?
300-
roots = [kernel.f, kernel_state, args]
300+
roots = [kernel.f, args]
301301
MTL.on_completed(cmdbuf) do buf
302302
empty!(roots)
303303
foreach(free, argument_buffers)
@@ -308,8 +308,8 @@ end
308308
if buf.status == MTL.MTLCommandBufferStatusError
309309
Core.println("ERROR: Failed to submit command buffer: $(buf.error.localizedDescription)")
310310
end
311-
312311
end
312+
313313
commit!(cmdbuf)
314314
end
315315

0 commit comments

Comments
 (0)