Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/compiler/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,14 @@ end
empty!(roots)
foreach(free, argument_buffers)

# TODO: access logs here to check for errors
# https://developer.apple.com/videos/play/wwdc2020/10616/
end
# Check for errors
# XXX: we cannot do this nicely, e.g. throwing an `error` or reporting with `@error`
# because we're not allowed to switch tasks from this contexts.
if buf.status == MTL.MTLCommandBufferStatusError
Core.println("ERROR: Failed to submit command buffer: $(buf.error.localizedDescription)")
end

end
commit!(cmdbuf)
end

Expand Down