0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/examples/benchmark
Benjamin Rabier 37ded81aff zml/exe: return launch errors from Exe.call
Exe.call panicked when PJRT failed to launch an executable or when a
waited execution event reported an error, so a caller could not recover
from, say, a device running out of memory. It now returns
pjrt.ApiError. A failed launch writes no outputs. With wait, every
partition's event is awaited and destroyed, and a failed execution
destroys the outputs it wrote, so the results hold no buffer after any
error. The neuron and non-neuron event loops become one; their behavior
is unchanged.

Runner.run and FnExe's Runner.run keep their panic. Direct callers in
the examples, the tutorial and zml.testing add try, and the old
Loader.loadExecute reports a failed call as LoadFailed; PJRT has already
logged its cause. llmd's one direct call follows in its next zml bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-04 23:04:25 +01:00
..
BUILD.bazel zml: expose stdx from inside zml 2026-01-06 10:52:28 +00:00
main.zig zml/exe: return launch errors from Exe.call 2026-11-04 23:04:25 +01:00