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 1b811cb commit ca092c8Copy full SHA for ca092c8
src/compiler/execution.jl
@@ -300,10 +300,14 @@ end
300
empty!(roots)
301
foreach(free, argument_buffers)
302
303
- # TODO: access logs here to check for errors
304
- # https://developer.apple.com/videos/play/wwdc2020/10616/
305
- 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.
306
+ if buf.status == MTL.MTLCommandBufferStatusError
307
+ Core.println("ERROR: Failed to submit command buffer: $(buf.error.localizedDescription)")
308
+ end
309
310
311
commit!(cmdbuf)
312
end
313
0 commit comments